Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/google/cloud/iam_credentials_v1/__init__.py: 90%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

10 statements  

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

2# Copyright 2026 Google LLC 

3# 

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

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

6# You may obtain a copy of the License at 

7# 

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

9# 

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

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

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

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

14# limitations under the License. 

15# 

16import google.api_core as api_core 

17 

18from google.cloud.iam_credentials_v1 import gapic_version as package_version 

19 

20__version__ = package_version.__version__ 

21 

22# PEP 0810: Explicit Lazy Imports 

23# Python 3.15+ natively intercepts and defers these imports. 

24# Developers can disable this behavior and force eager imports. 

25# For more information, see: 

26# https://docs.python.org/3.15/library/sys.html#sys.set_lazy_imports_filter 

27# Older Python versions safely ignore this variable. 

28__lazy_modules__ = { 

29 "google.cloud.iam_credentials_v1.services.iam_credentials", 

30 "google.cloud.iam_credentials_v1.types.common", 

31 "google.cloud.iam_credentials_v1.types.iamcredentials", 

32} 

33 

34 

35from .services.iam_credentials import IAMCredentialsAsyncClient, IAMCredentialsClient 

36from .types.common import ( 

37 GenerateAccessTokenRequest, 

38 GenerateAccessTokenResponse, 

39 GenerateIdTokenRequest, 

40 GenerateIdTokenResponse, 

41 SignBlobRequest, 

42 SignBlobResponse, 

43 SignJwtRequest, 

44 SignJwtResponse, 

45) 

46 

47__all__ = ( 

48 "IAMCredentialsAsyncClient", 

49 "GenerateAccessTokenRequest", 

50 "GenerateAccessTokenResponse", 

51 "GenerateIdTokenRequest", 

52 "GenerateIdTokenResponse", 

53 "IAMCredentialsClient", 

54 "SignBlobRequest", 

55 "SignBlobResponse", 

56 "SignJwtRequest", 

57 "SignJwtResponse", 

58) 

59 

60api_core.check_python_version("google.cloud.iam_credentials_v1") 

61api_core.check_dependency_versions("google.cloud.iam_credentials_v1")