diff --git a/.github/auto-approve.yml b/.github/auto-approve.yml index f8ad6477eb..311ebbb853 100644 --- a/.github/auto-approve.yml +++ b/.github/auto-approve.yml @@ -1,17 +1,3 @@ -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # https://github.com/googleapis/repo-automation-bots/tree/main/packages/auto-approve processes: - "OwlBotTemplateChanges" diff --git a/.github/header-checker-lint.yml b/.github/header-checker-lint.yml index 96f7d8fad2..6fe78aa798 100644 --- a/.github/header-checker-lint.yml +++ b/.github/header-checker-lint.yml @@ -1,17 +1,3 @@ -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - {"allowedCopyrightHolders": ["Google LLC"], "allowedLicenses": ["Apache-2.0", "MIT", "BSD-3"], "ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt", "**/__init__.py", "samples/**/constraints.txt", "samples/**/constraints-test.txt"], diff --git a/.github/release-trigger.yml b/.github/release-trigger.yml index c9623f1410..ffb9d6d89c 100644 --- a/.github/release-trigger.yml +++ b/.github/release-trigger.yml @@ -1,16 +1,2 @@ -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - enabled: true multiScmName: python-aiplatform diff --git a/google/cloud/aiplatform_v1/types/reasoning_engine.py b/google/cloud/aiplatform_v1/types/reasoning_engine.py index 6c2f01241f..1660897c10 100644 --- a/google/cloud/aiplatform_v1/types/reasoning_engine.py +++ b/google/cloud/aiplatform_v1/types/reasoning_engine.py @@ -90,6 +90,9 @@ class ReasoningEngineSpec(proto.Message): If not specified, the ``service_account`` field will be used if set, otherwise the default Vertex AI Reasoning Engine Service Agent in the project will be used. + build_spec (google.cloud.aiplatform_v1.types.ReasoningEngineSpec.BuildSpec): + Optional. Configuration for building + container image. """ class IdentityType(proto.Enum): @@ -444,6 +447,37 @@ class ContainerSpec(proto.Message): number=1, ) + class BuildSpec(proto.Message): + r"""Specification for building container image. + + Attributes: + worker_pool (str): + Optional. The resource name of the Cloud Build WorkerPool to + use for the build. Format: + ``projects/{project}/locations/{location}/workerPools/{worker_pool}`` + service_account (str): + Optional. The service account that Cloud Build uses to run + the build. + + This field is only applicable when ``worker_pool`` is + specified (i.e., for custom worker pools). If + ``worker_pool`` is not specified, this field is ignored and + the build runs using the Google-managed service agent. + + Format: + ``projects/{project}/serviceAccounts/{service_account}`` or + ``{service_account}@{project}.iam.gserviceaccount.com`` + """ + + worker_pool: str = proto.Field( + proto.STRING, + number=1, + ) + service_account: str = proto.Field( + proto.STRING, + number=2, + ) + source_code_spec: SourceCodeSpec = proto.Field( proto.MESSAGE, number=11, @@ -485,6 +519,11 @@ class ContainerSpec(proto.Message): number=12, enum=IdentityType, ) + build_spec: BuildSpec = proto.Field( + proto.MESSAGE, + number=16, + message=BuildSpec, + ) class ReasoningEngine(proto.Message): diff --git a/google/cloud/aiplatform_v1/types/tool.py b/google/cloud/aiplatform_v1/types/tool.py index 2593cfe16d..feed84672b 100644 --- a/google/cloud/aiplatform_v1/types/tool.py +++ b/google/cloud/aiplatform_v1/types/tool.py @@ -203,6 +203,14 @@ class ParallelAiSearch(proto.Message): See https://docs.parallel.ai/search/search-quickstart for more details. + enable_zero_data_retention (bool): + Optional. Instructs Vertex Grounding to use + Parallel's Zero Data Retention Marketplace + product. If this value is "false" or omitted, + the Parallel Web Search for Grounding standard + subscription will be used. If this value is + "true", the Parallel Web Search for Grounding - + ZDR subscription will be used. custom_configs (google.protobuf.struct_pb2.Struct): Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai @@ -221,6 +229,10 @@ class ParallelAiSearch(proto.Message): proto.STRING, number=1, ) + enable_zero_data_retention: bool = proto.Field( + proto.BOOL, + number=4, + ) custom_configs: struct_pb2.Struct = proto.Field( proto.MESSAGE, number=3, diff --git a/google/cloud/aiplatform_v1beta1/types/reasoning_engine.py b/google/cloud/aiplatform_v1beta1/types/reasoning_engine.py index 306370be47..ae12196a63 100644 --- a/google/cloud/aiplatform_v1beta1/types/reasoning_engine.py +++ b/google/cloud/aiplatform_v1beta1/types/reasoning_engine.py @@ -92,6 +92,9 @@ class ReasoningEngineSpec(proto.Message): If not specified, the ``service_account`` field will be used if set, otherwise the default Vertex AI Reasoning Engine Service Agent in the project will be used. + build_spec (google.cloud.aiplatform_v1beta1.types.ReasoningEngineSpec.BuildSpec): + Optional. Configuration for building + container image. """ class IdentityType(proto.Enum): @@ -446,6 +449,37 @@ class ContainerSpec(proto.Message): number=1, ) + class BuildSpec(proto.Message): + r"""Specification for building container image. + + Attributes: + worker_pool (str): + Optional. The resource name of the Cloud Build WorkerPool to + use for the build. Format: + ``projects/{project}/locations/{location}/workerPools/{worker_pool}`` + service_account (str): + Optional. The service account that Cloud Build uses to run + the build. + + This field is only applicable when ``worker_pool`` is + specified (i.e., for custom worker pools). If + ``worker_pool`` is not specified, this field is ignored and + the build runs using the Google-managed service agent. + + Format: + ``projects/{project}/serviceAccounts/{service_account}`` or + ``{service_account}@{project}.iam.gserviceaccount.com`` + """ + + worker_pool: str = proto.Field( + proto.STRING, + number=1, + ) + service_account: str = proto.Field( + proto.STRING, + number=2, + ) + source_code_spec: SourceCodeSpec = proto.Field( proto.MESSAGE, number=11, @@ -487,6 +521,11 @@ class ContainerSpec(proto.Message): number=12, enum=IdentityType, ) + build_spec: BuildSpec = proto.Field( + proto.MESSAGE, + number=16, + message=BuildSpec, + ) class ReasoningEngine(proto.Message): diff --git a/google/cloud/aiplatform_v1beta1/types/tool.py b/google/cloud/aiplatform_v1beta1/types/tool.py index 9134a723cf..9897a7f596 100644 --- a/google/cloud/aiplatform_v1beta1/types/tool.py +++ b/google/cloud/aiplatform_v1beta1/types/tool.py @@ -204,6 +204,14 @@ class ParallelAiSearch(proto.Message): See https://docs.parallel.ai/search/search-quickstart for more details. + enable_zero_data_retention (bool): + Optional. Instructs Vertex Grounding to use + Parallel's Zero Data Retention Marketplace + product. If this value is "false" or omitted, + the Parallel Web Search for Grounding standard + subscription will be used. If this value is + "true", the Parallel Web Search for Grounding - + ZDR subscription will be used. custom_configs (google.protobuf.struct_pb2.Struct): Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai @@ -222,6 +230,10 @@ class ParallelAiSearch(proto.Message): proto.STRING, number=1, ) + enable_zero_data_retention: bool = proto.Field( + proto.BOOL, + number=4, + ) custom_configs: struct_pb2.Struct = proto.Field( proto.MESSAGE, number=3, diff --git a/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1.json index c54d3becac..53753f28da 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-aiplatform", - "version": "1.164.0" + "version": "0.0.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1beta1.json index 6be1f8eee3..bb8afa1c8f 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-aiplatform", - "version": "1.164.0" + "version": "0.0.0" }, "snippets": [ { diff --git a/tests/unit/gapic/aiplatform_v1/test_gen_ai_cache_service.py b/tests/unit/gapic/aiplatform_v1/test_gen_ai_cache_service.py index 99b0da69a5..fb332325c8 100644 --- a/tests/unit/gapic/aiplatform_v1/test_gen_ai_cache_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_gen_ai_cache_service.py @@ -4077,7 +4077,7 @@ def test_create_cached_content_rest_call_success(request_type): # send a request that will satisfy transcoding request_init = {'parent': 'projects/sample1/locations/sample2'} - request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'name_value', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'thought': True, 'thought_signature': b'thought_signature_blob', 'video_metadata': {'start_offset': {}, 'end_offset': {}, 'fps': 0.329}, 'media_resolution': {'level': 1}}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} + request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'name_value', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'thought': True, 'thought_signature': b'thought_signature_blob', 'video_metadata': {'start_offset': {}, 'end_offset': {}, 'fps': 0.329}, 'media_resolution': {'level': 1}}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'enable_zero_data_retention': True, 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -4361,7 +4361,7 @@ def test_update_cached_content_rest_call_success(request_type): # send a request that will satisfy transcoding request_init = {'cached_content': {'name': 'projects/sample1/locations/sample2/cachedContents/sample3'}} - request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'projects/sample1/locations/sample2/cachedContents/sample3', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'thought': True, 'thought_signature': b'thought_signature_blob', 'video_metadata': {'start_offset': {}, 'end_offset': {}, 'fps': 0.329}, 'media_resolution': {'level': 1}}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} + request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'projects/sample1/locations/sample2/cachedContents/sample3', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'thought': True, 'thought_signature': b'thought_signature_blob', 'video_metadata': {'start_offset': {}, 'end_offset': {}, 'fps': 0.329}, 'media_resolution': {'level': 1}}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'enable_zero_data_retention': True, 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -5387,7 +5387,7 @@ async def test_create_cached_content_rest_asyncio_call_success(request_type): # send a request that will satisfy transcoding request_init = {'parent': 'projects/sample1/locations/sample2'} - request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'name_value', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'thought': True, 'thought_signature': b'thought_signature_blob', 'video_metadata': {'start_offset': {}, 'end_offset': {}, 'fps': 0.329}, 'media_resolution': {'level': 1}}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} + request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'name_value', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'thought': True, 'thought_signature': b'thought_signature_blob', 'video_metadata': {'start_offset': {}, 'end_offset': {}, 'fps': 0.329}, 'media_resolution': {'level': 1}}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'enable_zero_data_retention': True, 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -5685,7 +5685,7 @@ async def test_update_cached_content_rest_asyncio_call_success(request_type): # send a request that will satisfy transcoding request_init = {'cached_content': {'name': 'projects/sample1/locations/sample2/cachedContents/sample3'}} - request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'projects/sample1/locations/sample2/cachedContents/sample3', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'thought': True, 'thought_signature': b'thought_signature_blob', 'video_metadata': {'start_offset': {}, 'end_offset': {}, 'fps': 0.329}, 'media_resolution': {'level': 1}}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} + request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'projects/sample1/locations/sample2/cachedContents/sample3', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'thought': True, 'thought_signature': b'thought_signature_blob', 'video_metadata': {'start_offset': {}, 'end_offset': {}, 'fps': 0.329}, 'media_resolution': {'level': 1}}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'enable_zero_data_retention': True, 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 diff --git a/tests/unit/gapic/aiplatform_v1/test_reasoning_engine_service.py b/tests/unit/gapic/aiplatform_v1/test_reasoning_engine_service.py index ab63f2df81..96d70711db 100644 --- a/tests/unit/gapic/aiplatform_v1/test_reasoning_engine_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_reasoning_engine_service.py @@ -4102,7 +4102,7 @@ def test_create_reasoning_engine_rest_call_success(request_type): # send a request that will satisfy transcoding request_init = {'parent': 'projects/sample1/locations/sample2'} - request_init["reasoning_engine"] = {'name': 'name_value', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}} + request_init["reasoning_engine"] = {'name': 'name_value', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2, 'build_spec': {'worker_pool': 'worker_pool_value', 'service_account': 'service_account_value'}}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -4485,7 +4485,7 @@ def test_update_reasoning_engine_rest_call_success(request_type): # send a request that will satisfy transcoding request_init = {'reasoning_engine': {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3'}} - request_init["reasoning_engine"] = {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}} + request_init["reasoning_engine"] = {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2, 'build_spec': {'worker_pool': 'worker_pool_value', 'service_account': 'service_account_value'}}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -5423,7 +5423,7 @@ async def test_create_reasoning_engine_rest_asyncio_call_success(request_type): # send a request that will satisfy transcoding request_init = {'parent': 'projects/sample1/locations/sample2'} - request_init["reasoning_engine"] = {'name': 'name_value', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}} + request_init["reasoning_engine"] = {'name': 'name_value', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2, 'build_spec': {'worker_pool': 'worker_pool_value', 'service_account': 'service_account_value'}}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -5827,7 +5827,7 @@ async def test_update_reasoning_engine_rest_asyncio_call_success(request_type): # send a request that will satisfy transcoding request_init = {'reasoning_engine': {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3'}} - request_init["reasoning_engine"] = {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}} + request_init["reasoning_engine"] = {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2, 'build_spec': {'worker_pool': 'worker_pool_value', 'service_account': 'service_account_value'}}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_gen_ai_cache_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_gen_ai_cache_service.py index fdb88e61a2..caa6a44d4d 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_gen_ai_cache_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_gen_ai_cache_service.py @@ -4077,7 +4077,7 @@ def test_create_cached_content_rest_call_success(request_type): # send a request that will satisfy transcoding request_init = {'parent': 'projects/sample1/locations/sample2'} - request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'name_value', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'id': 'id_value', 'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'id': 'id_value', 'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'video_metadata': {'start_offset': {}, 'end_offset': {}}, 'thought': True, 'thought_signature': b'thought_signature_blob'}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_corpora': ['rag_corpora_value1', 'rag_corpora_value2'], 'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'hybrid_search': {'alpha': 0.518}, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}, 'store_context': True}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} + request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'name_value', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'id': 'id_value', 'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'id': 'id_value', 'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'video_metadata': {'start_offset': {}, 'end_offset': {}}, 'thought': True, 'thought_signature': b'thought_signature_blob'}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_corpora': ['rag_corpora_value1', 'rag_corpora_value2'], 'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'hybrid_search': {'alpha': 0.518}, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}, 'store_context': True}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'enable_zero_data_retention': True, 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -4361,7 +4361,7 @@ def test_update_cached_content_rest_call_success(request_type): # send a request that will satisfy transcoding request_init = {'cached_content': {'name': 'projects/sample1/locations/sample2/cachedContents/sample3'}} - request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'projects/sample1/locations/sample2/cachedContents/sample3', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'id': 'id_value', 'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'id': 'id_value', 'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'video_metadata': {'start_offset': {}, 'end_offset': {}}, 'thought': True, 'thought_signature': b'thought_signature_blob'}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_corpora': ['rag_corpora_value1', 'rag_corpora_value2'], 'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'hybrid_search': {'alpha': 0.518}, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}, 'store_context': True}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} + request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'projects/sample1/locations/sample2/cachedContents/sample3', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'id': 'id_value', 'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'id': 'id_value', 'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'video_metadata': {'start_offset': {}, 'end_offset': {}}, 'thought': True, 'thought_signature': b'thought_signature_blob'}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_corpora': ['rag_corpora_value1', 'rag_corpora_value2'], 'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'hybrid_search': {'alpha': 0.518}, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}, 'store_context': True}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'enable_zero_data_retention': True, 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -5387,7 +5387,7 @@ async def test_create_cached_content_rest_asyncio_call_success(request_type): # send a request that will satisfy transcoding request_init = {'parent': 'projects/sample1/locations/sample2'} - request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'name_value', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'id': 'id_value', 'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'id': 'id_value', 'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'video_metadata': {'start_offset': {}, 'end_offset': {}}, 'thought': True, 'thought_signature': b'thought_signature_blob'}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_corpora': ['rag_corpora_value1', 'rag_corpora_value2'], 'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'hybrid_search': {'alpha': 0.518}, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}, 'store_context': True}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} + request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'name_value', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'id': 'id_value', 'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'id': 'id_value', 'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'video_metadata': {'start_offset': {}, 'end_offset': {}}, 'thought': True, 'thought_signature': b'thought_signature_blob'}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_corpora': ['rag_corpora_value1', 'rag_corpora_value2'], 'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'hybrid_search': {'alpha': 0.518}, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}, 'store_context': True}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'enable_zero_data_retention': True, 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -5685,7 +5685,7 @@ async def test_update_cached_content_rest_asyncio_call_success(request_type): # send a request that will satisfy transcoding request_init = {'cached_content': {'name': 'projects/sample1/locations/sample2/cachedContents/sample3'}} - request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'projects/sample1/locations/sample2/cachedContents/sample3', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'id': 'id_value', 'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'id': 'id_value', 'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'video_metadata': {'start_offset': {}, 'end_offset': {}}, 'thought': True, 'thought_signature': b'thought_signature_blob'}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_corpora': ['rag_corpora_value1', 'rag_corpora_value2'], 'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'hybrid_search': {'alpha': 0.518}, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}, 'store_context': True}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} + request_init["cached_content"] = {'expire_time': {'seconds': 751, 'nanos': 543}, 'ttl': {'seconds': 751, 'nanos': 543}, 'name': 'projects/sample1/locations/sample2/cachedContents/sample3', 'display_name': 'display_name_value', 'model': 'model_value', 'system_instruction': {'role': 'role_value', 'parts': [{'text': 'text_value', 'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value'}, 'function_call': {'id': 'id_value', 'name': 'name_value', 'args': {'fields': {}}, 'partial_args': [{'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'json_path': 'json_path_value', 'will_continue': True}], 'will_continue': True}, 'function_response': {'id': 'id_value', 'name': 'name_value', 'response': {}, 'parts': [{'inline_data': {'mime_type': 'mime_type_value', 'data': b'data_blob', 'display_name': 'display_name_value'}, 'file_data': {'mime_type': 'mime_type_value', 'file_uri': 'file_uri_value', 'display_name': 'display_name_value'}}]}, 'executable_code': {'language': 1, 'code': 'code_value'}, 'code_execution_result': {'outcome': 1, 'output': 'output_value'}, 'video_metadata': {'start_offset': {}, 'end_offset': {}}, 'thought': True, 'thought_signature': b'thought_signature_blob'}]}, 'contents': {}, 'tools': [{'function_declarations': [{'name': 'name_value', 'description': 'description_value', 'parameters': {'type_': 1, 'format_': 'format__value', 'title': 'title_value', 'description': 'description_value', 'nullable': True, 'default': {'null_value': 0, 'number_value': 0.1285, 'string_value': 'string_value_value', 'bool_value': True, 'struct_value': {}, 'list_value': {'values': {}}}, 'items': {}, 'min_items': 965, 'max_items': 967, 'enum': ['enum_value1', 'enum_value2'], 'properties': {}, 'property_ordering': ['property_ordering_value1', 'property_ordering_value2'], 'required': ['required_value1', 'required_value2'], 'min_properties': 1520, 'max_properties': 1522, 'minimum': 0.764, 'maximum': 0.766, 'min_length': 1061, 'max_length': 1063, 'pattern': 'pattern_value', 'example': {}, 'any_of': {}, 'additional_properties': {}, 'ref': 'ref_value', 'defs': {}}, 'parameters_json_schema': {}, 'response': {}, 'response_json_schema': {}}], 'retrieval': {'vertex_ai_search': {'datastore': 'datastore_value', 'engine': 'engine_value', 'max_results': 1207, 'filter': 'filter_value', 'data_store_specs': [{'data_store': 'data_store_value', 'filter': 'filter_value'}]}, 'vertex_rag_store': {'rag_corpora': ['rag_corpora_value1', 'rag_corpora_value2'], 'rag_resources': [{'rag_corpus': 'rag_corpus_value', 'rag_file_ids': ['rag_file_ids_value1', 'rag_file_ids_value2']}], 'similarity_top_k': 1731, 'vector_distance_threshold': 0.2665, 'rag_retrieval_config': {'top_k': 541, 'hybrid_search': {'alpha': 0.518}, 'filter': {'vector_distance_threshold': 0.2665, 'vector_similarity_threshold': 0.2917, 'metadata_filter': 'metadata_filter_value'}, 'ranking': {'rank_service': {'model_name': 'model_name_value'}, 'llm_ranker': {'model_name': 'model_name_value'}}}, 'store_context': True}, 'disable_attribution': True}, 'google_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'google_search_retrieval': {'dynamic_retrieval_config': {'mode': 1, 'dynamic_threshold': 0.1809}}, 'google_maps': {'enable_widget': True}, 'enterprise_web_search': {'exclude_domains': ['exclude_domains_value1', 'exclude_domains_value2'], 'blocking_confidence': 30}, 'parallel_ai_search': {'api_key': 'api_key_value', 'enable_zero_data_retention': True, 'custom_configs': {}}, 'exa_ai_search': {'api_key': 'api_key_value', 'custom_configs': {}}, 'code_execution': {}, 'url_context': {}, 'computer_use': {'environment': 1, 'excluded_predefined_functions': ['excluded_predefined_functions_value1', 'excluded_predefined_functions_value2']}}], 'tool_config': {'function_calling_config': {'mode': 1, 'allowed_function_names': ['allowed_function_names_value1', 'allowed_function_names_value2'], 'stream_function_call_arguments': True}, 'retrieval_config': {'lat_lng': {'latitude': 0.86, 'longitude': 0.971}, 'language_code': 'language_code_value'}}, 'create_time': {}, 'update_time': {}, 'usage_metadata': {'total_token_count': 1836, 'text_count': 1101, 'image_count': 1163, 'video_duration_seconds': 2346, 'audio_duration_seconds': 2341}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_reasoning_engine_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_reasoning_engine_service.py index 69eb960367..1e3c4bf65b 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_reasoning_engine_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_reasoning_engine_service.py @@ -4103,7 +4103,7 @@ def test_create_reasoning_engine_rest_call_success(request_type): # send a request that will satisfy transcoding request_init = {'parent': 'projects/sample1/locations/sample2'} - request_init["reasoning_engine"] = {'name': 'name_value', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'context_spec': {'memory_bank_config': {'generation_config': {'model': 'model_value'}, 'similarity_search_config': {'embedding_model': 'embedding_model_value'}, 'ttl_config': {'default_ttl': {'seconds': 751, 'nanos': 543}, 'granular_ttl_config': {'create_ttl': {}, 'generate_created_ttl': {}, 'generate_updated_ttl': {}}}}}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}, 'traffic_config': {'traffic_split_manual': {'targets': [{'runtime_revision_name': 'runtime_revision_name_value', 'percent': 753}]}, 'traffic_split_always_latest': {}}} + request_init["reasoning_engine"] = {'name': 'name_value', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2, 'build_spec': {'worker_pool': 'worker_pool_value', 'service_account': 'service_account_value'}}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'context_spec': {'memory_bank_config': {'generation_config': {'model': 'model_value'}, 'similarity_search_config': {'embedding_model': 'embedding_model_value'}, 'ttl_config': {'default_ttl': {'seconds': 751, 'nanos': 543}, 'granular_ttl_config': {'create_ttl': {}, 'generate_created_ttl': {}, 'generate_updated_ttl': {}}}}}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}, 'traffic_config': {'traffic_split_manual': {'targets': [{'runtime_revision_name': 'runtime_revision_name_value', 'percent': 753}]}, 'traffic_split_always_latest': {}}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -4486,7 +4486,7 @@ def test_update_reasoning_engine_rest_call_success(request_type): # send a request that will satisfy transcoding request_init = {'reasoning_engine': {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3'}} - request_init["reasoning_engine"] = {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'context_spec': {'memory_bank_config': {'generation_config': {'model': 'model_value'}, 'similarity_search_config': {'embedding_model': 'embedding_model_value'}, 'ttl_config': {'default_ttl': {'seconds': 751, 'nanos': 543}, 'granular_ttl_config': {'create_ttl': {}, 'generate_created_ttl': {}, 'generate_updated_ttl': {}}}}}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}, 'traffic_config': {'traffic_split_manual': {'targets': [{'runtime_revision_name': 'runtime_revision_name_value', 'percent': 753}]}, 'traffic_split_always_latest': {}}} + request_init["reasoning_engine"] = {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2, 'build_spec': {'worker_pool': 'worker_pool_value', 'service_account': 'service_account_value'}}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'context_spec': {'memory_bank_config': {'generation_config': {'model': 'model_value'}, 'similarity_search_config': {'embedding_model': 'embedding_model_value'}, 'ttl_config': {'default_ttl': {'seconds': 751, 'nanos': 543}, 'granular_ttl_config': {'create_ttl': {}, 'generate_created_ttl': {}, 'generate_updated_ttl': {}}}}}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}, 'traffic_config': {'traffic_split_manual': {'targets': [{'runtime_revision_name': 'runtime_revision_name_value', 'percent': 753}]}, 'traffic_split_always_latest': {}}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -5424,7 +5424,7 @@ async def test_create_reasoning_engine_rest_asyncio_call_success(request_type): # send a request that will satisfy transcoding request_init = {'parent': 'projects/sample1/locations/sample2'} - request_init["reasoning_engine"] = {'name': 'name_value', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'context_spec': {'memory_bank_config': {'generation_config': {'model': 'model_value'}, 'similarity_search_config': {'embedding_model': 'embedding_model_value'}, 'ttl_config': {'default_ttl': {'seconds': 751, 'nanos': 543}, 'granular_ttl_config': {'create_ttl': {}, 'generate_created_ttl': {}, 'generate_updated_ttl': {}}}}}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}, 'traffic_config': {'traffic_split_manual': {'targets': [{'runtime_revision_name': 'runtime_revision_name_value', 'percent': 753}]}, 'traffic_split_always_latest': {}}} + request_init["reasoning_engine"] = {'name': 'name_value', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2, 'build_spec': {'worker_pool': 'worker_pool_value', 'service_account': 'service_account_value'}}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'context_spec': {'memory_bank_config': {'generation_config': {'model': 'model_value'}, 'similarity_search_config': {'embedding_model': 'embedding_model_value'}, 'ttl_config': {'default_ttl': {'seconds': 751, 'nanos': 543}, 'granular_ttl_config': {'create_ttl': {}, 'generate_created_ttl': {}, 'generate_updated_ttl': {}}}}}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}, 'traffic_config': {'traffic_split_manual': {'targets': [{'runtime_revision_name': 'runtime_revision_name_value', 'percent': 753}]}, 'traffic_split_always_latest': {}}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 @@ -5828,7 +5828,7 @@ async def test_update_reasoning_engine_rest_asyncio_call_success(request_type): # send a request that will satisfy transcoding request_init = {'reasoning_engine': {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3'}} - request_init["reasoning_engine"] = {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'context_spec': {'memory_bank_config': {'generation_config': {'model': 'model_value'}, 'similarity_search_config': {'embedding_model': 'embedding_model_value'}, 'ttl_config': {'default_ttl': {'seconds': 751, 'nanos': 543}, 'granular_ttl_config': {'create_ttl': {}, 'generate_created_ttl': {}, 'generate_updated_ttl': {}}}}}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}, 'traffic_config': {'traffic_split_manual': {'targets': [{'runtime_revision_name': 'runtime_revision_name_value', 'percent': 753}]}, 'traffic_split_always_latest': {}}} + request_init["reasoning_engine"] = {'name': 'projects/sample1/locations/sample2/reasoningEngines/sample3', 'display_name': 'display_name_value', 'description': 'description_value', 'spec': {'source_code_spec': {'inline_source': {'source_archive': b'source_archive_blob'}, 'developer_connect_source': {'config': {'git_repository_link': 'git_repository_link_value', 'dir_': 'dir__value', 'revision': 'revision_value'}}, 'python_spec': {'version': 'version_value', 'entrypoint_module': 'entrypoint_module_value', 'entrypoint_object': 'entrypoint_object_value', 'requirements_file': 'requirements_file_value'}, 'image_spec': {'build_args': {}}}, 'container_spec': {'image_uri': 'image_uri_value'}, 'service_account': 'service_account_value', 'package_spec': {'pickle_object_gcs_uri': 'pickle_object_gcs_uri_value', 'dependency_files_gcs_uri': 'dependency_files_gcs_uri_value', 'requirements_gcs_uri': 'requirements_gcs_uri_value', 'python_version': 'python_version_value'}, 'deployment_spec': {'env': [{'name': 'name_value', 'value': 'value_value'}], 'secret_env': [{'name': 'name_value', 'secret_ref': {'secret': 'secret_value', 'version': 'version_value'}}], 'psc_interface_config': {'network_attachment': 'network_attachment_value', 'dns_peering_configs': [{'domain': 'domain_value', 'target_project': 'target_project_value', 'target_network': 'target_network_value'}]}, 'min_instances': 1387, 'max_instances': 1389, 'resource_limits': {}, 'container_concurrency': 2253}, 'class_methods': [{'fields': {}}], 'agent_framework': 'agent_framework_value', 'identity_type': 2, 'build_spec': {'worker_pool': 'worker_pool_value', 'service_account': 'service_account_value'}}, 'create_time': {'seconds': 751, 'nanos': 543}, 'update_time': {}, 'etag': 'etag_value', 'context_spec': {'memory_bank_config': {'generation_config': {'model': 'model_value'}, 'similarity_search_config': {'embedding_model': 'embedding_model_value'}, 'ttl_config': {'default_ttl': {'seconds': 751, 'nanos': 543}, 'granular_ttl_config': {'create_ttl': {}, 'generate_created_ttl': {}, 'generate_updated_ttl': {}}}}}, 'encryption_spec': {'kms_key_name': 'kms_key_name_value'}, 'labels': {}, 'traffic_config': {'traffic_split_manual': {'targets': [{'runtime_revision_name': 'runtime_revision_name_value', 'percent': 753}]}, 'traffic_split_always_latest': {}}} # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748