0
# Stored Info Types
1
2
Custom sensitive information detection patterns for organization-specific data types. Extends built-in detectors with custom dictionaries, regular expressions, and machine learning models.
3
4
## Capabilities
5
6
### Stored Info Type Management
7
8
```python { .api }
9
def create_stored_info_type(
10
request: dlp.CreateStoredInfoTypeRequest,
11
*,
12
parent: Optional[str] = None,
13
config: Optional[dlp.StoredInfoTypeConfig] = None,
14
retry: OptionalRetry = gapic_v1.method.DEFAULT,
15
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
16
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
17
) -> dlp.StoredInfoType: ...
18
19
def update_stored_info_type(
20
request: dlp.UpdateStoredInfoTypeRequest,
21
*,
22
name: Optional[str] = None,
23
config: Optional[dlp.StoredInfoTypeConfig] = None,
24
update_mask: Optional[field_mask_pb2.FieldMask] = None,
25
retry: OptionalRetry = gapic_v1.method.DEFAULT,
26
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
27
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
28
) -> dlp.StoredInfoType: ...
29
30
def get_stored_info_type(
31
request: dlp.GetStoredInfoTypeRequest,
32
*,
33
name: Optional[str] = None,
34
retry: OptionalRetry = gapic_v1.method.DEFAULT,
35
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
36
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
37
) -> dlp.StoredInfoType: ...
38
39
def list_stored_info_types(
40
request: dlp.ListStoredInfoTypesRequest,
41
*,
42
parent: Optional[str] = None,
43
retry: OptionalRetry = gapic_v1.method.DEFAULT,
44
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
45
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
46
) -> pagers.ListStoredInfoTypesPager: ...
47
48
def delete_stored_info_type(
49
request: dlp.DeleteStoredInfoTypeRequest,
50
*,
51
name: Optional[str] = None,
52
retry: OptionalRetry = gapic_v1.method.DEFAULT,
53
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
54
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
55
) -> None: ...
56
```
57
58
## Types
59
60
```python { .api }
61
class StoredInfoType:
62
"""Custom stored information type."""
63
64
name: str
65
current_version: StoredInfoTypeVersion
66
pending_versions: Sequence[StoredInfoTypeVersion]
67
68
class StoredInfoTypeConfig:
69
"""Configuration for stored info type."""
70
71
display_name: str
72
description: str
73
large_custom_dictionary: LargeCustomDictionaryConfig
74
dictionary: CustomInfoType.Dictionary
75
regex: CustomInfoType.Regex
76
surrogate_type: CustomInfoType.SurrogateType
77
78
class StoredInfoTypeVersion:
79
"""Version of a stored info type."""
80
81
config: StoredInfoTypeConfig
82
create_time: timestamp_pb2.Timestamp
83
state: StoredInfoTypeState
84
errors: Sequence[Error]
85
stats: StoredInfoTypeStats
86
```