Debian Codegraph @

google/rpc/context/audit_context_pb2.pyi

raw
1 # Copyright 2025 Google LLC
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 from typing import ClassVar as _ClassVar
16 from typing import Mapping as _Mapping
17 from typing import Optional as _Optional
18 from typing import Union as _Union
19
20 from google.protobuf import descriptor as _descriptor
21 from google.protobuf import message as _message
22 from google.protobuf import struct_pb2 as _struct_pb2
23
24 DESCRIPTOR: _descriptor.FileDescriptor
25
26 class AuditContext(_message.Message):
27 __slots__ = (
28 "audit_log",
29 "scrubbed_request",
30 "scrubbed_response",
31 "scrubbed_response_item_count",
32 "target_resource",
33 )
34 AUDIT_LOG_FIELD_NUMBER: _ClassVar[int]
35 SCRUBBED_REQUEST_FIELD_NUMBER: _ClassVar[int]
36 SCRUBBED_RESPONSE_FIELD_NUMBER: _ClassVar[int]
37 SCRUBBED_RESPONSE_ITEM_COUNT_FIELD_NUMBER: _ClassVar[int]
38 TARGET_RESOURCE_FIELD_NUMBER: _ClassVar[int]
39 audit_log: bytes
40 scrubbed_request: _struct_pb2.Struct
41 scrubbed_response: _struct_pb2.Struct
42 scrubbed_response_item_count: int
43 target_resource: str
44 def __init__(
45 self,
46 audit_log: _Optional[bytes] = ...,
47 scrubbed_request: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...,
48 scrubbed_response: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...,
49 scrubbed_response_item_count: _Optional[int] = ...,
50 target_resource: _Optional[str] = ...,
51 ) -> None: ...