Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/google/cloud/audit/audit_log_pb2.py: 66%

53 statements  

« prev     ^ index     » next       coverage.py v7.2.2, created at 2023-03-26 07:30 +0000

1# -*- coding: utf-8 -*- 

2 

3# Copyright 2020 Google LLC 

4# 

5# Licensed under the Apache License, Version 2.0 (the "License"); 

6# you may not use this file except in compliance with the License. 

7# You may obtain a copy of the License at 

8# 

9# http://www.apache.org/licenses/LICENSE-2.0 

10# 

11# Unless required by applicable law or agreed to in writing, software 

12# distributed under the License is distributed on an "AS IS" BASIS, 

13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

14# See the License for the specific language governing permissions and 

15# limitations under the License. 

16 

17# Generated by the protocol buffer compiler. DO NOT EDIT! 

18# source: google/cloud/audit/audit_log.proto 

19"""Generated protocol buffer code.""" 

20from google.protobuf import descriptor as _descriptor 

21from google.protobuf import descriptor_pool as _descriptor_pool 

22from google.protobuf import message as _message 

23from google.protobuf import reflection as _reflection 

24from google.protobuf import symbol_database as _symbol_database 

25 

26# @@protoc_insertion_point(imports) 

27 

28_sym_db = _symbol_database.Default() 

29 

30 

31from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 

32from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 

33from google.rpc.context import ( 

34 attribute_context_pb2 as google_dot_rpc_dot_context_dot_attribute__context__pb2, 

35) 

36from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 

37 

38 

39DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( 

40 b'\n"google/cloud/audit/audit_log.proto\x12\x12google.cloud.audit\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a*google/rpc/context/attribute_context.proto\x1a\x17google/rpc/status.proto"\xfa\x04\n\x08\x41uditLog\x12\x14\n\x0cservice_name\x18\x07 \x01(\t\x12\x13\n\x0bmethod_name\x18\x08 \x01(\t\x12\x15\n\rresource_name\x18\x0b \x01(\t\x12?\n\x11resource_location\x18\x14 \x01(\x0b\x32$.google.cloud.audit.ResourceLocation\x12\x38\n\x17resource_original_state\x18\x13 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1a\n\x12num_response_items\x18\x0c \x01(\x03\x12"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x43\n\x13\x61uthentication_info\x18\x03 \x01(\x0b\x32&.google.cloud.audit.AuthenticationInfo\x12\x41\n\x12\x61uthorization_info\x18\t \x03(\x0b\x32%.google.cloud.audit.AuthorizationInfo\x12=\n\x10request_metadata\x18\x04 \x01(\x0b\x32#.google.cloud.audit.RequestMetadata\x12(\n\x07request\x18\x10 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08response\x18\x11 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08metadata\x18\x12 \x01(\x0b\x32\x17.google.protobuf.Struct\x12*\n\x0cservice_data\x18\x0f \x01(\x0b\x32\x14.google.protobuf.Any"\x99\x02\n\x12\x41uthenticationInfo\x12\x17\n\x0fprincipal_email\x18\x01 \x01(\t\x12\x1a\n\x12\x61uthority_selector\x18\x02 \x01(\t\x12\x36\n\x15third_party_principal\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12 \n\x18service_account_key_name\x18\x05 \x01(\t\x12Y\n\x1fservice_account_delegation_info\x18\x06 \x03(\x0b\x32\x30.google.cloud.audit.ServiceAccountDelegationInfo\x12\x19\n\x11principal_subject\x18\x08 \x01(\t"\x96\x01\n\x11\x41uthorizationInfo\x12\x10\n\x08resource\x18\x01 \x01(\t\x12\x12\n\npermission\x18\x02 \x01(\t\x12\x0f\n\x07granted\x18\x03 \x01(\x08\x12J\n\x13resource_attributes\x18\x05 \x01(\x0b\x32-.google.rpc.context.AttributeContext.Resource"\xf5\x01\n\x0fRequestMetadata\x12\x11\n\tcaller_ip\x18\x01 \x01(\t\x12"\n\x1a\x63\x61ller_supplied_user_agent\x18\x02 \x01(\t\x12\x16\n\x0e\x63\x61ller_network\x18\x03 \x01(\t\x12H\n\x12request_attributes\x18\x07 \x01(\x0b\x32,.google.rpc.context.AttributeContext.Request\x12I\n\x16\x64\x65stination_attributes\x18\x08 \x01(\x0b\x32).google.rpc.context.AttributeContext.Peer"I\n\x10ResourceLocation\x12\x19\n\x11\x63urrent_locations\x18\x01 \x03(\t\x12\x1a\n\x12original_locations\x18\x02 \x03(\t"\xa8\x03\n\x1cServiceAccountDelegationInfo\x12\x65\n\x15\x66irst_party_principal\x18\x01 \x01(\x0b\x32\x44.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipalH\x00\x12\x65\n\x15third_party_principal\x18\x02 \x01(\x0b\x32\x44.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipalH\x00\x1a\x61\n\x13\x46irstPartyPrincipal\x12\x17\n\x0fprincipal_email\x18\x01 \x01(\t\x12\x31\n\x10service_metadata\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x1aJ\n\x13ThirdPartyPrincipal\x12\x33\n\x12third_party_claims\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\x0b\n\tAuthorityBe\n\x16\x63om.google.cloud.auditB\rAuditLogProtoP\x01Z7google.golang.org/genproto/googleapis/cloud/audit;audit\xf8\x01\x01\x62\x06proto3' 

41) 

42 

43 

44_AUDITLOG = DESCRIPTOR.message_types_by_name["AuditLog"] 

45_AUTHENTICATIONINFO = DESCRIPTOR.message_types_by_name["AuthenticationInfo"] 

46_AUTHORIZATIONINFO = DESCRIPTOR.message_types_by_name["AuthorizationInfo"] 

47_REQUESTMETADATA = DESCRIPTOR.message_types_by_name["RequestMetadata"] 

48_RESOURCELOCATION = DESCRIPTOR.message_types_by_name["ResourceLocation"] 

49_SERVICEACCOUNTDELEGATIONINFO = DESCRIPTOR.message_types_by_name[ 

50 "ServiceAccountDelegationInfo" 

51] 

52_SERVICEACCOUNTDELEGATIONINFO_FIRSTPARTYPRINCIPAL = _SERVICEACCOUNTDELEGATIONINFO.nested_types_by_name[ 

53 "FirstPartyPrincipal" 

54] 

55_SERVICEACCOUNTDELEGATIONINFO_THIRDPARTYPRINCIPAL = _SERVICEACCOUNTDELEGATIONINFO.nested_types_by_name[ 

56 "ThirdPartyPrincipal" 

57] 

58AuditLog = _reflection.GeneratedProtocolMessageType( 

59 "AuditLog", 

60 (_message.Message,), 

61 { 

62 "DESCRIPTOR": _AUDITLOG, 

63 "__module__": "google.cloud.audit.audit_log_pb2" 

64 # @@protoc_insertion_point(class_scope:google.cloud.audit.AuditLog) 

65 }, 

66) 

67_sym_db.RegisterMessage(AuditLog) 

68 

69AuthenticationInfo = _reflection.GeneratedProtocolMessageType( 

70 "AuthenticationInfo", 

71 (_message.Message,), 

72 { 

73 "DESCRIPTOR": _AUTHENTICATIONINFO, 

74 "__module__": "google.cloud.audit.audit_log_pb2" 

75 # @@protoc_insertion_point(class_scope:google.cloud.audit.AuthenticationInfo) 

76 }, 

77) 

78_sym_db.RegisterMessage(AuthenticationInfo) 

79 

80AuthorizationInfo = _reflection.GeneratedProtocolMessageType( 

81 "AuthorizationInfo", 

82 (_message.Message,), 

83 { 

84 "DESCRIPTOR": _AUTHORIZATIONINFO, 

85 "__module__": "google.cloud.audit.audit_log_pb2" 

86 # @@protoc_insertion_point(class_scope:google.cloud.audit.AuthorizationInfo) 

87 }, 

88) 

89_sym_db.RegisterMessage(AuthorizationInfo) 

90 

91RequestMetadata = _reflection.GeneratedProtocolMessageType( 

92 "RequestMetadata", 

93 (_message.Message,), 

94 { 

95 "DESCRIPTOR": _REQUESTMETADATA, 

96 "__module__": "google.cloud.audit.audit_log_pb2" 

97 # @@protoc_insertion_point(class_scope:google.cloud.audit.RequestMetadata) 

98 }, 

99) 

100_sym_db.RegisterMessage(RequestMetadata) 

101 

102ResourceLocation = _reflection.GeneratedProtocolMessageType( 

103 "ResourceLocation", 

104 (_message.Message,), 

105 { 

106 "DESCRIPTOR": _RESOURCELOCATION, 

107 "__module__": "google.cloud.audit.audit_log_pb2" 

108 # @@protoc_insertion_point(class_scope:google.cloud.audit.ResourceLocation) 

109 }, 

110) 

111_sym_db.RegisterMessage(ResourceLocation) 

112 

113ServiceAccountDelegationInfo = _reflection.GeneratedProtocolMessageType( 

114 "ServiceAccountDelegationInfo", 

115 (_message.Message,), 

116 { 

117 "FirstPartyPrincipal": _reflection.GeneratedProtocolMessageType( 

118 "FirstPartyPrincipal", 

119 (_message.Message,), 

120 { 

121 "DESCRIPTOR": _SERVICEACCOUNTDELEGATIONINFO_FIRSTPARTYPRINCIPAL, 

122 "__module__": "google.cloud.audit.audit_log_pb2" 

123 # @@protoc_insertion_point(class_scope:google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal) 

124 }, 

125 ), 

126 "ThirdPartyPrincipal": _reflection.GeneratedProtocolMessageType( 

127 "ThirdPartyPrincipal", 

128 (_message.Message,), 

129 { 

130 "DESCRIPTOR": _SERVICEACCOUNTDELEGATIONINFO_THIRDPARTYPRINCIPAL, 

131 "__module__": "google.cloud.audit.audit_log_pb2" 

132 # @@protoc_insertion_point(class_scope:google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal) 

133 }, 

134 ), 

135 "DESCRIPTOR": _SERVICEACCOUNTDELEGATIONINFO, 

136 "__module__": "google.cloud.audit.audit_log_pb2" 

137 # @@protoc_insertion_point(class_scope:google.cloud.audit.ServiceAccountDelegationInfo) 

138 }, 

139) 

140_sym_db.RegisterMessage(ServiceAccountDelegationInfo) 

141_sym_db.RegisterMessage(ServiceAccountDelegationInfo.FirstPartyPrincipal) 

142_sym_db.RegisterMessage(ServiceAccountDelegationInfo.ThirdPartyPrincipal) 

143 

144if _descriptor._USE_C_DESCRIPTORS == False: 

145 

146 DESCRIPTOR._options = None 

147 DESCRIPTOR._serialized_options = b"\n\026com.google.cloud.auditB\rAuditLogProtoP\001Z7google.golang.org/genproto/googleapis/cloud/audit;audit\370\001\001" 

148 _AUDITLOG._serialized_start = 185 

149 _AUDITLOG._serialized_end = 819 

150 _AUTHENTICATIONINFO._serialized_start = 822 

151 _AUTHENTICATIONINFO._serialized_end = 1103 

152 _AUTHORIZATIONINFO._serialized_start = 1106 

153 _AUTHORIZATIONINFO._serialized_end = 1256 

154 _REQUESTMETADATA._serialized_start = 1259 

155 _REQUESTMETADATA._serialized_end = 1504 

156 _RESOURCELOCATION._serialized_start = 1506 

157 _RESOURCELOCATION._serialized_end = 1579 

158 _SERVICEACCOUNTDELEGATIONINFO._serialized_start = 1582 

159 _SERVICEACCOUNTDELEGATIONINFO._serialized_end = 2006 

160 _SERVICEACCOUNTDELEGATIONINFO_FIRSTPARTYPRINCIPAL._serialized_start = 1820 

161 _SERVICEACCOUNTDELEGATIONINFO_FIRSTPARTYPRINCIPAL._serialized_end = 1917 

162 _SERVICEACCOUNTDELEGATIONINFO_THIRDPARTYPRINCIPAL._serialized_start = 1919 

163 _SERVICEACCOUNTDELEGATIONINFO_THIRDPARTYPRINCIPAL._serialized_end = 1993 

164# @@protoc_insertion_point(module_scope)