scanoss 1.12.2__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/__init__.py +13 -13
- protoc_gen_swagger/options/__init__.py +13 -13
- 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 +18 -18
- scanoss/api/__init__.py +17 -17
- scanoss/api/common/__init__.py +17 -17
- scanoss/api/common/v2/__init__.py +17 -17
- scanoss/api/common/v2/scanoss_common_pb2.py +49 -20
- scanoss/api/common/v2/scanoss_common_pb2_grpc.py +25 -0
- scanoss/api/components/__init__.py +17 -17
- scanoss/api/components/v2/__init__.py +17 -17
- 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 -21
- scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +766 -13
- scanoss/api/dependencies/__init__.py +17 -17
- scanoss/api/dependencies/v2/__init__.py +17 -17
- scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +56 -29
- scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +94 -8
- scanoss/api/geoprovenance/__init__.py +23 -0
- scanoss/api/geoprovenance/v2/__init__.py +23 -0
- scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2.py +92 -0
- scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2_grpc.py +381 -0
- 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/__init__.py +17 -17
- scanoss/api/scanning/v2/__init__.py +17 -17
- scanoss/api/scanning/v2/scanoss_scanning_pb2.py +42 -13
- scanoss/api/scanning/v2/scanoss_scanning_pb2_grpc.py +86 -7
- scanoss/api/semgrep/__init__.py +17 -17
- scanoss/api/semgrep/v2/__init__.py +17 -17
- scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +50 -23
- scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +151 -16
- scanoss/api/vulnerabilities/__init__.py +17 -17
- scanoss/api/vulnerabilities/v2/__init__.py +17 -17
- scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +78 -31
- scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py +282 -18
- scanoss/cli.py +2359 -370
- scanoss/components.py +187 -94
- scanoss/constants.py +22 -0
- scanoss/cryptography.py +308 -0
- scanoss/csvoutput.py +91 -58
- scanoss/cyclonedx.py +221 -63
- scanoss/data/build_date.txt +1 -1
- scanoss/data/osadl-copyleft.json +133 -0
- scanoss/data/scanoss-settings-schema.json +254 -0
- scanoss/delta.py +197 -0
- scanoss/export/__init__.py +23 -0
- scanoss/export/dependency_track.py +227 -0
- scanoss/file_filters.py +582 -0
- scanoss/filecount.py +75 -69
- scanoss/gitlabqualityreport.py +214 -0
- scanoss/header_filter.py +563 -0
- scanoss/inspection/__init__.py +23 -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/policy_check.py +222 -0
- scanoss/inspection/policy_check/scanoss/__init__.py +0 -0
- scanoss/inspection/policy_check/scanoss/copyleft.py +243 -0
- scanoss/inspection/policy_check/scanoss/undeclared_component.py +309 -0
- scanoss/inspection/summary/__init__.py +0 -0
- scanoss/inspection/summary/component_summary.py +170 -0
- scanoss/inspection/summary/license_summary.py +191 -0
- scanoss/inspection/summary/match_summary.py +341 -0
- scanoss/inspection/utils/file_utils.py +44 -0
- scanoss/inspection/utils/license_utils.py +123 -0
- scanoss/inspection/utils/markdown_utils.py +63 -0
- scanoss/inspection/utils/scan_result_processor.py +417 -0
- scanoss/osadl.py +125 -0
- scanoss/results.py +275 -0
- scanoss/scancodedeps.py +87 -38
- scanoss/scanner.py +431 -539
- scanoss/scanners/__init__.py +23 -0
- scanoss/scanners/container_scanner.py +476 -0
- scanoss/scanners/folder_hasher.py +358 -0
- scanoss/scanners/scanner_config.py +73 -0
- scanoss/scanners/scanner_hfh.py +252 -0
- scanoss/scanoss_settings.py +337 -0
- scanoss/scanossapi.py +140 -101
- scanoss/scanossbase.py +59 -22
- scanoss/scanossgrpc.py +799 -251
- scanoss/scanpostprocessor.py +294 -0
- scanoss/scantype.py +22 -21
- scanoss/services/dependency_track_service.py +132 -0
- scanoss/spdxlite.py +532 -174
- scanoss/threadeddependencies.py +148 -47
- scanoss/threadedscanning.py +53 -37
- scanoss/utils/__init__.py +23 -0
- scanoss/utils/abstract_presenter.py +103 -0
- scanoss/utils/crc64.py +96 -0
- scanoss/utils/file.py +84 -0
- scanoss/utils/scanoss_scan_results_utils.py +41 -0
- scanoss/utils/simhash.py +198 -0
- scanoss/winnowing.py +241 -63
- {scanoss-1.12.2.dist-info → scanoss-1.43.1.dist-info}/METADATA +18 -9
- scanoss-1.43.1.dist-info/RECORD +110 -0
- {scanoss-1.12.2.dist-info → scanoss-1.43.1.dist-info}/WHEEL +1 -1
- scanoss-1.12.2.dist-info/RECORD +0 -58
- {scanoss-1.12.2.dist-info → scanoss-1.43.1.dist-info}/entry_points.txt +0 -0
- {scanoss-1.12.2.dist-info → scanoss-1.43.1.dist-info/licenses}/LICENSE +0 -0
- {scanoss-1.12.2.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,28 +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)
|
|
63
|
+
self.GetAlgorithmsInRange = channel.unary_unary(
|
|
64
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetAlgorithmsInRange',
|
|
65
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
66
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmsInRangeResponse.FromString,
|
|
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)
|
|
78
|
+
self.GetVersionsInRange = channel.unary_unary(
|
|
79
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetVersionsInRange',
|
|
80
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
81
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.VersionsInRangeResponse.FromString,
|
|
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)
|
|
93
|
+
self.GetHintsInRange = channel.unary_unary(
|
|
94
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetHintsInRange',
|
|
95
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
96
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsInRangeResponse.FromString,
|
|
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)
|
|
108
|
+
self.GetEncryptionHints = channel.unary_unary(
|
|
109
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetEncryptionHints',
|
|
110
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
111
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsResponse.FromString,
|
|
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)
|
|
30
123
|
|
|
31
124
|
|
|
32
125
|
class CryptographyServicer(object):
|
|
33
126
|
"""
|
|
34
|
-
|
|
127
|
+
Cryptography Service Definition
|
|
128
|
+
|
|
129
|
+
Provides comprehensive cryptographic intelligence for software components
|
|
130
|
+
including algorithm detection, encryption hints, and security assessments.
|
|
35
131
|
"""
|
|
36
132
|
|
|
37
133
|
def Echo(self, request, context):
|
|
38
|
-
"""
|
|
134
|
+
"""
|
|
135
|
+
Returns the same message that was sent, used for health checks and connectivity testing
|
|
39
136
|
"""
|
|
40
137
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
41
138
|
context.set_details('Method not implemented!')
|
|
42
139
|
raise NotImplementedError('Method not implemented!')
|
|
43
140
|
|
|
44
141
|
def GetAlgorithms(self, request, context):
|
|
45
|
-
"""
|
|
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
|
|
175
|
+
"""
|
|
176
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
177
|
+
context.set_details('Method not implemented!')
|
|
178
|
+
raise NotImplementedError('Method not implemented!')
|
|
179
|
+
|
|
180
|
+
def GetAlgorithmsInRange(self, request, context):
|
|
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
|
|
214
|
+
"""
|
|
215
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
216
|
+
context.set_details('Method not implemented!')
|
|
217
|
+
raise NotImplementedError('Method not implemented!')
|
|
218
|
+
|
|
219
|
+
def GetVersionsInRange(self, request, context):
|
|
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
|
|
253
|
+
"""
|
|
254
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
255
|
+
context.set_details('Method not implemented!')
|
|
256
|
+
raise NotImplementedError('Method not implemented!')
|
|
257
|
+
|
|
258
|
+
def GetHintsInRange(self, request, context):
|
|
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.
|
|
288
|
+
"""
|
|
289
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
290
|
+
context.set_details('Method not implemented!')
|
|
291
|
+
raise NotImplementedError('Method not implemented!')
|
|
292
|
+
|
|
293
|
+
def GetEncryptionHints(self, request, context):
|
|
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
|
|
46
327
|
"""
|
|
47
328
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
48
329
|
context.set_details('Method not implemented!')
|
|
@@ -61,16 +342,90 @@ def add_CryptographyServicer_to_server(servicer, server):
|
|
|
61
342
|
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
62
343
|
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmResponse.SerializeToString,
|
|
63
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
|
+
),
|
|
355
|
+
'GetAlgorithmsInRange': grpc.unary_unary_rpc_method_handler(
|
|
356
|
+
servicer.GetAlgorithmsInRange,
|
|
357
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
358
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmsInRangeResponse.SerializeToString,
|
|
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
|
+
),
|
|
370
|
+
'GetVersionsInRange': grpc.unary_unary_rpc_method_handler(
|
|
371
|
+
servicer.GetVersionsInRange,
|
|
372
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
373
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.VersionsInRangeResponse.SerializeToString,
|
|
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
|
+
),
|
|
385
|
+
'GetHintsInRange': grpc.unary_unary_rpc_method_handler(
|
|
386
|
+
servicer.GetHintsInRange,
|
|
387
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
388
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsInRangeResponse.SerializeToString,
|
|
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
|
+
),
|
|
400
|
+
'GetEncryptionHints': grpc.unary_unary_rpc_method_handler(
|
|
401
|
+
servicer.GetEncryptionHints,
|
|
402
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
403
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsResponse.SerializeToString,
|
|
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
|
+
),
|
|
64
415
|
}
|
|
65
416
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
66
417
|
'scanoss.api.cryptography.v2.Cryptography', rpc_method_handlers)
|
|
67
418
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
419
|
+
server.add_registered_method_handlers('scanoss.api.cryptography.v2.Cryptography', rpc_method_handlers)
|
|
68
420
|
|
|
69
421
|
|
|
70
422
|
# This class is part of an EXPERIMENTAL API.
|
|
71
423
|
class Cryptography(object):
|
|
72
424
|
"""
|
|
73
|
-
|
|
425
|
+
Cryptography Service Definition
|
|
426
|
+
|
|
427
|
+
Provides comprehensive cryptographic intelligence for software components
|
|
428
|
+
including algorithm detection, encryption hints, and security assessments.
|
|
74
429
|
"""
|
|
75
430
|
|
|
76
431
|
@staticmethod
|
|
@@ -84,11 +439,21 @@ class Cryptography(object):
|
|
|
84
439
|
wait_for_ready=None,
|
|
85
440
|
timeout=None,
|
|
86
441
|
metadata=None):
|
|
87
|
-
return grpc.experimental.unary_unary(
|
|
442
|
+
return grpc.experimental.unary_unary(
|
|
443
|
+
request,
|
|
444
|
+
target,
|
|
445
|
+
'/scanoss.api.cryptography.v2.Cryptography/Echo',
|
|
88
446
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
89
447
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
90
|
-
options,
|
|
91
|
-
|
|
448
|
+
options,
|
|
449
|
+
channel_credentials,
|
|
450
|
+
insecure,
|
|
451
|
+
call_credentials,
|
|
452
|
+
compression,
|
|
453
|
+
wait_for_ready,
|
|
454
|
+
timeout,
|
|
455
|
+
metadata,
|
|
456
|
+
_registered_method=True)
|
|
92
457
|
|
|
93
458
|
@staticmethod
|
|
94
459
|
def GetAlgorithms(request,
|
|
@@ -101,8 +466,396 @@ class Cryptography(object):
|
|
|
101
466
|
wait_for_ready=None,
|
|
102
467
|
timeout=None,
|
|
103
468
|
metadata=None):
|
|
104
|
-
return grpc.experimental.unary_unary(
|
|
469
|
+
return grpc.experimental.unary_unary(
|
|
470
|
+
request,
|
|
471
|
+
target,
|
|
472
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetAlgorithms',
|
|
105
473
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
106
474
|
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmResponse.FromString,
|
|
107
|
-
options,
|
|
108
|
-
|
|
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)
|
|
538
|
+
|
|
539
|
+
@staticmethod
|
|
540
|
+
def GetAlgorithmsInRange(request,
|
|
541
|
+
target,
|
|
542
|
+
options=(),
|
|
543
|
+
channel_credentials=None,
|
|
544
|
+
call_credentials=None,
|
|
545
|
+
insecure=False,
|
|
546
|
+
compression=None,
|
|
547
|
+
wait_for_ready=None,
|
|
548
|
+
timeout=None,
|
|
549
|
+
metadata=None):
|
|
550
|
+
return grpc.experimental.unary_unary(
|
|
551
|
+
request,
|
|
552
|
+
target,
|
|
553
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetAlgorithmsInRange',
|
|
554
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
555
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmsInRangeResponse.FromString,
|
|
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)
|
|
619
|
+
|
|
620
|
+
@staticmethod
|
|
621
|
+
def GetVersionsInRange(request,
|
|
622
|
+
target,
|
|
623
|
+
options=(),
|
|
624
|
+
channel_credentials=None,
|
|
625
|
+
call_credentials=None,
|
|
626
|
+
insecure=False,
|
|
627
|
+
compression=None,
|
|
628
|
+
wait_for_ready=None,
|
|
629
|
+
timeout=None,
|
|
630
|
+
metadata=None):
|
|
631
|
+
return grpc.experimental.unary_unary(
|
|
632
|
+
request,
|
|
633
|
+
target,
|
|
634
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetVersionsInRange',
|
|
635
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
636
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.VersionsInRangeResponse.FromString,
|
|
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)
|
|
700
|
+
|
|
701
|
+
@staticmethod
|
|
702
|
+
def GetHintsInRange(request,
|
|
703
|
+
target,
|
|
704
|
+
options=(),
|
|
705
|
+
channel_credentials=None,
|
|
706
|
+
call_credentials=None,
|
|
707
|
+
insecure=False,
|
|
708
|
+
compression=None,
|
|
709
|
+
wait_for_ready=None,
|
|
710
|
+
timeout=None,
|
|
711
|
+
metadata=None):
|
|
712
|
+
return grpc.experimental.unary_unary(
|
|
713
|
+
request,
|
|
714
|
+
target,
|
|
715
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetHintsInRange',
|
|
716
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
717
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsInRangeResponse.FromString,
|
|
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)
|
|
781
|
+
|
|
782
|
+
@staticmethod
|
|
783
|
+
def GetEncryptionHints(request,
|
|
784
|
+
target,
|
|
785
|
+
options=(),
|
|
786
|
+
channel_credentials=None,
|
|
787
|
+
call_credentials=None,
|
|
788
|
+
insecure=False,
|
|
789
|
+
compression=None,
|
|
790
|
+
wait_for_ready=None,
|
|
791
|
+
timeout=None,
|
|
792
|
+
metadata=None):
|
|
793
|
+
return grpc.experimental.unary_unary(
|
|
794
|
+
request,
|
|
795
|
+
target,
|
|
796
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetEncryptionHints',
|
|
797
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
798
|
+
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsResponse.FromString,
|
|
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)
|