scanoss 1.20.6__py3-none-any.whl → 1.23.0__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.
Files changed (50) hide show
  1. protoc_gen_swagger/options/annotations_pb2.py +9 -12
  2. protoc_gen_swagger/options/annotations_pb2_grpc.py +1 -1
  3. protoc_gen_swagger/options/openapiv2_pb2.py +96 -98
  4. protoc_gen_swagger/options/openapiv2_pb2_grpc.py +1 -1
  5. scanoss/__init__.py +1 -1
  6. scanoss/api/common/v2/scanoss_common_pb2.py +20 -18
  7. scanoss/api/common/v2/scanoss_common_pb2_grpc.py +1 -1
  8. scanoss/api/components/v2/scanoss_components_pb2.py +38 -48
  9. scanoss/api/components/v2/scanoss_components_pb2_grpc.py +96 -142
  10. scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py +42 -22
  11. scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +185 -75
  12. scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +32 -30
  13. scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +83 -75
  14. scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2.py +49 -0
  15. scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2_grpc.py +142 -0
  16. scanoss/api/scanning/v2/scanoss_scanning_pb2.py +20 -10
  17. scanoss/api/scanning/v2/scanoss_scanning_pb2_grpc.py +70 -40
  18. scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +18 -22
  19. scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +49 -71
  20. scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +27 -37
  21. scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py +72 -109
  22. scanoss/cli.py +393 -84
  23. scanoss/components.py +21 -11
  24. scanoss/constants.py +12 -0
  25. scanoss/data/build_date.txt +1 -1
  26. scanoss/file_filters.py +272 -57
  27. scanoss/results.py +92 -109
  28. scanoss/scanners/__init__.py +23 -0
  29. scanoss/scanners/container_scanner.py +474 -0
  30. scanoss/scanners/folder_hasher.py +302 -0
  31. scanoss/scanners/scanner_config.py +73 -0
  32. scanoss/scanners/scanner_hfh.py +173 -0
  33. scanoss/scanoss_settings.py +9 -5
  34. scanoss/scanossbase.py +9 -3
  35. scanoss/scanossgrpc.py +143 -18
  36. scanoss/threadedscanning.py +6 -6
  37. scanoss/utils/abstract_presenter.py +103 -0
  38. scanoss/utils/crc64.py +96 -0
  39. scanoss/utils/simhash.py +198 -0
  40. {scanoss-1.20.6.dist-info → scanoss-1.23.0.dist-info}/METADATA +2 -1
  41. scanoss-1.23.0.dist-info/RECORD +83 -0
  42. {scanoss-1.20.6.dist-info → scanoss-1.23.0.dist-info}/WHEEL +1 -1
  43. scanoss/api/provenance/v2/scanoss_provenance_pb2.py +0 -42
  44. scanoss/api/provenance/v2/scanoss_provenance_pb2_grpc.py +0 -108
  45. scanoss-1.20.6.dist-info/RECORD +0 -74
  46. /scanoss/api/{provenance → geoprovenance}/__init__.py +0 -0
  47. /scanoss/api/{provenance → geoprovenance}/v2/__init__.py +0 -0
  48. {scanoss-1.20.6.dist-info → scanoss-1.23.0.dist-info}/entry_points.txt +0 -0
  49. {scanoss-1.20.6.dist-info → scanoss-1.23.0.dist-info}/licenses/LICENSE +0 -0
  50. {scanoss-1.20.6.dist-info → scanoss-1.23.0.dist-info}/top_level.txt +0 -0
@@ -2,7 +2,6 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: scanoss/api/vulnerabilities/v2/scanoss-vulnerabilities.proto
4
4
  """Generated protocol buffer code."""
5
-
6
5
  from google.protobuf.internal import builder as _builder
7
6
  from google.protobuf import descriptor as _descriptor
8
7
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -17,43 +16,34 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
17
16
  from protoc_gen_swagger.options import annotations_pb2 as protoc__gen__swagger_dot_options_dot_annotations__pb2
18
17
 
19
18
 
20
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
21
- b'\n<scanoss/api/vulnerabilities/v2/scanoss-vulnerabilities.proto\x12\x1escanoss.api.vulnerabilities.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto"\x8d\x01\n\x14VulnerabilityRequest\x12I\n\x05purls\x18\x01 \x03(\x0b\x32:.scanoss.api.vulnerabilities.v2.VulnerabilityRequest.Purls\x1a*\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x13\n\x0brequirement\x18\x02 \x01(\t"\xab\x01\n\x0b\x43peResponse\x12@\n\x05purls\x18\x01 \x03(\x0b\x32\x31.scanoss.api.vulnerabilities.v2.CpeResponse.Purls\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a#\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x0c\n\x04\x63pes\x18\x02 \x03(\t"\xa3\x03\n\x15VulnerabilityResponse\x12J\n\x05purls\x18\x01 \x03(\x0b\x32;.scanoss.api.vulnerabilities.v2.VulnerabilityResponse.Purls\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a\x8f\x01\n\x0fVulnerabilities\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03\x63ve\x18\x02 \x01(\t\x12\x0b\n\x03url\x18\x03 \x01(\t\x12\x0f\n\x07summary\x18\x04 \x01(\t\x12\x10\n\x08severity\x18\x05 \x01(\t\x12\x11\n\tpublished\x18\x06 \x01(\t\x12\x10\n\x08modified\x18\x07 \x01(\t\x12\x0e\n\x06source\x18\x08 \x01(\t\x1au\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12^\n\x0fvulnerabilities\x18\x02 \x03(\x0b\x32\x45.scanoss.api.vulnerabilities.v2.VulnerabilityResponse.Vulnerabilities2\xdb\x03\n\x0fVulnerabilities\x12x\n\x04\x45\x63ho\x12".scanoss.api.common.v2.EchoRequest\x1a#.scanoss.api.common.v2.EchoResponse"\'\x82\xd3\xe4\x93\x02!"\x1c/api/v2/vulnerabilities/echo:\x01*\x12\x95\x01\n\x07GetCpes\x12\x34.scanoss.api.vulnerabilities.v2.VulnerabilityRequest\x1a+.scanoss.api.vulnerabilities.v2.CpeResponse"\'\x82\xd3\xe4\x93\x02!"\x1c/api/v2/vulnerabilities/cpes:\x01*\x12\xb5\x01\n\x12GetVulnerabilities\x12\x34.scanoss.api.vulnerabilities.v2.VulnerabilityRequest\x1a\x35.scanoss.api.vulnerabilities.v2.VulnerabilityResponse"2\x82\xd3\xe4\x93\x02,"\'/api/v2/vulnerabilities/vulnerabilities:\x01*B\xac\x02Z?github.com/scanoss/papi/api/vulnerabilitiesv2;vulnerabilitiesv2\x92\x41\xe7\x01\x12\x80\x01\n\x1dSCANOSS Vulnerability Service"Z\n\x17scanoss-vulnerabilities\x12*https://github.com/scanoss/vulnerabilities\x1a\x13support@scanoss.com2\x03\x32.0*\x01\x01\x32\x10\x61pplication/json:\x10\x61pplication/jsonR;\n\x03\x34\x30\x34\x12\x34\n*Returned when the resource does not exist.\x12\x06\n\x04\x9a\x02\x01\x07\x62\x06proto3'
22
- )
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n<scanoss/api/vulnerabilities/v2/scanoss-vulnerabilities.proto\x12\x1escanoss.api.vulnerabilities.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto\"\x8d\x01\n\x14VulnerabilityRequest\x12I\n\x05purls\x18\x01 \x03(\x0b\x32:.scanoss.api.vulnerabilities.v2.VulnerabilityRequest.Purls\x1a*\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x13\n\x0brequirement\x18\x02 \x01(\t\"\xab\x01\n\x0b\x43peResponse\x12@\n\x05purls\x18\x01 \x03(\x0b\x32\x31.scanoss.api.vulnerabilities.v2.CpeResponse.Purls\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a#\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x0c\n\x04\x63pes\x18\x02 \x03(\t\"\xa3\x03\n\x15VulnerabilityResponse\x12J\n\x05purls\x18\x01 \x03(\x0b\x32;.scanoss.api.vulnerabilities.v2.VulnerabilityResponse.Purls\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a\x8f\x01\n\x0fVulnerabilities\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03\x63ve\x18\x02 \x01(\t\x12\x0b\n\x03url\x18\x03 \x01(\t\x12\x0f\n\x07summary\x18\x04 \x01(\t\x12\x10\n\x08severity\x18\x05 \x01(\t\x12\x11\n\tpublished\x18\x06 \x01(\t\x12\x10\n\x08modified\x18\x07 \x01(\t\x12\x0e\n\x06source\x18\x08 \x01(\t\x1au\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12^\n\x0fvulnerabilities\x18\x02 \x03(\x0b\x32\x45.scanoss.api.vulnerabilities.v2.VulnerabilityResponse.Vulnerabilities2\xdb\x03\n\x0fVulnerabilities\x12x\n\x04\x45\x63ho\x12\".scanoss.api.common.v2.EchoRequest\x1a#.scanoss.api.common.v2.EchoResponse\"\'\x82\xd3\xe4\x93\x02!\"\x1c/api/v2/vulnerabilities/echo:\x01*\x12\x95\x01\n\x07GetCpes\x12\x34.scanoss.api.vulnerabilities.v2.VulnerabilityRequest\x1a+.scanoss.api.vulnerabilities.v2.CpeResponse\"\'\x82\xd3\xe4\x93\x02!\"\x1c/api/v2/vulnerabilities/cpes:\x01*\x12\xb5\x01\n\x12GetVulnerabilities\x12\x34.scanoss.api.vulnerabilities.v2.VulnerabilityRequest\x1a\x35.scanoss.api.vulnerabilities.v2.VulnerabilityResponse\"2\x82\xd3\xe4\x93\x02,\"\'/api/v2/vulnerabilities/vulnerabilities:\x01*B\xac\x02Z?github.com/scanoss/papi/api/vulnerabilitiesv2;vulnerabilitiesv2\x92\x41\xe7\x01\x12\x80\x01\n\x1dSCANOSS Vulnerability Service\"Z\n\x17scanoss-vulnerabilities\x12*https://github.com/scanoss/vulnerabilities\x1a\x13support@scanoss.com2\x03\x32.0*\x01\x01\x32\x10\x61pplication/json:\x10\x61pplication/jsonR;\n\x03\x34\x30\x34\x12\x34\n*Returned when the resource does not exist.\x12\x06\n\x04\x9a\x02\x01\x07\x62\x06proto3')
23
20
 
24
21
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
25
- _builder.BuildTopDescriptorsAndMessages(
26
- DESCRIPTOR, 'scanoss.api.vulnerabilities.v2.scanoss_vulnerabilities_pb2', globals()
27
- )
22
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scanoss.api.vulnerabilities.v2.scanoss_vulnerabilities_pb2', globals())
28
23
  if _descriptor._USE_C_DESCRIPTORS == False:
29
- DESCRIPTOR._options = None
30
- DESCRIPTOR._serialized_options = b'Z?github.com/scanoss/papi/api/vulnerabilitiesv2;vulnerabilitiesv2\222A\347\001\022\200\001\n\035SCANOSS Vulnerability Service"Z\n\027scanoss-vulnerabilities\022*https://github.com/scanoss/vulnerabilities\032\023support@scanoss.com2\0032.0*\001\0012\020application/json:\020application/jsonR;\n\003404\0224\n*Returned when the resource does not exist.\022\006\n\004\232\002\001\007'
31
- _VULNERABILITIES.methods_by_name['Echo']._options = None
32
- _VULNERABILITIES.methods_by_name[
33
- 'Echo'
34
- ]._serialized_options = b'\202\323\344\223\002!"\034/api/v2/vulnerabilities/echo:\001*'
35
- _VULNERABILITIES.methods_by_name['GetCpes']._options = None
36
- _VULNERABILITIES.methods_by_name[
37
- 'GetCpes'
38
- ]._serialized_options = b'\202\323\344\223\002!"\034/api/v2/vulnerabilities/cpes:\001*'
39
- _VULNERABILITIES.methods_by_name['GetVulnerabilities']._options = None
40
- _VULNERABILITIES.methods_by_name[
41
- 'GetVulnerabilities'
42
- ]._serialized_options = b'\202\323\344\223\002,"\'/api/v2/vulnerabilities/vulnerabilities:\001*'
43
- _VULNERABILITYREQUEST._serialized_start = 217
44
- _VULNERABILITYREQUEST._serialized_end = 358
45
- _VULNERABILITYREQUEST_PURLS._serialized_start = 316
46
- _VULNERABILITYREQUEST_PURLS._serialized_end = 358
47
- _CPERESPONSE._serialized_start = 361
48
- _CPERESPONSE._serialized_end = 532
49
- _CPERESPONSE_PURLS._serialized_start = 497
50
- _CPERESPONSE_PURLS._serialized_end = 532
51
- _VULNERABILITYRESPONSE._serialized_start = 535
52
- _VULNERABILITYRESPONSE._serialized_end = 954
53
- _VULNERABILITYRESPONSE_VULNERABILITIES._serialized_start = 692
54
- _VULNERABILITYRESPONSE_VULNERABILITIES._serialized_end = 835
55
- _VULNERABILITYRESPONSE_PURLS._serialized_start = 837
56
- _VULNERABILITYRESPONSE_PURLS._serialized_end = 954
57
- _VULNERABILITIES._serialized_start = 957
58
- _VULNERABILITIES._serialized_end = 1432
24
+
25
+ DESCRIPTOR._options = None
26
+ DESCRIPTOR._serialized_options = b'Z?github.com/scanoss/papi/api/vulnerabilitiesv2;vulnerabilitiesv2\222A\347\001\022\200\001\n\035SCANOSS Vulnerability Service\"Z\n\027scanoss-vulnerabilities\022*https://github.com/scanoss/vulnerabilities\032\023support@scanoss.com2\0032.0*\001\0012\020application/json:\020application/jsonR;\n\003404\0224\n*Returned when the resource does not exist.\022\006\n\004\232\002\001\007'
27
+ _VULNERABILITIES.methods_by_name['Echo']._options = None
28
+ _VULNERABILITIES.methods_by_name['Echo']._serialized_options = b'\202\323\344\223\002!\"\034/api/v2/vulnerabilities/echo:\001*'
29
+ _VULNERABILITIES.methods_by_name['GetCpes']._options = None
30
+ _VULNERABILITIES.methods_by_name['GetCpes']._serialized_options = b'\202\323\344\223\002!\"\034/api/v2/vulnerabilities/cpes:\001*'
31
+ _VULNERABILITIES.methods_by_name['GetVulnerabilities']._options = None
32
+ _VULNERABILITIES.methods_by_name['GetVulnerabilities']._serialized_options = b'\202\323\344\223\002,\"\'/api/v2/vulnerabilities/vulnerabilities:\001*'
33
+ _VULNERABILITYREQUEST._serialized_start=217
34
+ _VULNERABILITYREQUEST._serialized_end=358
35
+ _VULNERABILITYREQUEST_PURLS._serialized_start=316
36
+ _VULNERABILITYREQUEST_PURLS._serialized_end=358
37
+ _CPERESPONSE._serialized_start=361
38
+ _CPERESPONSE._serialized_end=532
39
+ _CPERESPONSE_PURLS._serialized_start=497
40
+ _CPERESPONSE_PURLS._serialized_end=532
41
+ _VULNERABILITYRESPONSE._serialized_start=535
42
+ _VULNERABILITYRESPONSE._serialized_end=954
43
+ _VULNERABILITYRESPONSE_VULNERABILITIES._serialized_start=692
44
+ _VULNERABILITYRESPONSE_VULNERABILITIES._serialized_end=835
45
+ _VULNERABILITYRESPONSE_PURLS._serialized_start=837
46
+ _VULNERABILITYRESPONSE_PURLS._serialized_end=954
47
+ _VULNERABILITIES._serialized_start=957
48
+ _VULNERABILITIES._serialized_end=1432
59
49
  # @@protoc_insertion_point(module_scope)
@@ -1,12 +1,9 @@
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
-
4
3
  import grpc
5
4
 
6
5
  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.vulnerabilities.v2 import (
8
- scanoss_vulnerabilities_pb2 as scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2,
9
- )
6
+ from scanoss.api.vulnerabilities.v2 import scanoss_vulnerabilities_pb2 as scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2
10
7
 
11
8
 
12
9
  class VulnerabilitiesStub(object):
@@ -21,20 +18,20 @@ class VulnerabilitiesStub(object):
21
18
  channel: A grpc.Channel.
22
19
  """
23
20
  self.Echo = channel.unary_unary(
24
- '/scanoss.api.vulnerabilities.v2.Vulnerabilities/Echo',
25
- request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
26
- response_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
27
- )
21
+ '/scanoss.api.vulnerabilities.v2.Vulnerabilities/Echo',
22
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
23
+ response_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
24
+ )
28
25
  self.GetCpes = channel.unary_unary(
29
- '/scanoss.api.vulnerabilities.v2.Vulnerabilities/GetCpes',
30
- request_serializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityRequest.SerializeToString,
31
- response_deserializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.CpeResponse.FromString,
32
- )
26
+ '/scanoss.api.vulnerabilities.v2.Vulnerabilities/GetCpes',
27
+ request_serializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityRequest.SerializeToString,
28
+ response_deserializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.CpeResponse.FromString,
29
+ )
33
30
  self.GetVulnerabilities = channel.unary_unary(
34
- '/scanoss.api.vulnerabilities.v2.Vulnerabilities/GetVulnerabilities',
35
- request_serializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityRequest.SerializeToString,
36
- response_deserializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityResponse.FromString,
37
- )
31
+ '/scanoss.api.vulnerabilities.v2.Vulnerabilities/GetVulnerabilities',
32
+ request_serializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityRequest.SerializeToString,
33
+ response_deserializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityResponse.FromString,
34
+ )
38
35
 
39
36
 
40
37
  class VulnerabilitiesServicer(object):
@@ -43,19 +40,22 @@ class VulnerabilitiesServicer(object):
43
40
  """
44
41
 
45
42
  def Echo(self, request, context):
46
- """Standard echo"""
43
+ """Standard echo
44
+ """
47
45
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
48
46
  context.set_details('Method not implemented!')
49
47
  raise NotImplementedError('Method not implemented!')
50
48
 
51
49
  def GetCpes(self, request, context):
52
- """Get CPEs associated with a PURL"""
50
+ """Get CPEs associated with a PURL
51
+ """
53
52
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
54
53
  context.set_details('Method not implemented!')
55
54
  raise NotImplementedError('Method not implemented!')
56
55
 
57
56
  def GetVulnerabilities(self, request, context):
58
- """Get vulnerability details"""
57
+ """Get vulnerability details
58
+ """
59
59
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
60
60
  context.set_details('Method not implemented!')
61
61
  raise NotImplementedError('Method not implemented!')
@@ -63,117 +63,80 @@ class VulnerabilitiesServicer(object):
63
63
 
64
64
  def add_VulnerabilitiesServicer_to_server(servicer, server):
65
65
  rpc_method_handlers = {
66
- 'Echo': grpc.unary_unary_rpc_method_handler(
67
- servicer.Echo,
68
- request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.FromString,
69
- response_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.SerializeToString,
70
- ),
71
- 'GetCpes': grpc.unary_unary_rpc_method_handler(
72
- servicer.GetCpes,
73
- request_deserializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityRequest.FromString,
74
- response_serializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.CpeResponse.SerializeToString,
75
- ),
76
- 'GetVulnerabilities': grpc.unary_unary_rpc_method_handler(
77
- servicer.GetVulnerabilities,
78
- request_deserializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityRequest.FromString,
79
- response_serializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityResponse.SerializeToString,
80
- ),
66
+ 'Echo': grpc.unary_unary_rpc_method_handler(
67
+ servicer.Echo,
68
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.FromString,
69
+ response_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.SerializeToString,
70
+ ),
71
+ 'GetCpes': grpc.unary_unary_rpc_method_handler(
72
+ servicer.GetCpes,
73
+ request_deserializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityRequest.FromString,
74
+ response_serializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.CpeResponse.SerializeToString,
75
+ ),
76
+ 'GetVulnerabilities': grpc.unary_unary_rpc_method_handler(
77
+ servicer.GetVulnerabilities,
78
+ request_deserializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityRequest.FromString,
79
+ response_serializer=scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityResponse.SerializeToString,
80
+ ),
81
81
  }
82
82
  generic_handler = grpc.method_handlers_generic_handler(
83
- 'scanoss.api.vulnerabilities.v2.Vulnerabilities', rpc_method_handlers
84
- )
83
+ 'scanoss.api.vulnerabilities.v2.Vulnerabilities', rpc_method_handlers)
85
84
  server.add_generic_rpc_handlers((generic_handler,))
86
85
 
87
86
 
88
- # This class is part of an EXPERIMENTAL API.
87
+ # This class is part of an EXPERIMENTAL API.
89
88
  class Vulnerabilities(object):
90
89
  """
91
90
  Expose all of the SCANOSS Vulnerability RPCs here
92
91
  """
93
92
 
94
93
  @staticmethod
95
- def Echo(
96
- request,
97
- target,
98
- options=(),
99
- channel_credentials=None,
100
- call_credentials=None,
101
- insecure=False,
102
- compression=None,
103
- wait_for_ready=None,
104
- timeout=None,
105
- metadata=None,
106
- ):
107
- return grpc.experimental.unary_unary(
108
- request,
94
+ def Echo(request,
109
95
  target,
110
- '/scanoss.api.vulnerabilities.v2.Vulnerabilities/Echo',
96
+ options=(),
97
+ channel_credentials=None,
98
+ call_credentials=None,
99
+ insecure=False,
100
+ compression=None,
101
+ wait_for_ready=None,
102
+ timeout=None,
103
+ metadata=None):
104
+ return grpc.experimental.unary_unary(request, target, '/scanoss.api.vulnerabilities.v2.Vulnerabilities/Echo',
111
105
  scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
112
106
  scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
113
- options,
114
- channel_credentials,
115
- insecure,
116
- call_credentials,
117
- compression,
118
- wait_for_ready,
119
- timeout,
120
- metadata,
121
- )
107
+ options, channel_credentials,
108
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
122
109
 
123
110
  @staticmethod
124
- def GetCpes(
125
- request,
126
- target,
127
- options=(),
128
- channel_credentials=None,
129
- call_credentials=None,
130
- insecure=False,
131
- compression=None,
132
- wait_for_ready=None,
133
- timeout=None,
134
- metadata=None,
135
- ):
136
- return grpc.experimental.unary_unary(
137
- request,
111
+ def GetCpes(request,
138
112
  target,
139
- '/scanoss.api.vulnerabilities.v2.Vulnerabilities/GetCpes',
113
+ options=(),
114
+ channel_credentials=None,
115
+ call_credentials=None,
116
+ insecure=False,
117
+ compression=None,
118
+ wait_for_ready=None,
119
+ timeout=None,
120
+ metadata=None):
121
+ return grpc.experimental.unary_unary(request, target, '/scanoss.api.vulnerabilities.v2.Vulnerabilities/GetCpes',
140
122
  scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityRequest.SerializeToString,
141
123
  scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.CpeResponse.FromString,
142
- options,
143
- channel_credentials,
144
- insecure,
145
- call_credentials,
146
- compression,
147
- wait_for_ready,
148
- timeout,
149
- metadata,
150
- )
124
+ options, channel_credentials,
125
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
151
126
 
152
127
  @staticmethod
153
- def GetVulnerabilities(
154
- request,
155
- target,
156
- options=(),
157
- channel_credentials=None,
158
- call_credentials=None,
159
- insecure=False,
160
- compression=None,
161
- wait_for_ready=None,
162
- timeout=None,
163
- metadata=None,
164
- ):
165
- return grpc.experimental.unary_unary(
166
- request,
128
+ def GetVulnerabilities(request,
167
129
  target,
168
- '/scanoss.api.vulnerabilities.v2.Vulnerabilities/GetVulnerabilities',
130
+ options=(),
131
+ channel_credentials=None,
132
+ call_credentials=None,
133
+ insecure=False,
134
+ compression=None,
135
+ wait_for_ready=None,
136
+ timeout=None,
137
+ metadata=None):
138
+ return grpc.experimental.unary_unary(request, target, '/scanoss.api.vulnerabilities.v2.Vulnerabilities/GetVulnerabilities',
169
139
  scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityRequest.SerializeToString,
170
140
  scanoss_dot_api_dot_vulnerabilities_dot_v2_dot_scanoss__vulnerabilities__pb2.VulnerabilityResponse.FromString,
171
- options,
172
- channel_credentials,
173
- insecure,
174
- call_credentials,
175
- compression,
176
- wait_for_ready,
177
- timeout,
178
- metadata,
179
- )
141
+ options, channel_credentials,
142
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)