File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,9 @@ def create_model_armor_template_with_metadata(
7676 # For more details on template metadata, please refer to the following doc:
7777 # https://cloud.google.com/security-command-center/docs/reference/model-armor/rest/v1/projects.locations.templates#templatemetadata
7878 template_metadata = modelarmor_v1 .Template .TemplateMetadata (
79- ignore_partial_invocation_failures = True , log_sanitize_operations = True
79+ ignore_partial_invocation_failures = True ,
80+ log_sanitize_operations = True ,
81+ log_template_operations = True ,
8082 ),
8183 )
8284
Original file line number Diff line number Diff line change @@ -561,6 +561,7 @@ def test_create_model_armor_template_with_metadata(
561561 )
562562
563563 assert created_template .template_metadata .ignore_partial_invocation_failures
564+ assert created_template .template_metadata .log_template_operations
564565 assert created_template .template_metadata .log_sanitize_operations
565566
566567
@@ -624,6 +625,7 @@ def test_update_model_armor_template_metadata(
624625 )
625626
626627 assert updated_template .template_metadata .ignore_partial_invocation_failures
628+ assert updated_template .template_metadata .log_template_operations
627629 assert updated_template .template_metadata .log_sanitize_operations
628630
629631
Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ def update_model_armor_template_metadata(
9595 # For more details on template metadata, please refer to the following doc:
9696 # https://cloud.google.com/security-command-center/docs/reference/model-armor/rest/v1/projects.locations.templates#templatemetadata
9797 template_metadata = modelarmor_v1 .Template .TemplateMetadata (
98- ignore_partial_invocation_failures = True , log_sanitize_operations = True
98+ ignore_partial_invocation_failures = True ,
99+ log_sanitize_operations = True ,
100+ log_template_operations = True ,
99101 ),
100102 )
101103
You can’t perform that action at this time.
0 commit comments