diff --git a/google/cloud/devtools/containeranalysis_v1/services/container_analysis/transports/rest.py b/google/cloud/devtools/containeranalysis_v1/services/container_analysis/transports/rest.py index 4e84161..fbee9d7 100644 --- a/google/cloud/devtools/containeranalysis_v1/services/container_analysis/transports/rest.py +++ b/google/cloud/devtools/containeranalysis_v1/services/container_analysis/transports/rest.py @@ -17,7 +17,7 @@ import dataclasses import json # type: ignore import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming @@ -310,7 +310,7 @@ class _GetIamPolicy(ContainerAnalysisRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -484,7 +484,7 @@ class _GetVulnerabilityOccurrencesSummary(ContainerAnalysisRestStub): def __hash__(self): return hash("GetVulnerabilityOccurrencesSummary") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -583,7 +583,7 @@ class _SetIamPolicy(ContainerAnalysisRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -757,7 +757,7 @@ class _TestIamPermissions(ContainerAnalysisRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/devtools/containeranalysis_v1/types/containeranalysis.py b/google/cloud/devtools/containeranalysis_v1/types/containeranalysis.py index 08b4aee..0bba47f 100644 --- a/google/cloud/devtools/containeranalysis_v1/types/containeranalysis.py +++ b/google/cloud/devtools/containeranalysis_v1/types/containeranalysis.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import grafeas.grafeas_v1 # type: ignore