scanoss 1.31.3__py3-none-any.whl → 1.31.5__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.
- scanoss/__init__.py +1 -1
- scanoss/api/common/v2/scanoss_common_pb2.py +47 -22
- scanoss/api/common/v2/scanoss_common_pb2_grpc.py +20 -0
- scanoss/api/components/v2/scanoss_components_pb2.py +54 -43
- scanoss/api/components/v2/scanoss_components_pb2_grpc.py +77 -16
- scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py +58 -47
- scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +105 -24
- scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +48 -37
- scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +63 -12
- scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2.py +42 -31
- scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2_grpc.py +63 -12
- 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 +30 -19
- scanoss/api/scanning/v2/scanoss_scanning_pb2_grpc.py +49 -8
- scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +34 -23
- scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +49 -8
- scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +78 -31
- scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py +282 -18
- scanoss/cli.py +4 -3
- scanoss/data/build_date.txt +1 -1
- scanoss/inspection/dependency_track/project_violation.py +16 -9
- scanoss/services/dependency_track_service.py +1 -1
- scanoss/threadeddependencies.py +19 -18
- {scanoss-1.31.3.dist-info → scanoss-1.31.5.dist-info}/METADATA +2 -1
- {scanoss-1.31.3.dist-info → scanoss-1.31.5.dist-info}/RECORD +32 -28
- {scanoss-1.31.3.dist-info → scanoss-1.31.5.dist-info}/WHEEL +0 -0
- {scanoss-1.31.3.dist-info → scanoss-1.31.5.dist-info}/entry_points.txt +0 -0
- {scanoss-1.31.3.dist-info → scanoss-1.31.5.dist-info}/licenses/LICENSE +0 -0
- {scanoss-1.31.3.dist-info → scanoss-1.31.5.dist-info}/top_level.txt +0 -0
|
@@ -1,10 +1,30 @@
|
|
|
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.geoprovenance.v2 import scanoss_geoprovenance_pb2 as scanoss_dot_api_dot_geoprovenance_dot_v2_dot_scanoss__geoprovenance__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/geoprovenance/v2/scanoss_geoprovenance_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 GeoProvenanceStub(object):
|
|
10
30
|
"""*
|
|
@@ -21,17 +41,17 @@ class GeoProvenanceStub(object):
|
|
|
21
41
|
'/scanoss.api.geoprovenance.v2.GeoProvenance/Echo',
|
|
22
42
|
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
23
43
|
response_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
24
|
-
)
|
|
44
|
+
_registered_method=True)
|
|
25
45
|
self.GetComponentContributors = channel.unary_unary(
|
|
26
46
|
'/scanoss.api.geoprovenance.v2.GeoProvenance/GetComponentContributors',
|
|
27
47
|
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
28
48
|
response_deserializer=scanoss_dot_api_dot_geoprovenance_dot_v2_dot_scanoss__geoprovenance__pb2.ContributorResponse.FromString,
|
|
29
|
-
)
|
|
49
|
+
_registered_method=True)
|
|
30
50
|
self.GetComponentOrigin = channel.unary_unary(
|
|
31
51
|
'/scanoss.api.geoprovenance.v2.GeoProvenance/GetComponentOrigin',
|
|
32
52
|
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
33
53
|
response_deserializer=scanoss_dot_api_dot_geoprovenance_dot_v2_dot_scanoss__geoprovenance__pb2.OriginResponse.FromString,
|
|
34
|
-
)
|
|
54
|
+
_registered_method=True)
|
|
35
55
|
|
|
36
56
|
|
|
37
57
|
class GeoProvenanceServicer(object):
|
|
@@ -82,6 +102,7 @@ def add_GeoProvenanceServicer_to_server(servicer, server):
|
|
|
82
102
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
83
103
|
'scanoss.api.geoprovenance.v2.GeoProvenance', rpc_method_handlers)
|
|
84
104
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
105
|
+
server.add_registered_method_handlers('scanoss.api.geoprovenance.v2.GeoProvenance', rpc_method_handlers)
|
|
85
106
|
|
|
86
107
|
|
|
87
108
|
# This class is part of an EXPERIMENTAL API.
|
|
@@ -101,11 +122,21 @@ class GeoProvenance(object):
|
|
|
101
122
|
wait_for_ready=None,
|
|
102
123
|
timeout=None,
|
|
103
124
|
metadata=None):
|
|
104
|
-
return grpc.experimental.unary_unary(
|
|
125
|
+
return grpc.experimental.unary_unary(
|
|
126
|
+
request,
|
|
127
|
+
target,
|
|
128
|
+
'/scanoss.api.geoprovenance.v2.GeoProvenance/Echo',
|
|
105
129
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
106
130
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
107
|
-
options,
|
|
108
|
-
|
|
131
|
+
options,
|
|
132
|
+
channel_credentials,
|
|
133
|
+
insecure,
|
|
134
|
+
call_credentials,
|
|
135
|
+
compression,
|
|
136
|
+
wait_for_ready,
|
|
137
|
+
timeout,
|
|
138
|
+
metadata,
|
|
139
|
+
_registered_method=True)
|
|
109
140
|
|
|
110
141
|
@staticmethod
|
|
111
142
|
def GetComponentContributors(request,
|
|
@@ -118,11 +149,21 @@ class GeoProvenance(object):
|
|
|
118
149
|
wait_for_ready=None,
|
|
119
150
|
timeout=None,
|
|
120
151
|
metadata=None):
|
|
121
|
-
return grpc.experimental.unary_unary(
|
|
152
|
+
return grpc.experimental.unary_unary(
|
|
153
|
+
request,
|
|
154
|
+
target,
|
|
155
|
+
'/scanoss.api.geoprovenance.v2.GeoProvenance/GetComponentContributors',
|
|
122
156
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
123
157
|
scanoss_dot_api_dot_geoprovenance_dot_v2_dot_scanoss__geoprovenance__pb2.ContributorResponse.FromString,
|
|
124
|
-
options,
|
|
125
|
-
|
|
158
|
+
options,
|
|
159
|
+
channel_credentials,
|
|
160
|
+
insecure,
|
|
161
|
+
call_credentials,
|
|
162
|
+
compression,
|
|
163
|
+
wait_for_ready,
|
|
164
|
+
timeout,
|
|
165
|
+
metadata,
|
|
166
|
+
_registered_method=True)
|
|
126
167
|
|
|
127
168
|
@staticmethod
|
|
128
169
|
def GetComponentOrigin(request,
|
|
@@ -135,8 +176,18 @@ class GeoProvenance(object):
|
|
|
135
176
|
wait_for_ready=None,
|
|
136
177
|
timeout=None,
|
|
137
178
|
metadata=None):
|
|
138
|
-
return grpc.experimental.unary_unary(
|
|
179
|
+
return grpc.experimental.unary_unary(
|
|
180
|
+
request,
|
|
181
|
+
target,
|
|
182
|
+
'/scanoss.api.geoprovenance.v2.GeoProvenance/GetComponentOrigin',
|
|
139
183
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
140
184
|
scanoss_dot_api_dot_geoprovenance_dot_v2_dot_scanoss__geoprovenance__pb2.OriginResponse.FromString,
|
|
141
|
-
options,
|
|
142
|
-
|
|
185
|
+
options,
|
|
186
|
+
channel_credentials,
|
|
187
|
+
insecure,
|
|
188
|
+
call_credentials,
|
|
189
|
+
compression,
|
|
190
|
+
wait_for_ready,
|
|
191
|
+
timeout,
|
|
192
|
+
metadata,
|
|
193
|
+
_registered_method=True)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""
|
|
2
|
+
SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2025, SCANOSS
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
|
+
"""
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""
|
|
2
|
+
SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2025, SCANOSS
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
|
+
"""
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: scanoss/api/licenses/v2/scanoss-licenses.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'scanoss/api/licenses/v2/scanoss-licenses.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from scanoss.api.common.v2 import scanoss_common_pb2 as scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2
|
|
26
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
27
|
+
from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.scanoss/api/licenses/v2/scanoss-licenses.proto\x12\x17scanoss.api.licenses.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xbd\x03\n\x18\x43omponentLicenseResponse\x12@\n\tcomponent\x18\x01 \x01(\x0b\x32-.scanoss.api.licenses.v2.ComponentLicenseInfo\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse:\xa7\x02\x92\x41\xa3\x02\n\xa0\x02J\x9d\x02{\"component\":{\"purl\": \"pkg:github/scanoss/engine@1.0.0\", \"requirement\": \"\", \"version\": \"1.0.0\", \"statement\": \"GPL-2.0\", \"licenses\": [{\"id\": \"GPL-2.0\", \"full_name\": \"GNU General Public License v2.0 only\"}]}, \"status\": {\"status\": \"SUCCESS\", \"message\": \"Licenses Successfully retrieved\"}}\"\xe9\x04\n\x19\x43omponentsLicenseResponse\x12\x41\n\ncomponents\x18\x01 \x03(\x0b\x32-.scanoss.api.licenses.v2.ComponentLicenseInfo\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse:\xd1\x03\x92\x41\xcd\x03\n\xca\x03J\xc7\x03{\"components\":[{\"purl\": \"pkg:github/scanoss/engine@1.0.0\", \"requirement\": \"\", \"version\": \"1.0.0\", \"statement\": \"GPL-2.0\", \"licenses\": [{\"id\": \"GPL-2.0\", \"full_name\": \"GNU General Public License v2.0 only\"}]}, {\"purl\": \"pkg:github/scanoss/scanoss.py@v1.30.0\",\"requirement\": \"\",\"version\": \"v1.30.0\",\"statement\": \"MIT\", \"licenses\": [{\"id\": \"MIT\",\"full_name\": \"MIT License\"}]} ], \"status\": {\"status\": \"SUCCESS\", \"message\": \"Licenses Successfully retrieved\"}}\"\x89\x01\n\x16LicenseDetailsResponse\x12\x38\n\x07license\x18\x01 \x01(\x0b\x32\'.scanoss.api.licenses.v2.LicenseDetails\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\"\x81\x01\n\x13ObligationsResponse\x12\x33\n\x0bobligations\x18\x01 \x01(\x0b\x32\x1e.scanoss.api.licenses.v2.OSADL\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\"\xa3\x04\n\x04SPDX\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfull_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65tails_url\x18\x04 \x01(\t\x12\x15\n\rreference_url\x18\x05 \x01(\t\x12\x15\n\ris_deprecated\x18\x06 \x01(\x08\x12\x14\n\x0cis_fsf_libre\x18\x07 \x01(\x08\x12\x17\n\x0fis_osi_approved\x18\x08 \x01(\x08\x12\x10\n\x08see_also\x18\t \x03(\t\x12>\n\ncross_refs\x18\n \x03(\x0b\x32*.scanoss.api.licenses.v2.SPDX.SPDXCrossRef\x12?\n\nexceptions\x18\x0b \x03(\x0b\x32+.scanoss.api.licenses.v2.SPDX.SPDXException\x1a\x88\x01\n\x0cSPDXCrossRef\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x10\n\x08is_valid\x18\x02 \x01(\x08\x12\x0f\n\x07is_live\x18\x03 \x01(\x08\x12\x11\n\ttimestamp\x18\x04 \x01(\t\x12\x17\n\x0fis_wayback_link\x18\x05 \x01(\x08\x12\r\n\x05order\x18\x06 \x01(\x05\x12\r\n\x05match\x18\x07 \x01(\t\x1al\n\rSPDXException\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfull_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65tails_url\x18\x03 \x01(\t\x12\x10\n\x08see_also\x18\x05 \x03(\t\x12\x15\n\ris_deprecated\x18\x06 \x01(\x08\"\x97\x02\n\x05OSADL\x12\x17\n\x0f\x63opyleft_clause\x18\x01 \x01(\x08\x12\x14\n\x0cpatent_hints\x18\x02 \x01(\x08\x12\x15\n\rcompatibility\x18\x03 \x03(\t\x12\x1f\n\x17\x64\x65pending_compatibility\x18\x04 \x03(\t\x12\x17\n\x0fincompatibility\x18\x05 \x03(\t\x12>\n\tuse_cases\x18\x06 \x03(\x0b\x32+.scanoss.api.licenses.v2.OSADL.OSADLUseCase\x1aN\n\x0cOSADLUseCase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x0fobligation_text\x18\x02 \x01(\t\x12\x17\n\x0fobligation_json\x18\x03 \x01(\t\"{\n\x0bLicenseInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfull_name\x18\x02 \x01(\t:M\x92\x41J\nHJF{\"id\": \"GPL-2.0\", \"full_name\": \"GNU General Public License v2.0 only\"}\"\xb3\x01\n\x0eLicenseDetails\x12\x11\n\tfull_name\x18\x01 \x01(\t\x12\x32\n\x04type\x18\x02 \x01(\x0e\x32$.scanoss.api.licenses.v2.LicenseType\x12+\n\x04spdx\x18\x03 \x01(\x0b\x32\x1d.scanoss.api.licenses.v2.SPDX\x12-\n\x05osadl\x18\x04 \x01(\x0b\x32\x1e.scanoss.api.licenses.v2.OSADL\"\x1c\n\x0eLicenseRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\x95\x01\n\x14\x43omponentLicenseInfo\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x13\n\x0brequirement\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x11\n\tstatement\x18\x04 \x01(\t\x12\x36\n\x08licenses\x18\x05 \x03(\x0b\x32$.scanoss.api.licenses.v2.LicenseInfo*l\n\x0bLicenseType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0e\n\nPERMISSIVE\x10\x01\x12\x0c\n\x08\x43OPYLEFT\x10\x02\x12\x0e\n\nCOMMERCIAL\x10\x03\x12\x0f\n\x0bPROPRIETARY\x10\x04\x12\x11\n\rPUBLIC_DOMAIN\x10\x05\x32\xd0\x05\n\x07License\x12q\n\x04\x45\x63ho\x12\".scanoss.api.common.v2.EchoRequest\x1a#.scanoss.api.common.v2.EchoResponse\" \x82\xd3\xe4\x93\x02\x1a\"\x15/api/v2/licenses/echo:\x01*\x12\x96\x01\n\x14GetComponentLicenses\x12\'.scanoss.api.common.v2.ComponentRequest\x1a\x31.scanoss.api.licenses.v2.ComponentLicenseResponse\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/api/v2/licenses/component\x12\x9d\x01\n\x15GetComponentsLicenses\x12(.scanoss.api.common.v2.ComponentsRequest\x1a\x32.scanoss.api.licenses.v2.ComponentsLicenseResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/api/v2/licenses/components:\x01*\x12\x88\x01\n\nGetDetails\x12\'.scanoss.api.licenses.v2.LicenseRequest\x1a/.scanoss.api.licenses.v2.LicenseDetailsResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/api/v2/licenses/details\x12\x8d\x01\n\x0eGetObligations\x12\'.scanoss.api.licenses.v2.LicenseRequest\x1a,.scanoss.api.licenses.v2.ObligationsResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/v2/licenses/obligationsB\xa7\x02Z1github.com/scanoss/papi/api/licensesv2;licensesv2\x92\x41\xf0\x01\x12\xb4\x01\n\x17SCANOSS License Service\x12\x46License service provides license intelligence for software components.\"L\n\x10scanoss-licenses\x12#https://github.com/scanoss/licenses\x1a\x13support@scanoss.com2\x03\x32.0\x1a\x0f\x61pi.scanoss.com*\x02\x01\x02\x32\x10\x61pplication/json:\x10\x61pplication/jsonb\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scanoss.api.licenses.v2.scanoss_licenses_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z1github.com/scanoss/papi/api/licensesv2;licensesv2\222A\360\001\022\264\001\n\027SCANOSS License Service\022FLicense service provides license intelligence for software components.\"L\n\020scanoss-licenses\022#https://github.com/scanoss/licenses\032\023support@scanoss.com2\0032.0\032\017api.scanoss.com*\002\001\0022\020application/json:\020application/json'
|
|
38
|
+
_globals['_COMPONENTLICENSERESPONSE']._loaded_options = None
|
|
39
|
+
_globals['_COMPONENTLICENSERESPONSE']._serialized_options = b'\222A\243\002\n\240\002J\235\002{\"component\":{\"purl\": \"pkg:github/scanoss/engine@1.0.0\", \"requirement\": \"\", \"version\": \"1.0.0\", \"statement\": \"GPL-2.0\", \"licenses\": [{\"id\": \"GPL-2.0\", \"full_name\": \"GNU General Public License v2.0 only\"}]}, \"status\": {\"status\": \"SUCCESS\", \"message\": \"Licenses Successfully retrieved\"}}'
|
|
40
|
+
_globals['_COMPONENTSLICENSERESPONSE']._loaded_options = None
|
|
41
|
+
_globals['_COMPONENTSLICENSERESPONSE']._serialized_options = b'\222A\315\003\n\312\003J\307\003{\"components\":[{\"purl\": \"pkg:github/scanoss/engine@1.0.0\", \"requirement\": \"\", \"version\": \"1.0.0\", \"statement\": \"GPL-2.0\", \"licenses\": [{\"id\": \"GPL-2.0\", \"full_name\": \"GNU General Public License v2.0 only\"}]}, {\"purl\": \"pkg:github/scanoss/scanoss.py@v1.30.0\",\"requirement\": \"\",\"version\": \"v1.30.0\",\"statement\": \"MIT\", \"licenses\": [{\"id\": \"MIT\",\"full_name\": \"MIT License\"}]} ], \"status\": {\"status\": \"SUCCESS\", \"message\": \"Licenses Successfully retrieved\"}}'
|
|
42
|
+
_globals['_LICENSEINFO']._loaded_options = None
|
|
43
|
+
_globals['_LICENSEINFO']._serialized_options = b'\222AJ\nHJF{\"id\": \"GPL-2.0\", \"full_name\": \"GNU General Public License v2.0 only\"}'
|
|
44
|
+
_globals['_LICENSE'].methods_by_name['Echo']._loaded_options = None
|
|
45
|
+
_globals['_LICENSE'].methods_by_name['Echo']._serialized_options = b'\202\323\344\223\002\032\"\025/api/v2/licenses/echo:\001*'
|
|
46
|
+
_globals['_LICENSE'].methods_by_name['GetComponentLicenses']._loaded_options = None
|
|
47
|
+
_globals['_LICENSE'].methods_by_name['GetComponentLicenses']._serialized_options = b'\202\323\344\223\002\034\022\032/api/v2/licenses/component'
|
|
48
|
+
_globals['_LICENSE'].methods_by_name['GetComponentsLicenses']._loaded_options = None
|
|
49
|
+
_globals['_LICENSE'].methods_by_name['GetComponentsLicenses']._serialized_options = b'\202\323\344\223\002 \"\033/api/v2/licenses/components:\001*'
|
|
50
|
+
_globals['_LICENSE'].methods_by_name['GetDetails']._loaded_options = None
|
|
51
|
+
_globals['_LICENSE'].methods_by_name['GetDetails']._serialized_options = b'\202\323\344\223\002\032\022\030/api/v2/licenses/details'
|
|
52
|
+
_globals['_LICENSE'].methods_by_name['GetObligations']._loaded_options = None
|
|
53
|
+
_globals['_LICENSE'].methods_by_name['GetObligations']._serialized_options = b'\202\323\344\223\002\036\022\034/api/v2/licenses/obligations'
|
|
54
|
+
_globals['_LICENSETYPE']._serialized_start=2858
|
|
55
|
+
_globals['_LICENSETYPE']._serialized_end=2966
|
|
56
|
+
_globals['_COMPONENTLICENSERESPONSE']._serialized_start=198
|
|
57
|
+
_globals['_COMPONENTLICENSERESPONSE']._serialized_end=643
|
|
58
|
+
_globals['_COMPONENTSLICENSERESPONSE']._serialized_start=646
|
|
59
|
+
_globals['_COMPONENTSLICENSERESPONSE']._serialized_end=1263
|
|
60
|
+
_globals['_LICENSEDETAILSRESPONSE']._serialized_start=1266
|
|
61
|
+
_globals['_LICENSEDETAILSRESPONSE']._serialized_end=1403
|
|
62
|
+
_globals['_OBLIGATIONSRESPONSE']._serialized_start=1406
|
|
63
|
+
_globals['_OBLIGATIONSRESPONSE']._serialized_end=1535
|
|
64
|
+
_globals['_SPDX']._serialized_start=1538
|
|
65
|
+
_globals['_SPDX']._serialized_end=2085
|
|
66
|
+
_globals['_SPDX_SPDXCROSSREF']._serialized_start=1839
|
|
67
|
+
_globals['_SPDX_SPDXCROSSREF']._serialized_end=1975
|
|
68
|
+
_globals['_SPDX_SPDXEXCEPTION']._serialized_start=1977
|
|
69
|
+
_globals['_SPDX_SPDXEXCEPTION']._serialized_end=2085
|
|
70
|
+
_globals['_OSADL']._serialized_start=2088
|
|
71
|
+
_globals['_OSADL']._serialized_end=2367
|
|
72
|
+
_globals['_OSADL_OSADLUSECASE']._serialized_start=2289
|
|
73
|
+
_globals['_OSADL_OSADLUSECASE']._serialized_end=2367
|
|
74
|
+
_globals['_LICENSEINFO']._serialized_start=2369
|
|
75
|
+
_globals['_LICENSEINFO']._serialized_end=2492
|
|
76
|
+
_globals['_LICENSEDETAILS']._serialized_start=2495
|
|
77
|
+
_globals['_LICENSEDETAILS']._serialized_end=2674
|
|
78
|
+
_globals['_LICENSEREQUEST']._serialized_start=2676
|
|
79
|
+
_globals['_LICENSEREQUEST']._serialized_end=2704
|
|
80
|
+
_globals['_COMPONENTLICENSEINFO']._serialized_start=2707
|
|
81
|
+
_globals['_COMPONENTLICENSEINFO']._serialized_end=2856
|
|
82
|
+
_globals['_LICENSE']._serialized_start=2969
|
|
83
|
+
_globals['_LICENSE']._serialized_end=3689
|
|
84
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from scanoss.api.common.v2 import scanoss_common_pb2 as scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2
|
|
7
|
+
from scanoss.api.licenses.v2 import scanoss_licenses_pb2 as scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2
|
|
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/licenses/v2/scanoss_licenses_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
|
+
|
|
28
|
+
|
|
29
|
+
class LicenseStub(object):
|
|
30
|
+
"""
|
|
31
|
+
License Service Definition
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, channel):
|
|
35
|
+
"""Constructor.
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
channel: A grpc.Channel.
|
|
39
|
+
"""
|
|
40
|
+
self.Echo = channel.unary_unary(
|
|
41
|
+
'/scanoss.api.licenses.v2.License/Echo',
|
|
42
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
43
|
+
response_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
44
|
+
_registered_method=True)
|
|
45
|
+
self.GetComponentLicenses = channel.unary_unary(
|
|
46
|
+
'/scanoss.api.licenses.v2.License/GetComponentLicenses',
|
|
47
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
48
|
+
response_deserializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.ComponentLicenseResponse.FromString,
|
|
49
|
+
_registered_method=True)
|
|
50
|
+
self.GetComponentsLicenses = channel.unary_unary(
|
|
51
|
+
'/scanoss.api.licenses.v2.License/GetComponentsLicenses',
|
|
52
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
53
|
+
response_deserializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.ComponentsLicenseResponse.FromString,
|
|
54
|
+
_registered_method=True)
|
|
55
|
+
self.GetDetails = channel.unary_unary(
|
|
56
|
+
'/scanoss.api.licenses.v2.License/GetDetails',
|
|
57
|
+
request_serializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.LicenseRequest.SerializeToString,
|
|
58
|
+
response_deserializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.LicenseDetailsResponse.FromString,
|
|
59
|
+
_registered_method=True)
|
|
60
|
+
self.GetObligations = channel.unary_unary(
|
|
61
|
+
'/scanoss.api.licenses.v2.License/GetObligations',
|
|
62
|
+
request_serializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.LicenseRequest.SerializeToString,
|
|
63
|
+
response_deserializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.ObligationsResponse.FromString,
|
|
64
|
+
_registered_method=True)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class LicenseServicer(object):
|
|
68
|
+
"""
|
|
69
|
+
License Service Definition
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
def Echo(self, request, context):
|
|
73
|
+
"""
|
|
74
|
+
Returns the same message that was sent, used for health checks and connectivity testing
|
|
75
|
+
"""
|
|
76
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
77
|
+
context.set_details('Method not implemented!')
|
|
78
|
+
raise NotImplementedError('Method not implemented!')
|
|
79
|
+
|
|
80
|
+
def GetComponentLicenses(self, request, context):
|
|
81
|
+
"""
|
|
82
|
+
Get license information for a single software component.
|
|
83
|
+
|
|
84
|
+
Examines source code, license files, and package metadata to determine which licenses apply to the component.
|
|
85
|
+
Returns license data in both individual SPDX license and SPDX expressions when determinable.
|
|
86
|
+
|
|
87
|
+
See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/licenses/v2/README.md?tab=readme-ov-file#getcomponentlicenses
|
|
88
|
+
"""
|
|
89
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
90
|
+
context.set_details('Method not implemented!')
|
|
91
|
+
raise NotImplementedError('Method not implemented!')
|
|
92
|
+
|
|
93
|
+
def GetComponentsLicenses(self, request, context):
|
|
94
|
+
"""
|
|
95
|
+
Get license information for multiple software components in a single request.
|
|
96
|
+
|
|
97
|
+
Examines source code, license files, and package metadata to determine which licenses apply to each component.
|
|
98
|
+
Returns license data in both individual SPDX license and SPDX expressions when determinable.
|
|
99
|
+
|
|
100
|
+
See https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/licenses/v2/README.md?tab=readme-ov-file#getcomponentslicenses
|
|
101
|
+
"""
|
|
102
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
103
|
+
context.set_details('Method not implemented!')
|
|
104
|
+
raise NotImplementedError('Method not implemented!')
|
|
105
|
+
|
|
106
|
+
def GetDetails(self, request, context):
|
|
107
|
+
"""
|
|
108
|
+
Get detailed metadata for a specific license by SPDX identifier.
|
|
109
|
+
|
|
110
|
+
Provides comprehensive license information including SPDX registry data,
|
|
111
|
+
OSADL compliance metadata, license type classification, and official references.
|
|
112
|
+
"""
|
|
113
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
114
|
+
context.set_details('Method not implemented!')
|
|
115
|
+
raise NotImplementedError('Method not implemented!')
|
|
116
|
+
|
|
117
|
+
def GetObligations(self, request, context):
|
|
118
|
+
"""
|
|
119
|
+
Get compliance obligations and usage requirements for a specific license.
|
|
120
|
+
|
|
121
|
+
Returns structured OSADL compliance data including use cases, obligations,
|
|
122
|
+
compatibility information, and patent hints for the specified license.
|
|
123
|
+
"""
|
|
124
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
125
|
+
context.set_details('Method not implemented!')
|
|
126
|
+
raise NotImplementedError('Method not implemented!')
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def add_LicenseServicer_to_server(servicer, server):
|
|
130
|
+
rpc_method_handlers = {
|
|
131
|
+
'Echo': grpc.unary_unary_rpc_method_handler(
|
|
132
|
+
servicer.Echo,
|
|
133
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.FromString,
|
|
134
|
+
response_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.SerializeToString,
|
|
135
|
+
),
|
|
136
|
+
'GetComponentLicenses': grpc.unary_unary_rpc_method_handler(
|
|
137
|
+
servicer.GetComponentLicenses,
|
|
138
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.FromString,
|
|
139
|
+
response_serializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.ComponentLicenseResponse.SerializeToString,
|
|
140
|
+
),
|
|
141
|
+
'GetComponentsLicenses': grpc.unary_unary_rpc_method_handler(
|
|
142
|
+
servicer.GetComponentsLicenses,
|
|
143
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.FromString,
|
|
144
|
+
response_serializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.ComponentsLicenseResponse.SerializeToString,
|
|
145
|
+
),
|
|
146
|
+
'GetDetails': grpc.unary_unary_rpc_method_handler(
|
|
147
|
+
servicer.GetDetails,
|
|
148
|
+
request_deserializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.LicenseRequest.FromString,
|
|
149
|
+
response_serializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.LicenseDetailsResponse.SerializeToString,
|
|
150
|
+
),
|
|
151
|
+
'GetObligations': grpc.unary_unary_rpc_method_handler(
|
|
152
|
+
servicer.GetObligations,
|
|
153
|
+
request_deserializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.LicenseRequest.FromString,
|
|
154
|
+
response_serializer=scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.ObligationsResponse.SerializeToString,
|
|
155
|
+
),
|
|
156
|
+
}
|
|
157
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
158
|
+
'scanoss.api.licenses.v2.License', rpc_method_handlers)
|
|
159
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
160
|
+
server.add_registered_method_handlers('scanoss.api.licenses.v2.License', rpc_method_handlers)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
# This class is part of an EXPERIMENTAL API.
|
|
164
|
+
class License(object):
|
|
165
|
+
"""
|
|
166
|
+
License Service Definition
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
@staticmethod
|
|
170
|
+
def Echo(request,
|
|
171
|
+
target,
|
|
172
|
+
options=(),
|
|
173
|
+
channel_credentials=None,
|
|
174
|
+
call_credentials=None,
|
|
175
|
+
insecure=False,
|
|
176
|
+
compression=None,
|
|
177
|
+
wait_for_ready=None,
|
|
178
|
+
timeout=None,
|
|
179
|
+
metadata=None):
|
|
180
|
+
return grpc.experimental.unary_unary(
|
|
181
|
+
request,
|
|
182
|
+
target,
|
|
183
|
+
'/scanoss.api.licenses.v2.License/Echo',
|
|
184
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
185
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
186
|
+
options,
|
|
187
|
+
channel_credentials,
|
|
188
|
+
insecure,
|
|
189
|
+
call_credentials,
|
|
190
|
+
compression,
|
|
191
|
+
wait_for_ready,
|
|
192
|
+
timeout,
|
|
193
|
+
metadata,
|
|
194
|
+
_registered_method=True)
|
|
195
|
+
|
|
196
|
+
@staticmethod
|
|
197
|
+
def GetComponentLicenses(request,
|
|
198
|
+
target,
|
|
199
|
+
options=(),
|
|
200
|
+
channel_credentials=None,
|
|
201
|
+
call_credentials=None,
|
|
202
|
+
insecure=False,
|
|
203
|
+
compression=None,
|
|
204
|
+
wait_for_ready=None,
|
|
205
|
+
timeout=None,
|
|
206
|
+
metadata=None):
|
|
207
|
+
return grpc.experimental.unary_unary(
|
|
208
|
+
request,
|
|
209
|
+
target,
|
|
210
|
+
'/scanoss.api.licenses.v2.License/GetComponentLicenses',
|
|
211
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
|
|
212
|
+
scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.ComponentLicenseResponse.FromString,
|
|
213
|
+
options,
|
|
214
|
+
channel_credentials,
|
|
215
|
+
insecure,
|
|
216
|
+
call_credentials,
|
|
217
|
+
compression,
|
|
218
|
+
wait_for_ready,
|
|
219
|
+
timeout,
|
|
220
|
+
metadata,
|
|
221
|
+
_registered_method=True)
|
|
222
|
+
|
|
223
|
+
@staticmethod
|
|
224
|
+
def GetComponentsLicenses(request,
|
|
225
|
+
target,
|
|
226
|
+
options=(),
|
|
227
|
+
channel_credentials=None,
|
|
228
|
+
call_credentials=None,
|
|
229
|
+
insecure=False,
|
|
230
|
+
compression=None,
|
|
231
|
+
wait_for_ready=None,
|
|
232
|
+
timeout=None,
|
|
233
|
+
metadata=None):
|
|
234
|
+
return grpc.experimental.unary_unary(
|
|
235
|
+
request,
|
|
236
|
+
target,
|
|
237
|
+
'/scanoss.api.licenses.v2.License/GetComponentsLicenses',
|
|
238
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
|
|
239
|
+
scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.ComponentsLicenseResponse.FromString,
|
|
240
|
+
options,
|
|
241
|
+
channel_credentials,
|
|
242
|
+
insecure,
|
|
243
|
+
call_credentials,
|
|
244
|
+
compression,
|
|
245
|
+
wait_for_ready,
|
|
246
|
+
timeout,
|
|
247
|
+
metadata,
|
|
248
|
+
_registered_method=True)
|
|
249
|
+
|
|
250
|
+
@staticmethod
|
|
251
|
+
def GetDetails(request,
|
|
252
|
+
target,
|
|
253
|
+
options=(),
|
|
254
|
+
channel_credentials=None,
|
|
255
|
+
call_credentials=None,
|
|
256
|
+
insecure=False,
|
|
257
|
+
compression=None,
|
|
258
|
+
wait_for_ready=None,
|
|
259
|
+
timeout=None,
|
|
260
|
+
metadata=None):
|
|
261
|
+
return grpc.experimental.unary_unary(
|
|
262
|
+
request,
|
|
263
|
+
target,
|
|
264
|
+
'/scanoss.api.licenses.v2.License/GetDetails',
|
|
265
|
+
scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.LicenseRequest.SerializeToString,
|
|
266
|
+
scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.LicenseDetailsResponse.FromString,
|
|
267
|
+
options,
|
|
268
|
+
channel_credentials,
|
|
269
|
+
insecure,
|
|
270
|
+
call_credentials,
|
|
271
|
+
compression,
|
|
272
|
+
wait_for_ready,
|
|
273
|
+
timeout,
|
|
274
|
+
metadata,
|
|
275
|
+
_registered_method=True)
|
|
276
|
+
|
|
277
|
+
@staticmethod
|
|
278
|
+
def GetObligations(request,
|
|
279
|
+
target,
|
|
280
|
+
options=(),
|
|
281
|
+
channel_credentials=None,
|
|
282
|
+
call_credentials=None,
|
|
283
|
+
insecure=False,
|
|
284
|
+
compression=None,
|
|
285
|
+
wait_for_ready=None,
|
|
286
|
+
timeout=None,
|
|
287
|
+
metadata=None):
|
|
288
|
+
return grpc.experimental.unary_unary(
|
|
289
|
+
request,
|
|
290
|
+
target,
|
|
291
|
+
'/scanoss.api.licenses.v2.License/GetObligations',
|
|
292
|
+
scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.LicenseRequest.SerializeToString,
|
|
293
|
+
scanoss_dot_api_dot_licenses_dot_v2_dot_scanoss__licenses__pb2.ObligationsResponse.FromString,
|
|
294
|
+
options,
|
|
295
|
+
channel_credentials,
|
|
296
|
+
insecure,
|
|
297
|
+
call_credentials,
|
|
298
|
+
compression,
|
|
299
|
+
wait_for_ready,
|
|
300
|
+
timeout,
|
|
301
|
+
metadata,
|
|
302
|
+
_registered_method=True)
|