scanoss 1.20.6__py3-none-any.whl → 1.22.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 (44) 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/provenance/v2/scanoss_provenance_pb2.py +20 -21
  15. scanoss/api/provenance/v2/scanoss_provenance_pb2_grpc.py +1 -1
  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 +384 -80
  23. scanoss/constants.py +12 -0
  24. scanoss/data/build_date.txt +1 -1
  25. scanoss/file_filters.py +272 -57
  26. scanoss/results.py +92 -109
  27. scanoss/scanners/__init__.py +23 -0
  28. scanoss/scanners/container_scanner.py +474 -0
  29. scanoss/scanners/folder_hasher.py +302 -0
  30. scanoss/scanners/scanner_config.py +73 -0
  31. scanoss/scanners/scanner_hfh.py +172 -0
  32. scanoss/scanoss_settings.py +9 -5
  33. scanoss/scanossbase.py +9 -3
  34. scanoss/scanossgrpc.py +124 -13
  35. scanoss/threadedscanning.py +6 -6
  36. scanoss/utils/abstract_presenter.py +103 -0
  37. scanoss/utils/crc64.py +96 -0
  38. scanoss/utils/simhash.py +198 -0
  39. {scanoss-1.20.6.dist-info → scanoss-1.22.0.dist-info}/METADATA +2 -1
  40. {scanoss-1.20.6.dist-info → scanoss-1.22.0.dist-info}/RECORD +44 -35
  41. {scanoss-1.20.6.dist-info → scanoss-1.22.0.dist-info}/WHEEL +1 -1
  42. {scanoss-1.20.6.dist-info → scanoss-1.22.0.dist-info}/entry_points.txt +0 -0
  43. {scanoss-1.20.6.dist-info → scanoss-1.22.0.dist-info}/licenses/LICENSE +0 -0
  44. {scanoss-1.20.6.dist-info → scanoss-1.22.0.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,11 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: scanoss/api/provenance/v2/scanoss-provenance.proto
4
- # Protobuf Python Version: 4.25.1
5
4
  """Generated protocol buffer code."""
5
+ from google.protobuf.internal import builder as _builder
6
6
  from google.protobuf import descriptor as _descriptor
7
7
  from google.protobuf import descriptor_pool as _descriptor_pool
8
8
  from google.protobuf import symbol_database as _symbol_database
9
- from google.protobuf.internal import builder as _builder
10
9
  # @@protoc_insertion_point(imports)
11
10
 
12
11
  _sym_db = _symbol_database.Default()
@@ -19,24 +18,24 @@ from protoc_gen_swagger.options import annotations_pb2 as protoc__gen__swagger_d
19
18
 
20
19
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2scanoss/api/provenance/v2/scanoss-provenance.proto\x12\x19scanoss.api.provenance.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto\"\xd5\x03\n\x12ProvenanceResponse\x12\x42\n\x05purls\x18\x01 \x03(\x0b\x32\x33.scanoss.api.provenance.v2.ProvenanceResponse.Purls\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a\x32\n\x10\x44\x65\x63laredLocation\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\x1a\x31\n\x0f\x43uratedLocation\x12\x0f\n\x07\x63ountry\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\x1a\xdc\x01\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12Z\n\x12\x64\x65\x63lared_locations\x18\x03 \x03(\x0b\x32>.scanoss.api.provenance.v2.ProvenanceResponse.DeclaredLocation\x12X\n\x11\x63urated_locations\x18\x04 \x03(\x0b\x32=.scanoss.api.provenance.v2.ProvenanceResponse.CuratedLocation2\x98\x02\n\nProvenance\x12s\n\x04\x45\x63ho\x12\".scanoss.api.common.v2.EchoRequest\x1a#.scanoss.api.common.v2.EchoResponse\"\"\x82\xd3\xe4\x93\x02\x1c\"\x17/api/v2/provenance/echo:\x01*\x12\x94\x01\n\x16GetComponentProvenance\x12\".scanoss.api.common.v2.PurlRequest\x1a-.scanoss.api.provenance.v2.ProvenanceResponse\"\'\x82\xd3\xe4\x93\x02!\"\x1c/api/v2/provenance/countries:\x01*B\x94\x02Z5github.com/scanoss/papi/api/provenancev2;provenancev2\x92\x41\xd9\x01\x12s\n\x1aSCANOSS Provenance Service\"P\n\x12scanoss-provenance\x12%https://github.com/scanoss/provenance\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')
21
20
 
22
- _globals = globals()
23
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
24
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scanoss.api.provenance.v2.scanoss_provenance_pb2', _globals)
21
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
22
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scanoss.api.provenance.v2.scanoss_provenance_pb2', globals())
25
23
  if _descriptor._USE_C_DESCRIPTORS == False:
26
- _globals['DESCRIPTOR']._options = None
27
- _globals['DESCRIPTOR']._serialized_options = b'Z5github.com/scanoss/papi/api/provenancev2;provenancev2\222A\331\001\022s\n\032SCANOSS Provenance Service\"P\n\022scanoss-provenance\022%https://github.com/scanoss/provenance\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'
28
- _globals['_PROVENANCE'].methods_by_name['Echo']._options = None
29
- _globals['_PROVENANCE'].methods_by_name['Echo']._serialized_options = b'\202\323\344\223\002\034\"\027/api/v2/provenance/echo:\001*'
30
- _globals['_PROVENANCE'].methods_by_name['GetComponentProvenance']._options = None
31
- _globals['_PROVENANCE'].methods_by_name['GetComponentProvenance']._serialized_options = b'\202\323\344\223\002!\"\034/api/v2/provenance/countries:\001*'
32
- _globals['_PROVENANCERESPONSE']._serialized_start=202
33
- _globals['_PROVENANCERESPONSE']._serialized_end=671
34
- _globals['_PROVENANCERESPONSE_DECLAREDLOCATION']._serialized_start=347
35
- _globals['_PROVENANCERESPONSE_DECLAREDLOCATION']._serialized_end=397
36
- _globals['_PROVENANCERESPONSE_CURATEDLOCATION']._serialized_start=399
37
- _globals['_PROVENANCERESPONSE_CURATEDLOCATION']._serialized_end=448
38
- _globals['_PROVENANCERESPONSE_PURLS']._serialized_start=451
39
- _globals['_PROVENANCERESPONSE_PURLS']._serialized_end=671
40
- _globals['_PROVENANCE']._serialized_start=674
41
- _globals['_PROVENANCE']._serialized_end=954
24
+
25
+ DESCRIPTOR._options = None
26
+ DESCRIPTOR._serialized_options = b'Z5github.com/scanoss/papi/api/provenancev2;provenancev2\222A\331\001\022s\n\032SCANOSS Provenance Service\"P\n\022scanoss-provenance\022%https://github.com/scanoss/provenance\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
+ _PROVENANCE.methods_by_name['Echo']._options = None
28
+ _PROVENANCE.methods_by_name['Echo']._serialized_options = b'\202\323\344\223\002\034\"\027/api/v2/provenance/echo:\001*'
29
+ _PROVENANCE.methods_by_name['GetComponentProvenance']._options = None
30
+ _PROVENANCE.methods_by_name['GetComponentProvenance']._serialized_options = b'\202\323\344\223\002!\"\034/api/v2/provenance/countries:\001*'
31
+ _PROVENANCERESPONSE._serialized_start=202
32
+ _PROVENANCERESPONSE._serialized_end=671
33
+ _PROVENANCERESPONSE_DECLAREDLOCATION._serialized_start=347
34
+ _PROVENANCERESPONSE_DECLAREDLOCATION._serialized_end=397
35
+ _PROVENANCERESPONSE_CURATEDLOCATION._serialized_start=399
36
+ _PROVENANCERESPONSE_CURATEDLOCATION._serialized_end=448
37
+ _PROVENANCERESPONSE_PURLS._serialized_start=451
38
+ _PROVENANCERESPONSE_PURLS._serialized_end=671
39
+ _PROVENANCE._serialized_start=674
40
+ _PROVENANCE._serialized_end=954
42
41
  # @@protoc_insertion_point(module_scope)
@@ -42,7 +42,7 @@ class ProvenanceServicer(object):
42
42
  raise NotImplementedError('Method not implemented!')
43
43
 
44
44
  def GetComponentProvenance(self, request, context):
45
- """Get Provenance countrues associated with a list of PURLs
45
+ """Get Provenance countries associated with a list of PURLs
46
46
  """
47
47
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
48
48
  context.set_details('Method not implemented!')
@@ -2,7 +2,6 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: scanoss/api/scanning/v2/scanoss-scanning.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,17 +16,28 @@ 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/scanning/v2/scanoss-scanning.proto\x12\x17scanoss.api.scanning.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto2}\n\x08Scanning\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/scanning/echo:\x01*B\x8a\x02Z1github.com/scanoss/papi/api/scanningv2;scanningv2\x92\x41\xd3\x01\x12m\n\x18SCANOSS Scanning Service"L\n\x10scanoss-scanning\x12#https://github.com/scanoss/scanning\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/scanning/v2/scanoss-scanning.proto\x12\x17scanoss.api.scanning.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto\"\xff\x01\n\nHFHRequest\x12\x12\n\nbest_match\x18\x01 \x01(\x08\x12\x11\n\tthreshold\x18\x02 \x01(\x05\x12:\n\x04root\x18\x03 \x01(\x0b\x32,.scanoss.api.scanning.v2.HFHRequest.Children\x1a\x8d\x01\n\x08\x43hildren\x12\x0f\n\x07path_id\x18\x01 \x01(\t\x12\x16\n\x0esim_hash_names\x18\x02 \x01(\t\x12\x18\n\x10sim_hash_content\x18\x03 \x01(\t\x12>\n\x08\x63hildren\x18\x04 \x03(\x0b\x32,.scanoss.api.scanning.v2.HFHRequest.Children\"\xc1\x02\n\x0bHFHResponse\x12<\n\x07results\x18\x01 \x03(\x0b\x32+.scanoss.api.scanning.v2.HFHResponse.Result\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a\x39\n\tComponent\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x10\n\x08versions\x18\x02 \x03(\t\x12\x0c\n\x04rank\x18\x03 \x01(\x05\x1a\x81\x01\n\x06Result\x12\x0f\n\x07path_id\x18\x01 \x01(\t\x12\x42\n\ncomponents\x18\x02 \x03(\x0b\x32..scanoss.api.scanning.v2.HFHResponse.Component\x12\x13\n\x0bprobability\x18\x03 \x01(\x02\x12\r\n\x05stage\x18\x04 \x01(\x05\x32\x81\x02\n\x08Scanning\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/scanning/echo:\x01*\x12\x81\x01\n\x0e\x46olderHashScan\x12#.scanoss.api.scanning.v2.HFHRequest\x1a$.scanoss.api.scanning.v2.HFHResponse\"$\x82\xd3\xe4\x93\x02\x1e\"\x19/api/v2/scanning/hfh/scan:\x01*B\x8a\x02Z1github.com/scanoss/papi/api/scanningv2;scanningv2\x92\x41\xd3\x01\x12m\n\x18SCANOSS Scanning Service\"L\n\x10scanoss-scanning\x12#https://github.com/scanoss/scanning\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
22
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scanoss.api.scanning.v2.scanoss_scanning_pb2', globals())
26
23
  if _descriptor._USE_C_DESCRIPTORS == False:
27
- DESCRIPTOR._options = None
28
- DESCRIPTOR._serialized_options = b'Z1github.com/scanoss/papi/api/scanningv2;scanningv2\222A\323\001\022m\n\030SCANOSS Scanning Service"L\n\020scanoss-scanning\022#https://github.com/scanoss/scanning\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'
29
- _SCANNING.methods_by_name['Echo']._options = None
30
- _SCANNING.methods_by_name['Echo']._serialized_options = b'\202\323\344\223\002\032"\025/api/v2/scanning/echo:\001*'
31
- _SCANNING._serialized_start = 195
32
- _SCANNING._serialized_end = 320
24
+
25
+ DESCRIPTOR._options = None
26
+ DESCRIPTOR._serialized_options = b'Z1github.com/scanoss/papi/api/scanningv2;scanningv2\222A\323\001\022m\n\030SCANOSS Scanning Service\"L\n\020scanoss-scanning\022#https://github.com/scanoss/scanning\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
+ _SCANNING.methods_by_name['Echo']._options = None
28
+ _SCANNING.methods_by_name['Echo']._serialized_options = b'\202\323\344\223\002\032\"\025/api/v2/scanning/echo:\001*'
29
+ _SCANNING.methods_by_name['FolderHashScan']._options = None
30
+ _SCANNING.methods_by_name['FolderHashScan']._serialized_options = b'\202\323\344\223\002\036\"\031/api/v2/scanning/hfh/scan:\001*'
31
+ _HFHREQUEST._serialized_start=196
32
+ _HFHREQUEST._serialized_end=451
33
+ _HFHREQUEST_CHILDREN._serialized_start=310
34
+ _HFHREQUEST_CHILDREN._serialized_end=451
35
+ _HFHRESPONSE._serialized_start=454
36
+ _HFHRESPONSE._serialized_end=775
37
+ _HFHRESPONSE_COMPONENT._serialized_start=586
38
+ _HFHRESPONSE_COMPONENT._serialized_end=643
39
+ _HFHRESPONSE_RESULT._serialized_start=646
40
+ _HFHRESPONSE_RESULT._serialized_end=775
41
+ _SCANNING._serialized_start=778
42
+ _SCANNING._serialized_end=1035
33
43
  # @@protoc_insertion_point(module_scope)
@@ -1,13 +1,15 @@
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
6
+ from scanoss.api.scanning.v2 import scanoss_scanning_pb2 as scanoss_dot_api_dot_scanning_dot_v2_dot_scanoss__scanning__pb2
7
7
 
8
8
 
9
9
  class ScanningStub(object):
10
- """Expose all of the SCANOSS Scanning RPCs here"""
10
+ """*
11
+ Expose all of the SCANOSS Scanning RPCs here
12
+ """
11
13
 
12
14
  def __init__(self, channel):
13
15
  """Constructor.
@@ -16,17 +18,32 @@ class ScanningStub(object):
16
18
  channel: A grpc.Channel.
17
19
  """
18
20
  self.Echo = channel.unary_unary(
19
- '/scanoss.api.scanning.v2.Scanning/Echo',
20
- request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
21
- response_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
22
- )
21
+ '/scanoss.api.scanning.v2.Scanning/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
+ )
25
+ self.FolderHashScan = channel.unary_unary(
26
+ '/scanoss.api.scanning.v2.Scanning/FolderHashScan',
27
+ request_serializer=scanoss_dot_api_dot_scanning_dot_v2_dot_scanoss__scanning__pb2.HFHRequest.SerializeToString,
28
+ response_deserializer=scanoss_dot_api_dot_scanning_dot_v2_dot_scanoss__scanning__pb2.HFHResponse.FromString,
29
+ )
23
30
 
24
31
 
25
32
  class ScanningServicer(object):
26
- """Expose all of the SCANOSS Scanning RPCs here"""
33
+ """*
34
+ Expose all of the SCANOSS Scanning RPCs here
35
+ """
27
36
 
28
37
  def Echo(self, request, context):
29
- """Standard echo"""
38
+ """Standard echo
39
+ """
40
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
41
+ context.set_details('Method not implemented!')
42
+ raise NotImplementedError('Method not implemented!')
43
+
44
+ def FolderHashScan(self, request, context):
45
+ """Scan the given folder request looking for matches
46
+ """
30
47
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
31
48
  context.set_details('Method not implemented!')
32
49
  raise NotImplementedError('Method not implemented!')
@@ -34,45 +51,58 @@ class ScanningServicer(object):
34
51
 
35
52
  def add_ScanningServicer_to_server(servicer, server):
36
53
  rpc_method_handlers = {
37
- 'Echo': grpc.unary_unary_rpc_method_handler(
38
- servicer.Echo,
39
- request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.FromString,
40
- response_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.SerializeToString,
41
- ),
54
+ 'Echo': grpc.unary_unary_rpc_method_handler(
55
+ servicer.Echo,
56
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.FromString,
57
+ response_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.SerializeToString,
58
+ ),
59
+ 'FolderHashScan': grpc.unary_unary_rpc_method_handler(
60
+ servicer.FolderHashScan,
61
+ request_deserializer=scanoss_dot_api_dot_scanning_dot_v2_dot_scanoss__scanning__pb2.HFHRequest.FromString,
62
+ response_serializer=scanoss_dot_api_dot_scanning_dot_v2_dot_scanoss__scanning__pb2.HFHResponse.SerializeToString,
63
+ ),
42
64
  }
43
- generic_handler = grpc.method_handlers_generic_handler('scanoss.api.scanning.v2.Scanning', rpc_method_handlers)
65
+ generic_handler = grpc.method_handlers_generic_handler(
66
+ 'scanoss.api.scanning.v2.Scanning', rpc_method_handlers)
44
67
  server.add_generic_rpc_handlers((generic_handler,))
45
68
 
46
69
 
47
- # This class is part of an EXPERIMENTAL API.
70
+ # This class is part of an EXPERIMENTAL API.
48
71
  class Scanning(object):
49
- """Expose all of the SCANOSS Scanning RPCs here"""
72
+ """*
73
+ Expose all of the SCANOSS Scanning RPCs here
74
+ """
50
75
 
51
76
  @staticmethod
52
- def Echo(
53
- request,
54
- target,
55
- options=(),
56
- channel_credentials=None,
57
- call_credentials=None,
58
- insecure=False,
59
- compression=None,
60
- wait_for_ready=None,
61
- timeout=None,
62
- metadata=None,
63
- ):
64
- return grpc.experimental.unary_unary(
65
- request,
77
+ def Echo(request,
66
78
  target,
67
- '/scanoss.api.scanning.v2.Scanning/Echo',
79
+ options=(),
80
+ channel_credentials=None,
81
+ call_credentials=None,
82
+ insecure=False,
83
+ compression=None,
84
+ wait_for_ready=None,
85
+ timeout=None,
86
+ metadata=None):
87
+ return grpc.experimental.unary_unary(request, target, '/scanoss.api.scanning.v2.Scanning/Echo',
68
88
  scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
69
89
  scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
70
- options,
71
- channel_credentials,
72
- insecure,
73
- call_credentials,
74
- compression,
75
- wait_for_ready,
76
- timeout,
77
- metadata,
78
- )
90
+ options, channel_credentials,
91
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
92
+
93
+ @staticmethod
94
+ def FolderHashScan(request,
95
+ target,
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.scanning.v2.Scanning/FolderHashScan',
105
+ scanoss_dot_api_dot_scanning_dot_v2_dot_scanoss__scanning__pb2.HFHRequest.SerializeToString,
106
+ scanoss_dot_api_dot_scanning_dot_v2_dot_scanoss__scanning__pb2.HFHResponse.FromString,
107
+ options, channel_credentials,
108
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -2,7 +2,6 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: scanoss/api/semgrep/v2/scanoss-semgrep.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,29 +16,26 @@ 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/semgrep/v2/scanoss-semgrep.proto\x12\x16scanoss.api.semgrep.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto"\x96\x03\n\x0fSemgrepResponse\x12<\n\x05purls\x18\x01 \x03(\x0b\x32-.scanoss.api.semgrep.v2.SemgrepResponse.Purls\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a\x43\n\x05Issue\x12\x0e\n\x06ruleID\x18\x01 \x01(\t\x12\x0c\n\x04\x66rom\x18\x02 \x01(\t\x12\n\n\x02to\x18\x03 \x01(\t\x12\x10\n\x08severity\x18\x04 \x01(\t\x1a\x64\n\x04\x46ile\x12\x0f\n\x07\x66ileMD5\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12=\n\x06issues\x18\x03 \x03(\x0b\x32-.scanoss.api.semgrep.v2.SemgrepResponse.Issue\x1a\x63\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12;\n\x05\x66iles\x18\x03 \x03(\x0b\x32,.scanoss.api.semgrep.v2.SemgrepResponse.File2\xf8\x01\n\x07Semgrep\x12p\n\x04\x45\x63ho\x12".scanoss.api.common.v2.EchoRequest\x1a#.scanoss.api.common.v2.EchoResponse"\x1f\x82\xd3\xe4\x93\x02\x19"\x14/api/v2/semgrep/echo:\x01*\x12{\n\tGetIssues\x12".scanoss.api.common.v2.PurlRequest\x1a\'.scanoss.api.semgrep.v2.SemgrepResponse"!\x82\xd3\xe4\x93\x02\x1b"\x16/api/v2/semgrep/issues:\x01*B\x85\x02Z/github.com/scanoss/papi/api/semgrepv2;semgrepv2\x92\x41\xd0\x01\x12j\n\x17SCANOSS Semgrep Service"J\n\x0fscanoss-semgrep\x12"https://github.com/scanoss/semgrep\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/semgrep/v2/scanoss-semgrep.proto\x12\x16scanoss.api.semgrep.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto\"\x96\x03\n\x0fSemgrepResponse\x12<\n\x05purls\x18\x01 \x03(\x0b\x32-.scanoss.api.semgrep.v2.SemgrepResponse.Purls\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a\x43\n\x05Issue\x12\x0e\n\x06ruleID\x18\x01 \x01(\t\x12\x0c\n\x04\x66rom\x18\x02 \x01(\t\x12\n\n\x02to\x18\x03 \x01(\t\x12\x10\n\x08severity\x18\x04 \x01(\t\x1a\x64\n\x04\x46ile\x12\x0f\n\x07\x66ileMD5\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12=\n\x06issues\x18\x03 \x03(\x0b\x32-.scanoss.api.semgrep.v2.SemgrepResponse.Issue\x1a\x63\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12;\n\x05\x66iles\x18\x03 \x03(\x0b\x32,.scanoss.api.semgrep.v2.SemgrepResponse.File2\xf8\x01\n\x07Semgrep\x12p\n\x04\x45\x63ho\x12\".scanoss.api.common.v2.EchoRequest\x1a#.scanoss.api.common.v2.EchoResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\"\x14/api/v2/semgrep/echo:\x01*\x12{\n\tGetIssues\x12\".scanoss.api.common.v2.PurlRequest\x1a\'.scanoss.api.semgrep.v2.SemgrepResponse\"!\x82\xd3\xe4\x93\x02\x1b\"\x16/api/v2/semgrep/issues:\x01*B\x85\x02Z/github.com/scanoss/papi/api/semgrepv2;semgrepv2\x92\x41\xd0\x01\x12j\n\x17SCANOSS Semgrep Service\"J\n\x0fscanoss-semgrep\x12\"https://github.com/scanoss/semgrep\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
22
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scanoss.api.semgrep.v2.scanoss_semgrep_pb2', globals())
26
23
  if _descriptor._USE_C_DESCRIPTORS == False:
27
- DESCRIPTOR._options = None
28
- DESCRIPTOR._serialized_options = b'Z/github.com/scanoss/papi/api/semgrepv2;semgrepv2\222A\320\001\022j\n\027SCANOSS Semgrep Service"J\n\017scanoss-semgrep\022"https://github.com/scanoss/semgrep\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'
29
- _SEMGREP.methods_by_name['Echo']._options = None
30
- _SEMGREP.methods_by_name['Echo']._serialized_options = b'\202\323\344\223\002\031"\024/api/v2/semgrep/echo:\001*'
31
- _SEMGREP.methods_by_name['GetIssues']._options = None
32
- _SEMGREP.methods_by_name[
33
- 'GetIssues'
34
- ]._serialized_options = b'\202\323\344\223\002\033"\026/api/v2/semgrep/issues:\001*'
35
- _SEMGREPRESPONSE._serialized_start = 193
36
- _SEMGREPRESPONSE._serialized_end = 599
37
- _SEMGREPRESPONSE_ISSUE._serialized_start = 329
38
- _SEMGREPRESPONSE_ISSUE._serialized_end = 396
39
- _SEMGREPRESPONSE_FILE._serialized_start = 398
40
- _SEMGREPRESPONSE_FILE._serialized_end = 498
41
- _SEMGREPRESPONSE_PURLS._serialized_start = 500
42
- _SEMGREPRESPONSE_PURLS._serialized_end = 599
43
- _SEMGREP._serialized_start = 602
44
- _SEMGREP._serialized_end = 850
24
+
25
+ DESCRIPTOR._options = None
26
+ DESCRIPTOR._serialized_options = b'Z/github.com/scanoss/papi/api/semgrepv2;semgrepv2\222A\320\001\022j\n\027SCANOSS Semgrep Service\"J\n\017scanoss-semgrep\022\"https://github.com/scanoss/semgrep\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
+ _SEMGREP.methods_by_name['Echo']._options = None
28
+ _SEMGREP.methods_by_name['Echo']._serialized_options = b'\202\323\344\223\002\031\"\024/api/v2/semgrep/echo:\001*'
29
+ _SEMGREP.methods_by_name['GetIssues']._options = None
30
+ _SEMGREP.methods_by_name['GetIssues']._serialized_options = b'\202\323\344\223\002\033\"\026/api/v2/semgrep/issues:\001*'
31
+ _SEMGREPRESPONSE._serialized_start=193
32
+ _SEMGREPRESPONSE._serialized_end=599
33
+ _SEMGREPRESPONSE_ISSUE._serialized_start=329
34
+ _SEMGREPRESPONSE_ISSUE._serialized_end=396
35
+ _SEMGREPRESPONSE_FILE._serialized_start=398
36
+ _SEMGREPRESPONSE_FILE._serialized_end=498
37
+ _SEMGREPRESPONSE_PURLS._serialized_start=500
38
+ _SEMGREPRESPONSE_PURLS._serialized_end=599
39
+ _SEMGREP._serialized_start=602
40
+ _SEMGREP._serialized_end=850
45
41
  # @@protoc_insertion_point(module_scope)
@@ -1,6 +1,5 @@
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
@@ -19,15 +18,15 @@ class SemgrepStub(object):
19
18
  channel: A grpc.Channel.
20
19
  """
21
20
  self.Echo = channel.unary_unary(
22
- '/scanoss.api.semgrep.v2.Semgrep/Echo',
23
- request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
24
- response_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
25
- )
21
+ '/scanoss.api.semgrep.v2.Semgrep/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
+ )
26
25
  self.GetIssues = channel.unary_unary(
27
- '/scanoss.api.semgrep.v2.Semgrep/GetIssues',
28
- request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
29
- response_deserializer=scanoss_dot_api_dot_semgrep_dot_v2_dot_scanoss__semgrep__pb2.SemgrepResponse.FromString,
30
- )
26
+ '/scanoss.api.semgrep.v2.Semgrep/GetIssues',
27
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
28
+ response_deserializer=scanoss_dot_api_dot_semgrep_dot_v2_dot_scanoss__semgrep__pb2.SemgrepResponse.FromString,
29
+ )
31
30
 
32
31
 
33
32
  class SemgrepServicer(object):
@@ -36,13 +35,15 @@ class SemgrepServicer(object):
36
35
  """
37
36
 
38
37
  def Echo(self, request, context):
39
- """Standard echo"""
38
+ """Standard echo
39
+ """
40
40
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
41
41
  context.set_details('Method not implemented!')
42
42
  raise NotImplementedError('Method not implemented!')
43
43
 
44
44
  def GetIssues(self, request, context):
45
- """Get Potential issues associated with a list of PURLs"""
45
+ """Get Potential issues associated with a list of PURLs
46
+ """
46
47
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
47
48
  context.set_details('Method not implemented!')
48
49
  raise NotImplementedError('Method not implemented!')
@@ -50,81 +51,58 @@ class SemgrepServicer(object):
50
51
 
51
52
  def add_SemgrepServicer_to_server(servicer, server):
52
53
  rpc_method_handlers = {
53
- 'Echo': grpc.unary_unary_rpc_method_handler(
54
- servicer.Echo,
55
- request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.FromString,
56
- response_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.SerializeToString,
57
- ),
58
- 'GetIssues': grpc.unary_unary_rpc_method_handler(
59
- servicer.GetIssues,
60
- request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
61
- response_serializer=scanoss_dot_api_dot_semgrep_dot_v2_dot_scanoss__semgrep__pb2.SemgrepResponse.SerializeToString,
62
- ),
54
+ 'Echo': grpc.unary_unary_rpc_method_handler(
55
+ servicer.Echo,
56
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.FromString,
57
+ response_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.SerializeToString,
58
+ ),
59
+ 'GetIssues': grpc.unary_unary_rpc_method_handler(
60
+ servicer.GetIssues,
61
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
62
+ response_serializer=scanoss_dot_api_dot_semgrep_dot_v2_dot_scanoss__semgrep__pb2.SemgrepResponse.SerializeToString,
63
+ ),
63
64
  }
64
- generic_handler = grpc.method_handlers_generic_handler('scanoss.api.semgrep.v2.Semgrep', rpc_method_handlers)
65
+ generic_handler = grpc.method_handlers_generic_handler(
66
+ 'scanoss.api.semgrep.v2.Semgrep', rpc_method_handlers)
65
67
  server.add_generic_rpc_handlers((generic_handler,))
66
68
 
67
69
 
68
- # This class is part of an EXPERIMENTAL API.
70
+ # This class is part of an EXPERIMENTAL API.
69
71
  class Semgrep(object):
70
72
  """
71
73
  Expose all of the SCANOSS Cryptography RPCs here
72
74
  """
73
75
 
74
76
  @staticmethod
75
- def Echo(
76
- request,
77
- target,
78
- options=(),
79
- channel_credentials=None,
80
- call_credentials=None,
81
- insecure=False,
82
- compression=None,
83
- wait_for_ready=None,
84
- timeout=None,
85
- metadata=None,
86
- ):
87
- return grpc.experimental.unary_unary(
88
- request,
77
+ def Echo(request,
89
78
  target,
90
- '/scanoss.api.semgrep.v2.Semgrep/Echo',
79
+ options=(),
80
+ channel_credentials=None,
81
+ call_credentials=None,
82
+ insecure=False,
83
+ compression=None,
84
+ wait_for_ready=None,
85
+ timeout=None,
86
+ metadata=None):
87
+ return grpc.experimental.unary_unary(request, target, '/scanoss.api.semgrep.v2.Semgrep/Echo',
91
88
  scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
92
89
  scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
93
- options,
94
- channel_credentials,
95
- insecure,
96
- call_credentials,
97
- compression,
98
- wait_for_ready,
99
- timeout,
100
- metadata,
101
- )
90
+ options, channel_credentials,
91
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
102
92
 
103
93
  @staticmethod
104
- def GetIssues(
105
- request,
106
- target,
107
- options=(),
108
- channel_credentials=None,
109
- call_credentials=None,
110
- insecure=False,
111
- compression=None,
112
- wait_for_ready=None,
113
- timeout=None,
114
- metadata=None,
115
- ):
116
- return grpc.experimental.unary_unary(
117
- request,
94
+ def GetIssues(request,
118
95
  target,
119
- '/scanoss.api.semgrep.v2.Semgrep/GetIssues',
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.semgrep.v2.Semgrep/GetIssues',
120
105
  scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
121
106
  scanoss_dot_api_dot_semgrep_dot_v2_dot_scanoss__semgrep__pb2.SemgrepResponse.FromString,
122
- options,
123
- channel_credentials,
124
- insecure,
125
- call_credentials,
126
- compression,
127
- wait_for_ready,
128
- timeout,
129
- metadata,
130
- )
107
+ options, channel_credentials,
108
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -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)