Skip to content

Commit

Permalink
Fixed type error
Browse files Browse the repository at this point in the history
  • Loading branch information
roshanmaskey committed Nov 18, 2024
1 parent 7dd1aa7 commit ee5e759
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plaso/parsers/jsonl_plugins/gcp_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import re

from typing import Any
from typing import Dict, Any

from dfdatetime import time_elements as dfdatetime_time_elements

Expand Down Expand Up @@ -141,7 +141,7 @@ def _ParseJSONPayload(self, json_dict, event_data):
event_data.user = self._GetJSONValue(actor_json, 'user')

def _ParseAuthenticationInfo(
self, proto_payload: dict[str, Any], event_data: GCPLogEventData) -> None:
self, proto_payload: Dict[str, Any], event_data: GCPLogEventData) -> None:
"""Extract information from `protoPayload.authenticationInfo`.
Args:
Expand Down Expand Up @@ -195,7 +195,7 @@ def _ParseAuthenticationInfo(
event_data.delegation_chain = '->'.join(delegations)

def _ParseAuthorizationInfo(
self, proto_payload: dict[str, Any], event_data: GCPLogEventData) -> None:
self, proto_payload: Dict[str, Any], event_data: GCPLogEventData) -> None:
"""Extracts information from `protoPayload.authorizationInfo`.
Args:
Expand All @@ -218,7 +218,7 @@ def _ParseAuthorizationInfo(
event_data.permissions = permissions

def _ParseRequestMetadata(
self, proto_payload: dict[str, Any], event_data: GCPLogEventData) -> None:
self, proto_payload: Dict[str, Any], event_data: GCPLogEventData) -> None:
"""Extracts information from `protoPayload.requestMetadata`.
Args:
Expand Down Expand Up @@ -258,7 +258,7 @@ def _ParseRequestMetadata(
event_data.gcloud_command_id = invocation_id

def _ParseProtoPayloadStatus(
self, proto_payload: dict[str, Any], event_data: GCPLogEventData) -> None:
self, proto_payload: Dict[str, Any], event_data: GCPLogEventData) -> None:
"""Extracts information from `protoPayload.status`.
Args:
Expand Down Expand Up @@ -286,7 +286,7 @@ def _ParseProtoPayloadStatus(
event_data.status_message = status_message

def _ParseComputeInstancesInsert(
self, request: dict[str, Any], event_data: GCPLogEventData) -> None:
self, request: Dict[str, Any], event_data: GCPLogEventData) -> None:
"""Extracts compute.instances.insert information.
Args:
Expand Down Expand Up @@ -331,7 +331,7 @@ def _ParseComputeInstancesInsert(
event_data.dcsa_scopes = dcsa_scopes

def _ParseComputeProtoPayload(
self, proto_payload: dict[str, Any], event_data: GCPLogEventData) -> None:
self, proto_payload: Dict[str, Any], event_data: GCPLogEventData) -> None:
"""Extracts compute.googleapis.com information.
Args:
Expand Down

0 comments on commit ee5e759

Please sign in to comment.