scanoss 1.27.1__py3-none-any.whl → 1.43.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- protoc_gen_swagger/options/annotations_pb2.py +18 -12
- protoc_gen_swagger/options/annotations_pb2.pyi +48 -0
- protoc_gen_swagger/options/annotations_pb2_grpc.py +20 -0
- protoc_gen_swagger/options/openapiv2_pb2.py +110 -99
- protoc_gen_swagger/options/openapiv2_pb2.pyi +1317 -0
- protoc_gen_swagger/options/openapiv2_pb2_grpc.py +20 -0
- scanoss/__init__.py +1 -1
- scanoss/api/common/v2/scanoss_common_pb2.py +49 -22
- scanoss/api/common/v2/scanoss_common_pb2_grpc.py +25 -0
- scanoss/api/components/v2/scanoss_components_pb2.py +68 -43
- scanoss/api/components/v2/scanoss_components_pb2_grpc.py +83 -22
- scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py +136 -47
- scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +650 -33
- scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +56 -37
- scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +64 -12
- scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2.py +74 -31
- scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2_grpc.py +252 -13
- scanoss/api/licenses/__init__.py +23 -0
- scanoss/api/licenses/v2/__init__.py +23 -0
- scanoss/api/licenses/v2/scanoss_licenses_pb2.py +84 -0
- scanoss/api/licenses/v2/scanoss_licenses_pb2_grpc.py +302 -0
- scanoss/api/scanning/v2/scanoss_scanning_pb2.py +32 -21
- scanoss/api/scanning/v2/scanoss_scanning_pb2_grpc.py +49 -8
- scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +50 -23
- scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +151 -16
- scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +78 -31
- scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py +282 -18
- scanoss/cli.py +1000 -186
- scanoss/components.py +80 -50
- scanoss/constants.py +7 -1
- scanoss/cryptography.py +89 -55
- scanoss/csvoutput.py +13 -7
- scanoss/cyclonedx.py +141 -9
- scanoss/data/build_date.txt +1 -1
- scanoss/data/osadl-copyleft.json +133 -0
- scanoss/delta.py +197 -0
- scanoss/export/__init__.py +23 -0
- scanoss/export/dependency_track.py +227 -0
- scanoss/file_filters.py +2 -163
- scanoss/filecount.py +37 -38
- scanoss/gitlabqualityreport.py +214 -0
- scanoss/header_filter.py +563 -0
- scanoss/inspection/policy_check/__init__.py +0 -0
- scanoss/inspection/policy_check/dependency_track/__init__.py +0 -0
- scanoss/inspection/policy_check/dependency_track/project_violation.py +479 -0
- scanoss/inspection/{policy_check.py → policy_check/policy_check.py} +65 -72
- scanoss/inspection/policy_check/scanoss/__init__.py +0 -0
- scanoss/inspection/{copyleft.py → policy_check/scanoss/copyleft.py} +89 -73
- scanoss/inspection/{undeclared_component.py → policy_check/scanoss/undeclared_component.py} +52 -46
- scanoss/inspection/summary/__init__.py +0 -0
- scanoss/inspection/summary/component_summary.py +170 -0
- scanoss/inspection/{license_summary.py → summary/license_summary.py} +62 -12
- scanoss/inspection/summary/match_summary.py +341 -0
- scanoss/inspection/utils/file_utils.py +44 -0
- scanoss/inspection/utils/license_utils.py +57 -71
- scanoss/inspection/utils/markdown_utils.py +63 -0
- scanoss/inspection/{inspect_base.py → utils/scan_result_processor.py} +53 -67
- scanoss/osadl.py +125 -0
- scanoss/scanner.py +135 -253
- scanoss/scanners/folder_hasher.py +47 -32
- scanoss/scanners/scanner_hfh.py +50 -18
- scanoss/scanoss_settings.py +33 -3
- scanoss/scanossapi.py +23 -25
- scanoss/scanossbase.py +1 -1
- scanoss/scanossgrpc.py +543 -289
- scanoss/services/dependency_track_service.py +132 -0
- scanoss/spdxlite.py +11 -4
- scanoss/threadeddependencies.py +19 -18
- scanoss/threadedscanning.py +10 -0
- scanoss/utils/scanoss_scan_results_utils.py +41 -0
- scanoss/winnowing.py +71 -19
- {scanoss-1.27.1.dist-info → scanoss-1.43.1.dist-info}/METADATA +8 -5
- scanoss-1.43.1.dist-info/RECORD +110 -0
- scanoss/inspection/component_summary.py +0 -94
- scanoss-1.27.1.dist-info/RECORD +0 -87
- {scanoss-1.27.1.dist-info → scanoss-1.43.1.dist-info}/WHEEL +0 -0
- {scanoss-1.27.1.dist-info → scanoss-1.43.1.dist-info}/entry_points.txt +0 -0
- {scanoss-1.27.1.dist-info → scanoss-1.43.1.dist-info}/licenses/LICENSE +0 -0
- {scanoss-1.27.1.dist-info → scanoss-1.43.1.dist-info}/top_level.txt +0 -0
|
@@ -1,14 +1,37 @@
|
|
|
1
1
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
3
|
import grpc
|
|
4
|
+
import warnings
|
|
4
5
|
|
|
5
6
|
from scanoss.api.common.v2 import scanoss_common_pb2 as scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2
|
|
6
7
|
from scanoss.api.cryptography.v2 import scanoss_cryptography_pb2 as scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2
|
|
7
8
|
|
|
9
|
+
GRPC_GENERATED_VERSION = '1.73.1'
|
|
10
|
+
GRPC_VERSION = grpc.__version__
|
|
11
|
+
_version_not_supported = False
|
|
12
|
+
|
|
13
|
+
try:
|
|
14
|
+
from grpc._utilities import first_version_is_lower
|
|
15
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
16
|
+
except ImportError:
|
|
17
|
+
_version_not_supported = True
|
|
18
|
+
|
|
19
|
+
if _version_not_supported:
|
|
20
|
+
raise RuntimeError(
|
|
21
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
22
|
+
+ f' but the generated code in scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py depends on'
|
|
23
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
24
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
25
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
26
|
+
)
|
|
27
|
+
|
|
8
28
|
|
|
9
29
|
class CryptographyStub(object):
|
|
10
30
|
"""
|
|
11
|
-
|
|
31
|
+
Cryptography Service Definition
|
|
32
|
+
|
|
33
|
+
Provides comprehensive cryptographic intelligence for software components
|
|
34
|
+
including algorithm detection, encryption hints, and security assessments.
|
|
12
35
|
"""
|
|
13
36
|
|
|
14
37
|
def __init__(self, channel):
|
|
@@ -21,76 +44,286 @@ class CryptographyStub(object):
|
|
|
21
44
|
'/scanoss.api.cryptography.v2.Cryptography/Echo',
|
|
22
45
|
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
23
46
|
response_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
24
|
-
)
|
|
47
|
+
_registered_method=True)
|
|
25
48
|
self.GetAlgorithms = channel.unary_unary(
|
|
26
49
|
'/scanoss.api.cryptography.v2.Cryptography/GetAlgorithms',
|
|
27
50
|
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
28
51
|
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmResponse.FromString,
|
|
29
|
-
)
|
|
52
|
+
_registered_method=True)
|
|
53
|
+
self.GetComponentAlgorithms = channel.unary_unary(
|
|
54
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentAlgorithms',
|
|
55
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
56
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsResponse.FromString,
|
|
57
|
+
_registered_method=True)
|
|
58
|
+
self.GetComponentsAlgorithms = channel.unary_unary(
|
|
59
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentsAlgorithms',
|
|
60
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
61
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsResponse.FromString,
|
|
62
|
+
_registered_method=True)
|
|
30
63
|
self.GetAlgorithmsInRange = channel.unary_unary(
|
|
31
64
|
'/scanoss.api.cryptography.v2.Cryptography/GetAlgorithmsInRange',
|
|
32
65
|
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
33
66
|
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmsInRangeResponse.FromString,
|
|
34
|
-
)
|
|
67
|
+
_registered_method=True)
|
|
68
|
+
self.GetComponentAlgorithmsInRange = channel.unary_unary(
|
|
69
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentAlgorithmsInRange',
|
|
70
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
71
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsInRangeResponse.FromString,
|
|
72
|
+
_registered_method=True)
|
|
73
|
+
self.GetComponentsAlgorithmsInRange = channel.unary_unary(
|
|
74
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentsAlgorithmsInRange',
|
|
75
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
76
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsInRangeResponse.FromString,
|
|
77
|
+
_registered_method=True)
|
|
35
78
|
self.GetVersionsInRange = channel.unary_unary(
|
|
36
79
|
'/scanoss.api.cryptography.v2.Cryptography/GetVersionsInRange',
|
|
37
80
|
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
38
81
|
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.VersionsInRangeResponse.FromString,
|
|
39
|
-
)
|
|
82
|
+
_registered_method=True)
|
|
83
|
+
self.GetComponentVersionsInRange = channel.unary_unary(
|
|
84
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentVersionsInRange',
|
|
85
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
86
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentVersionsInRangeResponse.FromString,
|
|
87
|
+
_registered_method=True)
|
|
88
|
+
self.GetComponentsVersionsInRange = channel.unary_unary(
|
|
89
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentsVersionsInRange',
|
|
90
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
91
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsVersionsInRangeResponse.FromString,
|
|
92
|
+
_registered_method=True)
|
|
40
93
|
self.GetHintsInRange = channel.unary_unary(
|
|
41
94
|
'/scanoss.api.cryptography.v2.Cryptography/GetHintsInRange',
|
|
42
95
|
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
43
96
|
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsInRangeResponse.FromString,
|
|
44
|
-
)
|
|
97
|
+
_registered_method=True)
|
|
98
|
+
self.GetComponentHintsInRange = channel.unary_unary(
|
|
99
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentHintsInRange',
|
|
100
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
101
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentHintsInRangeResponse.FromString,
|
|
102
|
+
_registered_method=True)
|
|
103
|
+
self.GetComponentsHintsInRange = channel.unary_unary(
|
|
104
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentsHintsInRange',
|
|
105
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
106
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsHintsInRangeResponse.FromString,
|
|
107
|
+
_registered_method=True)
|
|
45
108
|
self.GetEncryptionHints = channel.unary_unary(
|
|
46
109
|
'/scanoss.api.cryptography.v2.Cryptography/GetEncryptionHints',
|
|
47
110
|
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
48
111
|
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsResponse.FromString,
|
|
49
|
-
)
|
|
112
|
+
_registered_method=True)
|
|
113
|
+
self.GetComponentEncryptionHints = channel.unary_unary(
|
|
114
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentEncryptionHints',
|
|
115
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
116
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentEncryptionHintsResponse.FromString,
|
|
117
|
+
_registered_method=True)
|
|
118
|
+
self.GetComponentsEncryptionHints = channel.unary_unary(
|
|
119
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentsEncryptionHints',
|
|
120
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
121
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsEncryptionHintsResponse.FromString,
|
|
122
|
+
_registered_method=True)
|
|
50
123
|
|
|
51
124
|
|
|
52
125
|
class CryptographyServicer(object):
|
|
53
126
|
"""
|
|
54
|
-
|
|
127
|
+
Cryptography Service Definition
|
|
128
|
+
|
|
129
|
+
Provides comprehensive cryptographic intelligence for software components
|
|
130
|
+
including algorithm detection, encryption hints, and security assessments.
|
|
55
131
|
"""
|
|
56
132
|
|
|
57
133
|
def Echo(self, request, context):
|
|
58
|
-
"""
|
|
134
|
+
"""
|
|
135
|
+
Returns the same message that was sent, used for health checks and connectivity testing
|
|
59
136
|
"""
|
|
60
137
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
61
138
|
context.set_details('Method not implemented!')
|
|
62
139
|
raise NotImplementedError('Method not implemented!')
|
|
63
140
|
|
|
64
141
|
def GetAlgorithms(self, request, context):
|
|
65
|
-
"""
|
|
142
|
+
"""****** Algorithms ****** //
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
Get cryptographic algorithms associated with a list of PURLs - legacy endpoint.
|
|
146
|
+
|
|
147
|
+
Legacy method for retrieving cryptographic algorithms used by software components.
|
|
148
|
+
Use GetComponentAlgorithms or GetComponentsAlgorithms instead.
|
|
149
|
+
"""
|
|
150
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
151
|
+
context.set_details('Method not implemented!')
|
|
152
|
+
raise NotImplementedError('Method not implemented!')
|
|
153
|
+
|
|
154
|
+
def GetComponentAlgorithms(self, request, context):
|
|
155
|
+
"""
|
|
156
|
+
Get cryptographic algorithms associated with a single software component.
|
|
157
|
+
|
|
158
|
+
Analyzes the component and returns cryptographic algorithms detected in the codebase
|
|
159
|
+
including algorithm names and strength classifications.
|
|
160
|
+
|
|
161
|
+
See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#getcomponentalgorithms
|
|
162
|
+
"""
|
|
163
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
164
|
+
context.set_details('Method not implemented!')
|
|
165
|
+
raise NotImplementedError('Method not implemented!')
|
|
166
|
+
|
|
167
|
+
def GetComponentsAlgorithms(self, request, context):
|
|
168
|
+
"""
|
|
169
|
+
Get cryptographic algorithms associated with multiple software components in a single request.
|
|
170
|
+
|
|
171
|
+
Analyzes multiple components and returns cryptographic algorithms detected in each codebase
|
|
172
|
+
including algorithm names and strength classifications.
|
|
173
|
+
|
|
174
|
+
See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#getcomponentsalgorithms
|
|
66
175
|
"""
|
|
67
176
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
68
177
|
context.set_details('Method not implemented!')
|
|
69
178
|
raise NotImplementedError('Method not implemented!')
|
|
70
179
|
|
|
71
180
|
def GetAlgorithmsInRange(self, request, context):
|
|
72
|
-
"""
|
|
181
|
+
"""****** Algorithms in range ****** //
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
Get cryptographic algorithms used across version ranges - legacy endpoint.
|
|
185
|
+
|
|
186
|
+
Legacy method for retrieving cryptographic algorithms across component version ranges.
|
|
187
|
+
Use GetComponentAlgorithmsInRange or GetComponentsAlgorithmsInRange instead.
|
|
188
|
+
"""
|
|
189
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
190
|
+
context.set_details('Method not implemented!')
|
|
191
|
+
raise NotImplementedError('Method not implemented!')
|
|
192
|
+
|
|
193
|
+
def GetComponentAlgorithmsInRange(self, request, context):
|
|
194
|
+
"""
|
|
195
|
+
Get cryptographic algorithms used by a component across specified version ranges.
|
|
196
|
+
|
|
197
|
+
Analyzes the component across version ranges and returns all cryptographic algorithms
|
|
198
|
+
detected along with the versions where they appear.
|
|
199
|
+
|
|
200
|
+
See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#getcomponentalgorithmsinrange
|
|
201
|
+
"""
|
|
202
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
203
|
+
context.set_details('Method not implemented!')
|
|
204
|
+
raise NotImplementedError('Method not implemented!')
|
|
205
|
+
|
|
206
|
+
def GetComponentsAlgorithmsInRange(self, request, context):
|
|
207
|
+
"""
|
|
208
|
+
Get cryptographic algorithms used by multiple components across specified version ranges.
|
|
209
|
+
|
|
210
|
+
Analyzes multiple components across version ranges and returns all cryptographic algorithms
|
|
211
|
+
detected along with the versions where they appear for each component.
|
|
212
|
+
|
|
213
|
+
See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#getcomponentsalgorithmsinrange
|
|
73
214
|
"""
|
|
74
215
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
75
216
|
context.set_details('Method not implemented!')
|
|
76
217
|
raise NotImplementedError('Method not implemented!')
|
|
77
218
|
|
|
78
219
|
def GetVersionsInRange(self, request, context):
|
|
79
|
-
"""
|
|
220
|
+
"""****** Versions in range ****** //
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
Get component versions that contain or don't contain cryptographic algorithms - legacy endpoint.
|
|
224
|
+
|
|
225
|
+
Legacy method for retrieving version lists based on cryptographic algorithm presence.
|
|
226
|
+
Use ComponentVersionsInRange or ComponentsVersionsInRange instead.
|
|
227
|
+
"""
|
|
228
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
229
|
+
context.set_details('Method not implemented!')
|
|
230
|
+
raise NotImplementedError('Method not implemented!')
|
|
231
|
+
|
|
232
|
+
def GetComponentVersionsInRange(self, request, context):
|
|
233
|
+
"""
|
|
234
|
+
Get component versions that contain or don't contain cryptographic algorithms within specified ranges.
|
|
235
|
+
|
|
236
|
+
Returns lists of versions that either contain cryptographic algorithms or don't,
|
|
237
|
+
helping assess cryptographic presence across component evolution.
|
|
238
|
+
|
|
239
|
+
See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#componentversionsinrange
|
|
240
|
+
"""
|
|
241
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
242
|
+
context.set_details('Method not implemented!')
|
|
243
|
+
raise NotImplementedError('Method not implemented!')
|
|
244
|
+
|
|
245
|
+
def GetComponentsVersionsInRange(self, request, context):
|
|
246
|
+
"""
|
|
247
|
+
Get multiple component versions that contain or don't contain cryptographic algorithms within specified ranges.
|
|
248
|
+
|
|
249
|
+
Returns lists of versions for multiple components that either contain cryptographic algorithms or don't,
|
|
250
|
+
helping assess cryptographic presence across component evolution in batch operations.
|
|
251
|
+
|
|
252
|
+
See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#componentsversionsinrange
|
|
80
253
|
"""
|
|
81
254
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
82
255
|
context.set_details('Method not implemented!')
|
|
83
256
|
raise NotImplementedError('Method not implemented!')
|
|
84
257
|
|
|
85
258
|
def GetHintsInRange(self, request, context):
|
|
86
|
-
"""
|
|
259
|
+
"""****** Hints in range ****** //
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
Get cryptographic hints across version ranges - legacy endpoint.
|
|
263
|
+
|
|
264
|
+
Legacy method for retrieving cryptographic hints related to protocols, libraries,
|
|
265
|
+
SDKs and frameworks across version ranges. Use ComponentHintsInRange or ComponentsHintsInRange instead.
|
|
266
|
+
"""
|
|
267
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
268
|
+
context.set_details('Method not implemented!')
|
|
269
|
+
raise NotImplementedError('Method not implemented!')
|
|
270
|
+
|
|
271
|
+
def GetComponentHintsInRange(self, request, context):
|
|
272
|
+
"""
|
|
273
|
+
Get cryptographic hints across version ranges - legacy endpoint.
|
|
274
|
+
|
|
275
|
+
Legacy method for retrieving cryptographic hints related to protocols, libraries,
|
|
276
|
+
SDKs and frameworks across version ranges. Use ComponentHintsInRange or ComponentsHintsInRange instead.
|
|
277
|
+
"""
|
|
278
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
279
|
+
context.set_details('Method not implemented!')
|
|
280
|
+
raise NotImplementedError('Method not implemented!')
|
|
281
|
+
|
|
282
|
+
def GetComponentsHintsInRange(self, request, context):
|
|
283
|
+
"""
|
|
284
|
+
Get cryptographic hints across version ranges - legacy endpoint.
|
|
285
|
+
|
|
286
|
+
Legacy method for retrieving cryptographic hints related to protocols, libraries,
|
|
287
|
+
SDKs and frameworks across version ranges. Use ComponentHintsInRange or ComponentsHintsInRange instead.
|
|
87
288
|
"""
|
|
88
289
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
89
290
|
context.set_details('Method not implemented!')
|
|
90
291
|
raise NotImplementedError('Method not implemented!')
|
|
91
292
|
|
|
92
293
|
def GetEncryptionHints(self, request, context):
|
|
93
|
-
"""
|
|
294
|
+
"""****** Encryption hints ****** //
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
Get encryption hints for components - legacy endpoint.
|
|
298
|
+
|
|
299
|
+
Legacy method for retrieving hints about cryptographic protocols, libraries,
|
|
300
|
+
SDKs and frameworks used by components. Use ComponentHintsInRange or ComponentsHintsInRange instead.
|
|
301
|
+
"""
|
|
302
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
303
|
+
context.set_details('Method not implemented!')
|
|
304
|
+
raise NotImplementedError('Method not implemented!')
|
|
305
|
+
|
|
306
|
+
def GetComponentEncryptionHints(self, request, context):
|
|
307
|
+
"""
|
|
308
|
+
Get cryptographic hints for a single component.
|
|
309
|
+
|
|
310
|
+
Returns hints about cryptographic protocols, libraries, SDKs and frameworks
|
|
311
|
+
used by the component, providing insights into cryptographic dependencies.
|
|
312
|
+
|
|
313
|
+
See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#componenthintsinrange
|
|
314
|
+
"""
|
|
315
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
316
|
+
context.set_details('Method not implemented!')
|
|
317
|
+
raise NotImplementedError('Method not implemented!')
|
|
318
|
+
|
|
319
|
+
def GetComponentsEncryptionHints(self, request, context):
|
|
320
|
+
"""
|
|
321
|
+
Get cryptographic hints for multiple components in a single request.
|
|
322
|
+
|
|
323
|
+
Returns hints about cryptographic protocols, libraries, SDKs and frameworks
|
|
324
|
+
used by multiple components, providing insights into cryptographic dependencies.
|
|
325
|
+
|
|
326
|
+
See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#componentshintsinrange
|
|
94
327
|
"""
|
|
95
328
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
96
329
|
context.set_details('Method not implemented!')
|
|
@@ -109,36 +342,90 @@ def add_CryptographyServicer_to_server(servicer, server):
|
|
|
109
342
|
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
110
343
|
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmResponse.SerializeToString,
|
|
111
344
|
),
|
|
345
|
+
'GetComponentAlgorithms': grpc.unary_unary_rpc_method_handler(
|
|
346
|
+
servicer.GetComponentAlgorithms,
|
|
347
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.FromString,
|
|
348
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsResponse.SerializeToString,
|
|
349
|
+
),
|
|
350
|
+
'GetComponentsAlgorithms': grpc.unary_unary_rpc_method_handler(
|
|
351
|
+
servicer.GetComponentsAlgorithms,
|
|
352
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.FromString,
|
|
353
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsResponse.SerializeToString,
|
|
354
|
+
),
|
|
112
355
|
'GetAlgorithmsInRange': grpc.unary_unary_rpc_method_handler(
|
|
113
356
|
servicer.GetAlgorithmsInRange,
|
|
114
357
|
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
115
358
|
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmsInRangeResponse.SerializeToString,
|
|
116
359
|
),
|
|
360
|
+
'GetComponentAlgorithmsInRange': grpc.unary_unary_rpc_method_handler(
|
|
361
|
+
servicer.GetComponentAlgorithmsInRange,
|
|
362
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.FromString,
|
|
363
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsInRangeResponse.SerializeToString,
|
|
364
|
+
),
|
|
365
|
+
'GetComponentsAlgorithmsInRange': grpc.unary_unary_rpc_method_handler(
|
|
366
|
+
servicer.GetComponentsAlgorithmsInRange,
|
|
367
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.FromString,
|
|
368
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsInRangeResponse.SerializeToString,
|
|
369
|
+
),
|
|
117
370
|
'GetVersionsInRange': grpc.unary_unary_rpc_method_handler(
|
|
118
371
|
servicer.GetVersionsInRange,
|
|
119
372
|
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
120
373
|
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.VersionsInRangeResponse.SerializeToString,
|
|
121
374
|
),
|
|
375
|
+
'GetComponentVersionsInRange': grpc.unary_unary_rpc_method_handler(
|
|
376
|
+
servicer.GetComponentVersionsInRange,
|
|
377
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.FromString,
|
|
378
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentVersionsInRangeResponse.SerializeToString,
|
|
379
|
+
),
|
|
380
|
+
'GetComponentsVersionsInRange': grpc.unary_unary_rpc_method_handler(
|
|
381
|
+
servicer.GetComponentsVersionsInRange,
|
|
382
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.FromString,
|
|
383
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsVersionsInRangeResponse.SerializeToString,
|
|
384
|
+
),
|
|
122
385
|
'GetHintsInRange': grpc.unary_unary_rpc_method_handler(
|
|
123
386
|
servicer.GetHintsInRange,
|
|
124
387
|
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
125
388
|
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsInRangeResponse.SerializeToString,
|
|
126
389
|
),
|
|
390
|
+
'GetComponentHintsInRange': grpc.unary_unary_rpc_method_handler(
|
|
391
|
+
servicer.GetComponentHintsInRange,
|
|
392
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.FromString,
|
|
393
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentHintsInRangeResponse.SerializeToString,
|
|
394
|
+
),
|
|
395
|
+
'GetComponentsHintsInRange': grpc.unary_unary_rpc_method_handler(
|
|
396
|
+
servicer.GetComponentsHintsInRange,
|
|
397
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.FromString,
|
|
398
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsHintsInRangeResponse.SerializeToString,
|
|
399
|
+
),
|
|
127
400
|
'GetEncryptionHints': grpc.unary_unary_rpc_method_handler(
|
|
128
401
|
servicer.GetEncryptionHints,
|
|
129
402
|
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
130
403
|
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsResponse.SerializeToString,
|
|
131
404
|
),
|
|
405
|
+
'GetComponentEncryptionHints': grpc.unary_unary_rpc_method_handler(
|
|
406
|
+
servicer.GetComponentEncryptionHints,
|
|
407
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.FromString,
|
|
408
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentEncryptionHintsResponse.SerializeToString,
|
|
409
|
+
),
|
|
410
|
+
'GetComponentsEncryptionHints': grpc.unary_unary_rpc_method_handler(
|
|
411
|
+
servicer.GetComponentsEncryptionHints,
|
|
412
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.FromString,
|
|
413
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsEncryptionHintsResponse.SerializeToString,
|
|
414
|
+
),
|
|
132
415
|
}
|
|
133
416
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
134
417
|
'scanoss.api.cryptography.v2.Cryptography', rpc_method_handlers)
|
|
135
418
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
419
|
+
server.add_registered_method_handlers('scanoss.api.cryptography.v2.Cryptography', rpc_method_handlers)
|
|
136
420
|
|
|
137
421
|
|
|
138
422
|
# This class is part of an EXPERIMENTAL API.
|
|
139
423
|
class Cryptography(object):
|
|
140
424
|
"""
|
|
141
|
-
|
|
425
|
+
Cryptography Service Definition
|
|
426
|
+
|
|
427
|
+
Provides comprehensive cryptographic intelligence for software components
|
|
428
|
+
including algorithm detection, encryption hints, and security assessments.
|
|
142
429
|
"""
|
|
143
430
|
|
|
144
431
|
@staticmethod
|
|
@@ -152,11 +439,21 @@ class Cryptography(object):
|
|
|
152
439
|
wait_for_ready=None,
|
|
153
440
|
timeout=None,
|
|
154
441
|
metadata=None):
|
|
155
|
-
return grpc.experimental.unary_unary(
|
|
442
|
+
return grpc.experimental.unary_unary(
|
|
443
|
+
request,
|
|
444
|
+
target,
|
|
445
|
+
'/scanoss.api.cryptography.v2.Cryptography/Echo',
|
|
156
446
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
157
447
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
158
|
-
options,
|
|
159
|
-
|
|
448
|
+
options,
|
|
449
|
+
channel_credentials,
|
|
450
|
+
insecure,
|
|
451
|
+
call_credentials,
|
|
452
|
+
compression,
|
|
453
|
+
wait_for_ready,
|
|
454
|
+
timeout,
|
|
455
|
+
metadata,
|
|
456
|
+
_registered_method=True)
|
|
160
457
|
|
|
161
458
|
@staticmethod
|
|
162
459
|
def GetAlgorithms(request,
|
|
@@ -169,11 +466,75 @@ class Cryptography(object):
|
|
|
169
466
|
wait_for_ready=None,
|
|
170
467
|
timeout=None,
|
|
171
468
|
metadata=None):
|
|
172
|
-
return grpc.experimental.unary_unary(
|
|
469
|
+
return grpc.experimental.unary_unary(
|
|
470
|
+
request,
|
|
471
|
+
target,
|
|
472
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetAlgorithms',
|
|
173
473
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
174
474
|
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmResponse.FromString,
|
|
175
|
-
options,
|
|
176
|
-
|
|
475
|
+
options,
|
|
476
|
+
channel_credentials,
|
|
477
|
+
insecure,
|
|
478
|
+
call_credentials,
|
|
479
|
+
compression,
|
|
480
|
+
wait_for_ready,
|
|
481
|
+
timeout,
|
|
482
|
+
metadata,
|
|
483
|
+
_registered_method=True)
|
|
484
|
+
|
|
485
|
+
@staticmethod
|
|
486
|
+
def GetComponentAlgorithms(request,
|
|
487
|
+
target,
|
|
488
|
+
options=(),
|
|
489
|
+
channel_credentials=None,
|
|
490
|
+
call_credentials=None,
|
|
491
|
+
insecure=False,
|
|
492
|
+
compression=None,
|
|
493
|
+
wait_for_ready=None,
|
|
494
|
+
timeout=None,
|
|
495
|
+
metadata=None):
|
|
496
|
+
return grpc.experimental.unary_unary(
|
|
497
|
+
request,
|
|
498
|
+
target,
|
|
499
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentAlgorithms',
|
|
500
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
501
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsResponse.FromString,
|
|
502
|
+
options,
|
|
503
|
+
channel_credentials,
|
|
504
|
+
insecure,
|
|
505
|
+
call_credentials,
|
|
506
|
+
compression,
|
|
507
|
+
wait_for_ready,
|
|
508
|
+
timeout,
|
|
509
|
+
metadata,
|
|
510
|
+
_registered_method=True)
|
|
511
|
+
|
|
512
|
+
@staticmethod
|
|
513
|
+
def GetComponentsAlgorithms(request,
|
|
514
|
+
target,
|
|
515
|
+
options=(),
|
|
516
|
+
channel_credentials=None,
|
|
517
|
+
call_credentials=None,
|
|
518
|
+
insecure=False,
|
|
519
|
+
compression=None,
|
|
520
|
+
wait_for_ready=None,
|
|
521
|
+
timeout=None,
|
|
522
|
+
metadata=None):
|
|
523
|
+
return grpc.experimental.unary_unary(
|
|
524
|
+
request,
|
|
525
|
+
target,
|
|
526
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentsAlgorithms',
|
|
527
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
528
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsResponse.FromString,
|
|
529
|
+
options,
|
|
530
|
+
channel_credentials,
|
|
531
|
+
insecure,
|
|
532
|
+
call_credentials,
|
|
533
|
+
compression,
|
|
534
|
+
wait_for_ready,
|
|
535
|
+
timeout,
|
|
536
|
+
metadata,
|
|
537
|
+
_registered_method=True)
|
|
177
538
|
|
|
178
539
|
@staticmethod
|
|
179
540
|
def GetAlgorithmsInRange(request,
|
|
@@ -186,11 +547,75 @@ class Cryptography(object):
|
|
|
186
547
|
wait_for_ready=None,
|
|
187
548
|
timeout=None,
|
|
188
549
|
metadata=None):
|
|
189
|
-
return grpc.experimental.unary_unary(
|
|
550
|
+
return grpc.experimental.unary_unary(
|
|
551
|
+
request,
|
|
552
|
+
target,
|
|
553
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetAlgorithmsInRange',
|
|
190
554
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
191
555
|
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmsInRangeResponse.FromString,
|
|
192
|
-
options,
|
|
193
|
-
|
|
556
|
+
options,
|
|
557
|
+
channel_credentials,
|
|
558
|
+
insecure,
|
|
559
|
+
call_credentials,
|
|
560
|
+
compression,
|
|
561
|
+
wait_for_ready,
|
|
562
|
+
timeout,
|
|
563
|
+
metadata,
|
|
564
|
+
_registered_method=True)
|
|
565
|
+
|
|
566
|
+
@staticmethod
|
|
567
|
+
def GetComponentAlgorithmsInRange(request,
|
|
568
|
+
target,
|
|
569
|
+
options=(),
|
|
570
|
+
channel_credentials=None,
|
|
571
|
+
call_credentials=None,
|
|
572
|
+
insecure=False,
|
|
573
|
+
compression=None,
|
|
574
|
+
wait_for_ready=None,
|
|
575
|
+
timeout=None,
|
|
576
|
+
metadata=None):
|
|
577
|
+
return grpc.experimental.unary_unary(
|
|
578
|
+
request,
|
|
579
|
+
target,
|
|
580
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentAlgorithmsInRange',
|
|
581
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
582
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsInRangeResponse.FromString,
|
|
583
|
+
options,
|
|
584
|
+
channel_credentials,
|
|
585
|
+
insecure,
|
|
586
|
+
call_credentials,
|
|
587
|
+
compression,
|
|
588
|
+
wait_for_ready,
|
|
589
|
+
timeout,
|
|
590
|
+
metadata,
|
|
591
|
+
_registered_method=True)
|
|
592
|
+
|
|
593
|
+
@staticmethod
|
|
594
|
+
def GetComponentsAlgorithmsInRange(request,
|
|
595
|
+
target,
|
|
596
|
+
options=(),
|
|
597
|
+
channel_credentials=None,
|
|
598
|
+
call_credentials=None,
|
|
599
|
+
insecure=False,
|
|
600
|
+
compression=None,
|
|
601
|
+
wait_for_ready=None,
|
|
602
|
+
timeout=None,
|
|
603
|
+
metadata=None):
|
|
604
|
+
return grpc.experimental.unary_unary(
|
|
605
|
+
request,
|
|
606
|
+
target,
|
|
607
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentsAlgorithmsInRange',
|
|
608
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
609
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsInRangeResponse.FromString,
|
|
610
|
+
options,
|
|
611
|
+
channel_credentials,
|
|
612
|
+
insecure,
|
|
613
|
+
call_credentials,
|
|
614
|
+
compression,
|
|
615
|
+
wait_for_ready,
|
|
616
|
+
timeout,
|
|
617
|
+
metadata,
|
|
618
|
+
_registered_method=True)
|
|
194
619
|
|
|
195
620
|
@staticmethod
|
|
196
621
|
def GetVersionsInRange(request,
|
|
@@ -203,11 +628,75 @@ class Cryptography(object):
|
|
|
203
628
|
wait_for_ready=None,
|
|
204
629
|
timeout=None,
|
|
205
630
|
metadata=None):
|
|
206
|
-
return grpc.experimental.unary_unary(
|
|
631
|
+
return grpc.experimental.unary_unary(
|
|
632
|
+
request,
|
|
633
|
+
target,
|
|
634
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetVersionsInRange',
|
|
207
635
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
208
636
|
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.VersionsInRangeResponse.FromString,
|
|
209
|
-
options,
|
|
210
|
-
|
|
637
|
+
options,
|
|
638
|
+
channel_credentials,
|
|
639
|
+
insecure,
|
|
640
|
+
call_credentials,
|
|
641
|
+
compression,
|
|
642
|
+
wait_for_ready,
|
|
643
|
+
timeout,
|
|
644
|
+
metadata,
|
|
645
|
+
_registered_method=True)
|
|
646
|
+
|
|
647
|
+
@staticmethod
|
|
648
|
+
def GetComponentVersionsInRange(request,
|
|
649
|
+
target,
|
|
650
|
+
options=(),
|
|
651
|
+
channel_credentials=None,
|
|
652
|
+
call_credentials=None,
|
|
653
|
+
insecure=False,
|
|
654
|
+
compression=None,
|
|
655
|
+
wait_for_ready=None,
|
|
656
|
+
timeout=None,
|
|
657
|
+
metadata=None):
|
|
658
|
+
return grpc.experimental.unary_unary(
|
|
659
|
+
request,
|
|
660
|
+
target,
|
|
661
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentVersionsInRange',
|
|
662
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
663
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentVersionsInRangeResponse.FromString,
|
|
664
|
+
options,
|
|
665
|
+
channel_credentials,
|
|
666
|
+
insecure,
|
|
667
|
+
call_credentials,
|
|
668
|
+
compression,
|
|
669
|
+
wait_for_ready,
|
|
670
|
+
timeout,
|
|
671
|
+
metadata,
|
|
672
|
+
_registered_method=True)
|
|
673
|
+
|
|
674
|
+
@staticmethod
|
|
675
|
+
def GetComponentsVersionsInRange(request,
|
|
676
|
+
target,
|
|
677
|
+
options=(),
|
|
678
|
+
channel_credentials=None,
|
|
679
|
+
call_credentials=None,
|
|
680
|
+
insecure=False,
|
|
681
|
+
compression=None,
|
|
682
|
+
wait_for_ready=None,
|
|
683
|
+
timeout=None,
|
|
684
|
+
metadata=None):
|
|
685
|
+
return grpc.experimental.unary_unary(
|
|
686
|
+
request,
|
|
687
|
+
target,
|
|
688
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentsVersionsInRange',
|
|
689
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
690
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsVersionsInRangeResponse.FromString,
|
|
691
|
+
options,
|
|
692
|
+
channel_credentials,
|
|
693
|
+
insecure,
|
|
694
|
+
call_credentials,
|
|
695
|
+
compression,
|
|
696
|
+
wait_for_ready,
|
|
697
|
+
timeout,
|
|
698
|
+
metadata,
|
|
699
|
+
_registered_method=True)
|
|
211
700
|
|
|
212
701
|
@staticmethod
|
|
213
702
|
def GetHintsInRange(request,
|
|
@@ -220,11 +709,75 @@ class Cryptography(object):
|
|
|
220
709
|
wait_for_ready=None,
|
|
221
710
|
timeout=None,
|
|
222
711
|
metadata=None):
|
|
223
|
-
return grpc.experimental.unary_unary(
|
|
712
|
+
return grpc.experimental.unary_unary(
|
|
713
|
+
request,
|
|
714
|
+
target,
|
|
715
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetHintsInRange',
|
|
224
716
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
225
717
|
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsInRangeResponse.FromString,
|
|
226
|
-
options,
|
|
227
|
-
|
|
718
|
+
options,
|
|
719
|
+
channel_credentials,
|
|
720
|
+
insecure,
|
|
721
|
+
call_credentials,
|
|
722
|
+
compression,
|
|
723
|
+
wait_for_ready,
|
|
724
|
+
timeout,
|
|
725
|
+
metadata,
|
|
726
|
+
_registered_method=True)
|
|
727
|
+
|
|
728
|
+
@staticmethod
|
|
729
|
+
def GetComponentHintsInRange(request,
|
|
730
|
+
target,
|
|
731
|
+
options=(),
|
|
732
|
+
channel_credentials=None,
|
|
733
|
+
call_credentials=None,
|
|
734
|
+
insecure=False,
|
|
735
|
+
compression=None,
|
|
736
|
+
wait_for_ready=None,
|
|
737
|
+
timeout=None,
|
|
738
|
+
metadata=None):
|
|
739
|
+
return grpc.experimental.unary_unary(
|
|
740
|
+
request,
|
|
741
|
+
target,
|
|
742
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentHintsInRange',
|
|
743
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
744
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentHintsInRangeResponse.FromString,
|
|
745
|
+
options,
|
|
746
|
+
channel_credentials,
|
|
747
|
+
insecure,
|
|
748
|
+
call_credentials,
|
|
749
|
+
compression,
|
|
750
|
+
wait_for_ready,
|
|
751
|
+
timeout,
|
|
752
|
+
metadata,
|
|
753
|
+
_registered_method=True)
|
|
754
|
+
|
|
755
|
+
@staticmethod
|
|
756
|
+
def GetComponentsHintsInRange(request,
|
|
757
|
+
target,
|
|
758
|
+
options=(),
|
|
759
|
+
channel_credentials=None,
|
|
760
|
+
call_credentials=None,
|
|
761
|
+
insecure=False,
|
|
762
|
+
compression=None,
|
|
763
|
+
wait_for_ready=None,
|
|
764
|
+
timeout=None,
|
|
765
|
+
metadata=None):
|
|
766
|
+
return grpc.experimental.unary_unary(
|
|
767
|
+
request,
|
|
768
|
+
target,
|
|
769
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentsHintsInRange',
|
|
770
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
771
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsHintsInRangeResponse.FromString,
|
|
772
|
+
options,
|
|
773
|
+
channel_credentials,
|
|
774
|
+
insecure,
|
|
775
|
+
call_credentials,
|
|
776
|
+
compression,
|
|
777
|
+
wait_for_ready,
|
|
778
|
+
timeout,
|
|
779
|
+
metadata,
|
|
780
|
+
_registered_method=True)
|
|
228
781
|
|
|
229
782
|
@staticmethod
|
|
230
783
|
def GetEncryptionHints(request,
|
|
@@ -237,8 +790,72 @@ class Cryptography(object):
|
|
|
237
790
|
wait_for_ready=None,
|
|
238
791
|
timeout=None,
|
|
239
792
|
metadata=None):
|
|
240
|
-
return grpc.experimental.unary_unary(
|
|
793
|
+
return grpc.experimental.unary_unary(
|
|
794
|
+
request,
|
|
795
|
+
target,
|
|
796
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetEncryptionHints',
|
|
241
797
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
242
798
|
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsResponse.FromString,
|
|
243
|
-
options,
|
|
244
|
-
|
|
799
|
+
options,
|
|
800
|
+
channel_credentials,
|
|
801
|
+
insecure,
|
|
802
|
+
call_credentials,
|
|
803
|
+
compression,
|
|
804
|
+
wait_for_ready,
|
|
805
|
+
timeout,
|
|
806
|
+
metadata,
|
|
807
|
+
_registered_method=True)
|
|
808
|
+
|
|
809
|
+
@staticmethod
|
|
810
|
+
def GetComponentEncryptionHints(request,
|
|
811
|
+
target,
|
|
812
|
+
options=(),
|
|
813
|
+
channel_credentials=None,
|
|
814
|
+
call_credentials=None,
|
|
815
|
+
insecure=False,
|
|
816
|
+
compression=None,
|
|
817
|
+
wait_for_ready=None,
|
|
818
|
+
timeout=None,
|
|
819
|
+
metadata=None):
|
|
820
|
+
return grpc.experimental.unary_unary(
|
|
821
|
+
request,
|
|
822
|
+
target,
|
|
823
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentEncryptionHints',
|
|
824
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
825
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentEncryptionHintsResponse.FromString,
|
|
826
|
+
options,
|
|
827
|
+
channel_credentials,
|
|
828
|
+
insecure,
|
|
829
|
+
call_credentials,
|
|
830
|
+
compression,
|
|
831
|
+
wait_for_ready,
|
|
832
|
+
timeout,
|
|
833
|
+
metadata,
|
|
834
|
+
_registered_method=True)
|
|
835
|
+
|
|
836
|
+
@staticmethod
|
|
837
|
+
def GetComponentsEncryptionHints(request,
|
|
838
|
+
target,
|
|
839
|
+
options=(),
|
|
840
|
+
channel_credentials=None,
|
|
841
|
+
call_credentials=None,
|
|
842
|
+
insecure=False,
|
|
843
|
+
compression=None,
|
|
844
|
+
wait_for_ready=None,
|
|
845
|
+
timeout=None,
|
|
846
|
+
metadata=None):
|
|
847
|
+
return grpc.experimental.unary_unary(
|
|
848
|
+
request,
|
|
849
|
+
target,
|
|
850
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetComponentsEncryptionHints',
|
|
851
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
852
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsEncryptionHintsResponse.FromString,
|
|
853
|
+
options,
|
|
854
|
+
channel_credentials,
|
|
855
|
+
insecure,
|
|
856
|
+
call_credentials,
|
|
857
|
+
compression,
|
|
858
|
+
wait_for_ready,
|
|
859
|
+
timeout,
|
|
860
|
+
metadata,
|
|
861
|
+
_registered_method=True)
|