This repository was archived by the owner on Dec 31, 2023. It is now read-only.
File tree 5 files changed +2142
-4
lines changed
google/cloud/devtools/containeranalysis_v1
services/container_analysis
tests/unit/gapic/containeranalysis_v1
5 files changed +2142
-4
lines changed Original file line number Diff line number Diff line change 56
56
]
57
57
}
58
58
}
59
+ },
60
+ "rest" : {
61
+ "libraryClient" : " ContainerAnalysisClient" ,
62
+ "rpcs" : {
63
+ "GetIamPolicy" : {
64
+ "methods" : [
65
+ " get_iam_policy"
66
+ ]
67
+ },
68
+ "GetVulnerabilityOccurrencesSummary" : {
69
+ "methods" : [
70
+ " get_vulnerability_occurrences_summary"
71
+ ]
72
+ },
73
+ "SetIamPolicy" : {
74
+ "methods" : [
75
+ " set_iam_policy"
76
+ ]
77
+ },
78
+ "TestIamPermissions" : {
79
+ "methods" : [
80
+ " test_iam_permissions"
81
+ ]
82
+ }
83
+ }
59
84
}
60
85
}
61
86
}
Original file line number Diff line number Diff line change 56
56
from .transports .base import DEFAULT_CLIENT_INFO , ContainerAnalysisTransport
57
57
from .transports .grpc import ContainerAnalysisGrpcTransport
58
58
from .transports .grpc_asyncio import ContainerAnalysisGrpcAsyncIOTransport
59
+ from .transports .rest import ContainerAnalysisRestTransport
59
60
60
61
61
62
class ContainerAnalysisClientMeta (type ):
@@ -71,6 +72,7 @@ class ContainerAnalysisClientMeta(type):
71
72
) # type: Dict[str, Type[ContainerAnalysisTransport]]
72
73
_transport_registry ["grpc" ] = ContainerAnalysisGrpcTransport
73
74
_transport_registry ["grpc_asyncio" ] = ContainerAnalysisGrpcAsyncIOTransport
75
+ _transport_registry ["rest" ] = ContainerAnalysisRestTransport
74
76
75
77
def get_transport_class (
76
78
cls ,
Original file line number Diff line number Diff line change 19
19
from .base import ContainerAnalysisTransport
20
20
from .grpc import ContainerAnalysisGrpcTransport
21
21
from .grpc_asyncio import ContainerAnalysisGrpcAsyncIOTransport
22
+ from .rest import ContainerAnalysisRestInterceptor , ContainerAnalysisRestTransport
22
23
23
24
# Compile a registry of transports.
24
25
_transport_registry = OrderedDict () # type: Dict[str, Type[ContainerAnalysisTransport]]
25
26
_transport_registry ["grpc" ] = ContainerAnalysisGrpcTransport
26
27
_transport_registry ["grpc_asyncio" ] = ContainerAnalysisGrpcAsyncIOTransport
28
+ _transport_registry ["rest" ] = ContainerAnalysisRestTransport
27
29
28
30
__all__ = (
29
31
"ContainerAnalysisTransport" ,
30
32
"ContainerAnalysisGrpcTransport" ,
31
33
"ContainerAnalysisGrpcAsyncIOTransport" ,
34
+ "ContainerAnalysisRestTransport" ,
35
+ "ContainerAnalysisRestInterceptor" ,
32
36
)
You can’t perform that action at this time.
0 commit comments