@@ -246,6 +246,20 @@ message Template {
246
246
[(google.api.field_behavior ) = REQUIRED ];
247
247
}
248
248
249
+ // Enforcement type for Model Armor filters.
250
+ enum EnforcementType {
251
+ // Default value. Same as INSPECT_AND_BLOCK.
252
+ ENFORCEMENT_TYPE_UNSPECIFIED = 0 ;
253
+
254
+ // Model Armor filters will run in inspect only mode. No action will be
255
+ // taken on the request.
256
+ INSPECT_ONLY = 1 ;
257
+
258
+ // Model Armor filters will run in inspect and block mode. Requests
259
+ // that trip Model Armor filters will be blocked.
260
+ INSPECT_AND_BLOCK = 2 ;
261
+ }
262
+
249
263
// Optional. If true, partial detector failures should be ignored.
250
264
bool ignore_partial_invocation_failures = 1
251
265
[(google.api.field_behavior ) = OPTIONAL ];
@@ -277,6 +291,10 @@ message Template {
277
291
// Optional. If true, log sanitize operations.
278
292
bool log_sanitize_operations = 7 [(google.api.field_behavior ) = OPTIONAL ];
279
293
294
+ // Optional. Enforcement type for Model Armor filters.
295
+ EnforcementType enforcement_type = 8
296
+ [(google.api.field_behavior ) = OPTIONAL ];
297
+
280
298
// Optional. Metadata for multi language detection.
281
299
MultiLanguageDetection multi_language_detection = 9
282
300
[(google.api.field_behavior ) = OPTIONAL ];
@@ -315,6 +333,18 @@ message FloorSetting {
315
333
singular : "floorSetting"
316
334
};
317
335
336
+ // message describing FloorSetting Metadata
337
+ message FloorSettingMetadata {}
338
+
339
+ // Integrated service for which the floor setting is applicable.
340
+ enum IntegratedService {
341
+ // Unspecified integrated service.
342
+ INTEGRATED_SERVICE_UNSPECIFIED = 0 ;
343
+
344
+ // AI Platform.
345
+ AI_PLATFORM = 1 ;
346
+ }
347
+
318
348
// Identifier. The resource name.
319
349
string name = 1 [(google.api.field_behavior ) = IDENTIFIER ];
320
350
@@ -332,6 +362,36 @@ message FloorSetting {
332
362
// Optional. Floor Settings enforcement status.
333
363
optional bool enable_floor_setting_enforcement = 5
334
364
[(google.api.field_behavior ) = OPTIONAL ];
365
+
366
+ // Optional. List of integrated services for which the floor setting is
367
+ // applicable.
368
+ repeated IntegratedService integrated_services = 6
369
+ [(google.api.field_behavior ) = OPTIONAL ];
370
+
371
+ // Optional. AI Platform floor setting.
372
+ optional AiPlatformFloorSetting ai_platform_floor_setting = 7
373
+ [(google.api.field_behavior ) = OPTIONAL ];
374
+
375
+ // Optional. Metadata for FloorSetting
376
+ FloorSettingMetadata floor_setting_metadata = 8
377
+ [(google.api.field_behavior ) = OPTIONAL ];
378
+ }
379
+
380
+ // message describing AiPlatformFloorSetting
381
+ message AiPlatformFloorSetting {
382
+ // enforcement type for Model Armor filters.
383
+ oneof enforcement_type {
384
+ // Optional. If true, Model Armor filters will be run in inspect only mode.
385
+ // No action will be taken on the request.
386
+ bool inspect_only = 1 [(google.api.field_behavior ) = OPTIONAL ];
387
+
388
+ // Optional. If true, Model Armor filters will be run in inspect and block
389
+ // mode. Requests that trip Model Armor filters will be blocked.
390
+ bool inspect_and_block = 2 [(google.api.field_behavior ) = OPTIONAL ];
391
+ }
392
+
393
+ // Optional. If true, log Model Armor filter results to Cloud Logging.
394
+ bool enable_cloud_logging = 3 [(google.api.field_behavior ) = OPTIONAL ];
335
395
}
336
396
337
397
// Message for requesting list of Templates
@@ -639,7 +699,7 @@ message SdpAdvancedConfig {
639
699
// Sanitization. All Sensitive Data Protection findings identified during
640
700
// inspection will be returned as SdpFinding in SdpInsepctionResult.
641
701
//
642
- // e.g.
702
+ // e.g.
643
703
// `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
644
704
string inspect_template = 1 [(google.api.field_behavior ) = OPTIONAL ];
645
705
0 commit comments