scanoss 1.20.5__tar.gz → 1.22.0__tar.gz
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-1.20.5/src/scanoss.egg-info → scanoss-1.22.0}/PKG-INFO +4 -2
- {scanoss-1.20.5 → scanoss-1.22.0}/pyproject.toml +6 -1
- {scanoss-1.20.5 → scanoss-1.22.0}/setup.cfg +1 -0
- scanoss-1.22.0/src/protoc_gen_swagger/options/annotations_pb2.py +31 -0
- scanoss-1.22.0/src/protoc_gen_swagger/options/openapiv2_pb2.py +118 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/__init__.py +1 -1
- scanoss-1.22.0/src/scanoss/api/common/v2/scanoss_common_pb2.py +38 -0
- scanoss-1.22.0/src/scanoss/api/components/v2/scanoss_components_pb2.py +61 -0
- scanoss-1.22.0/src/scanoss/api/components/v2/scanoss_components_pb2_grpc.py +176 -0
- scanoss-1.22.0/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py +65 -0
- scanoss-1.22.0/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +244 -0
- scanoss-1.22.0/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +55 -0
- scanoss-1.22.0/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +142 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/provenance/v2/scanoss_provenance_pb2.py +20 -21
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/provenance/v2/scanoss_provenance_pb2_grpc.py +1 -1
- scanoss-1.22.0/src/scanoss/api/scanning/v2/scanoss_scanning_pb2.py +43 -0
- scanoss-1.22.0/src/scanoss/api/scanning/v2/scanoss_scanning_pb2_grpc.py +108 -0
- scanoss-1.22.0/src/scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +41 -0
- scanoss-1.22.0/src/scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +108 -0
- scanoss-1.22.0/src/scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +49 -0
- scanoss-1.22.0/src/scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py +142 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/cli.py +417 -74
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/components.py +5 -3
- scanoss-1.22.0/src/scanoss/constants.py +12 -0
- scanoss-1.22.0/src/scanoss/data/build_date.txt +1 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/file_filters.py +272 -57
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/results.py +92 -109
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/scanner.py +25 -20
- scanoss-1.22.0/src/scanoss/scanners/__init__.py +23 -0
- scanoss-1.22.0/src/scanoss/scanners/container_scanner.py +474 -0
- scanoss-1.22.0/src/scanoss/scanners/folder_hasher.py +302 -0
- scanoss-1.22.0/src/scanoss/scanners/scanner_config.py +73 -0
- scanoss-1.22.0/src/scanoss/scanners/scanner_hfh.py +172 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/scanoss_settings.py +9 -5
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/scanossapi.py +29 -7
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/scanossbase.py +9 -3
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/scanossgrpc.py +145 -13
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/threadedscanning.py +6 -6
- scanoss-1.22.0/src/scanoss/utils/abstract_presenter.py +103 -0
- scanoss-1.22.0/src/scanoss/utils/crc64.py +96 -0
- scanoss-1.22.0/src/scanoss/utils/simhash.py +198 -0
- {scanoss-1.20.5 → scanoss-1.22.0/src/scanoss.egg-info}/PKG-INFO +4 -2
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss.egg-info/SOURCES.txt +9 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss.egg-info/requires.txt +1 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/tests/test_file_filters.py +4 -5
- scanoss-1.20.5/src/protoc_gen_swagger/options/annotations_pb2.py +0 -34
- scanoss-1.20.5/src/protoc_gen_swagger/options/openapiv2_pb2.py +0 -120
- scanoss-1.20.5/src/scanoss/api/common/v2/scanoss_common_pb2.py +0 -36
- scanoss-1.20.5/src/scanoss/api/components/v2/scanoss_components_pb2.py +0 -71
- scanoss-1.20.5/src/scanoss/api/components/v2/scanoss_components_pb2_grpc.py +0 -222
- scanoss-1.20.5/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py +0 -45
- scanoss-1.20.5/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +0 -134
- scanoss-1.20.5/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +0 -53
- scanoss-1.20.5/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +0 -134
- scanoss-1.20.5/src/scanoss/api/scanning/v2/scanoss_scanning_pb2.py +0 -33
- scanoss-1.20.5/src/scanoss/api/scanning/v2/scanoss_scanning_pb2_grpc.py +0 -78
- scanoss-1.20.5/src/scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +0 -45
- scanoss-1.20.5/src/scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +0 -130
- scanoss-1.20.5/src/scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +0 -59
- scanoss-1.20.5/src/scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py +0 -179
- scanoss-1.20.5/src/scanoss/data/build_date.txt +0 -1
- {scanoss-1.20.5 → scanoss-1.22.0}/LICENSE +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/PACKAGE.md +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/README.md +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/protoc_gen_swagger/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/protoc_gen_swagger/options/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/protoc_gen_swagger/options/annotations_pb2_grpc.py +1 -1
- {scanoss-1.20.5 → scanoss-1.22.0}/src/protoc_gen_swagger/options/openapiv2_pb2_grpc.py +1 -1
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/common/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/common/v2/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/common/v2/scanoss_common_pb2_grpc.py +1 -1
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/components/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/components/v2/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/dependencies/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/dependencies/v2/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/provenance/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/provenance/v2/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/scanning/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/scanning/v2/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/semgrep/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/semgrep/v2/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/vulnerabilities/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/api/vulnerabilities/v2/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/csvoutput.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/cyclonedx.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/data/scanoss-settings-schema.json +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/data/spdx-exceptions.json +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/data/spdx-licenses.json +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/filecount.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/inspection/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/inspection/copyleft.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/inspection/policy_check.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/inspection/undeclared_component.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/inspection/utils/license_utils.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/scancodedeps.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/scanpostprocessor.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/scantype.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/spdxlite.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/threadeddependencies.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/utils/__init__.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/utils/file.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss/winnowing.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss.egg-info/dependency_links.txt +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss.egg-info/entry_points.txt +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/src/scanoss.egg-info/top_level.txt +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/tests/test_csv_output.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/tests/test_policy_inspect.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/tests/test_scan_post_processor.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/tests/test_spdxlite.py +0 -0
- {scanoss-1.20.5 → scanoss-1.22.0}/tests/test_winnowing.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: scanoss
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.22.0
|
|
4
4
|
Summary: Simple Python library to leverage the SCANOSS APIs
|
|
5
5
|
Home-page: https://scanoss.com
|
|
6
6
|
Author: SCANOSS
|
|
@@ -29,8 +29,10 @@ Requires-Dist: importlib_resources
|
|
|
29
29
|
Requires-Dist: packageurl-python
|
|
30
30
|
Requires-Dist: pathspec
|
|
31
31
|
Requires-Dist: jsonschema
|
|
32
|
+
Requires-Dist: crc
|
|
32
33
|
Provides-Extra: fast-winnowing
|
|
33
34
|
Requires-Dist: scanoss_winnowing>=0.5.0; extra == "fast-winnowing"
|
|
35
|
+
Dynamic: license-file
|
|
34
36
|
|
|
35
37
|
# SCANOSS Python Package
|
|
36
38
|
The SCANOSS python package provides a simple easy to consume library for interacting with SCANOSS APIs/Engine.
|
|
@@ -8,7 +8,12 @@ select = ["E", "F", "I", "PL"]
|
|
|
8
8
|
line-length = 120
|
|
9
9
|
# Assume Python 3.7+
|
|
10
10
|
target-version = "py37"
|
|
11
|
-
exclude = [
|
|
11
|
+
exclude = [
|
|
12
|
+
"tests/*",
|
|
13
|
+
"test_*.py",
|
|
14
|
+
"src/protoc_gen_swagger/*",
|
|
15
|
+
"src/scanoss/api/*",
|
|
16
|
+
]
|
|
12
17
|
|
|
13
18
|
[tool.ruff.format]
|
|
14
19
|
quote-style = "single"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: protoc-gen-swagger/options/annotations.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
|
15
|
+
from protoc_gen_swagger.options import openapiv2_pb2 as protoc__gen__swagger_dot_options_dot_openapiv2__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,protoc-gen-swagger/options/annotations.proto\x12\'grpc.gateway.protoc_gen_swagger.options\x1a google/protobuf/descriptor.proto\x1a*protoc-gen-swagger/options/openapiv2.proto:j\n\x11openapiv2_swagger\x12\x1c.google.protobuf.FileOptions\x18\x92\x08 \x01(\x0b\x32\x30.grpc.gateway.protoc_gen_swagger.options.Swagger:p\n\x13openapiv2_operation\x12\x1e.google.protobuf.MethodOptions\x18\x92\x08 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_swagger.options.Operation:k\n\x10openapiv2_schema\x12\x1f.google.protobuf.MessageOptions\x18\x92\x08 \x01(\x0b\x32/.grpc.gateway.protoc_gen_swagger.options.Schema:e\n\ropenapiv2_tag\x12\x1f.google.protobuf.ServiceOptions\x18\x92\x08 \x01(\x0b\x32,.grpc.gateway.protoc_gen_swagger.options.Tag:l\n\x0fopenapiv2_field\x12\x1d.google.protobuf.FieldOptions\x18\x92\x08 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_swagger.options.JSONSchemaBCZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/optionsb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protoc_gen_swagger.options.annotations_pb2', globals())
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(openapiv2_swagger)
|
|
24
|
+
google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(openapiv2_operation)
|
|
25
|
+
google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(openapiv2_schema)
|
|
26
|
+
google_dot_protobuf_dot_descriptor__pb2.ServiceOptions.RegisterExtension(openapiv2_tag)
|
|
27
|
+
google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(openapiv2_field)
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR._options = None
|
|
30
|
+
DESCRIPTOR._serialized_options = b'ZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options'
|
|
31
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: protoc-gen-swagger/options/openapiv2.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
|
15
|
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*protoc-gen-swagger/options/openapiv2.proto\x12\'grpc.gateway.protoc_gen_swagger.options\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa0\x07\n\x07Swagger\x12\x0f\n\x07swagger\x18\x01 \x01(\t\x12;\n\x04info\x18\x02 \x01(\x0b\x32-.grpc.gateway.protoc_gen_swagger.options.Info\x12\x0c\n\x04host\x18\x03 \x01(\t\x12\x11\n\tbase_path\x18\x04 \x01(\t\x12O\n\x07schemes\x18\x05 \x03(\x0e\x32>.grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme\x12\x10\n\x08\x63onsumes\x18\x06 \x03(\t\x12\x10\n\x08produces\x18\x07 \x03(\t\x12R\n\tresponses\x18\n \x03(\x0b\x32?.grpc.gateway.protoc_gen_swagger.options.Swagger.ResponsesEntry\x12Z\n\x14security_definitions\x18\x0b \x01(\x0b\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions\x12N\n\x08security\x18\x0c \x03(\x0b\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement\x12U\n\rexternal_docs\x18\x0e \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation\x12T\n\nextensions\x18\x0f \x03(\x0b\x32@.grpc.gateway.protoc_gen_swagger.options.Swagger.ExtensionsEntry\x1a\x63\n\x0eResponsesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_swagger.options.Response:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"B\n\rSwaggerScheme\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04HTTP\x10\x01\x12\t\n\x05HTTPS\x10\x02\x12\x06\n\x02WS\x10\x03\x12\x07\n\x03WSS\x10\x04J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\r\x10\x0e\"\xa9\x05\n\tOperation\x12\x0c\n\x04tags\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12U\n\rexternal_docs\x18\x04 \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation\x12\x14\n\x0coperation_id\x18\x05 \x01(\t\x12\x10\n\x08\x63onsumes\x18\x06 \x03(\t\x12\x10\n\x08produces\x18\x07 \x03(\t\x12T\n\tresponses\x18\t \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_swagger.options.Operation.ResponsesEntry\x12\x0f\n\x07schemes\x18\n \x03(\t\x12\x12\n\ndeprecated\x18\x0b \x01(\x08\x12N\n\x08security\x18\x0c \x03(\x0b\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement\x12V\n\nextensions\x18\r \x03(\x0b\x32\x42.grpc.gateway.protoc_gen_swagger.options.Operation.ExtensionsEntry\x1a\x63\n\x0eResponsesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_swagger.options.Response:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01J\x04\x08\x08\x10\t\"\xab\x01\n\x06Header\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x06 \x01(\t\x12\x0f\n\x07pattern\x18\r \x01(\tJ\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x07\x10\x08J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0bJ\x04\x08\x0b\x10\x0cJ\x04\x08\x0c\x10\rJ\x04\x08\x0e\x10\x0fJ\x04\x08\x0f\x10\x10J\x04\x08\x10\x10\x11J\x04\x08\x11\x10\x12J\x04\x08\x12\x10\x13\"\xb8\x04\n\x08Response\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12?\n\x06schema\x18\x02 \x01(\x0b\x32/.grpc.gateway.protoc_gen_swagger.options.Schema\x12O\n\x07headers\x18\x03 \x03(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.Response.HeadersEntry\x12Q\n\x08\x65xamples\x18\x04 \x03(\x0b\x32?.grpc.gateway.protoc_gen_swagger.options.Response.ExamplesEntry\x12U\n\nextensions\x18\x05 \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_swagger.options.Response.ExtensionsEntry\x1a_\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.grpc.gateway.protoc_gen_swagger.options.Header:\x02\x38\x01\x1a/\n\rExamplesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"\xf9\x02\n\x04Info\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x18\n\x10terms_of_service\x18\x03 \x01(\t\x12\x41\n\x07\x63ontact\x18\x04 \x01(\x0b\x32\x30.grpc.gateway.protoc_gen_swagger.options.Contact\x12\x41\n\x07license\x18\x05 \x01(\x0b\x32\x30.grpc.gateway.protoc_gen_swagger.options.License\x12\x0f\n\x07version\x18\x06 \x01(\t\x12Q\n\nextensions\x18\x07 \x03(\x0b\x32=.grpc.gateway.protoc_gen_swagger.options.Info.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"3\n\x07\x43ontact\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\r\n\x05\x65mail\x18\x03 \x01(\t\"$\n\x07License\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"9\n\x15\x45xternalDocumentation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x9c\x02\n\x06Schema\x12H\n\x0bjson_schema\x18\x01 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_swagger.options.JSONSchema\x12\x15\n\rdiscriminator\x18\x02 \x01(\t\x12\x11\n\tread_only\x18\x03 \x01(\x08\x12U\n\rexternal_docs\x18\x05 \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation\x12)\n\x07\x65xample\x18\x06 \x01(\x0b\x32\x14.google.protobuf.AnyB\x02\x18\x01\x12\x16\n\x0e\x65xample_string\x18\x07 \x01(\tJ\x04\x08\x04\x10\x05\"\xe3\x05\n\nJSONSchema\x12\x0b\n\x03ref\x18\x03 \x01(\t\x12\r\n\x05title\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x07 \x01(\t\x12\x11\n\tread_only\x18\x08 \x01(\x08\x12\x0f\n\x07\x65xample\x18\t \x01(\t\x12\x13\n\x0bmultiple_of\x18\n \x01(\x01\x12\x0f\n\x07maximum\x18\x0b \x01(\x01\x12\x19\n\x11\x65xclusive_maximum\x18\x0c \x01(\x08\x12\x0f\n\x07minimum\x18\r \x01(\x01\x12\x19\n\x11\x65xclusive_minimum\x18\x0e \x01(\x08\x12\x12\n\nmax_length\x18\x0f \x01(\x04\x12\x12\n\nmin_length\x18\x10 \x01(\x04\x12\x0f\n\x07pattern\x18\x11 \x01(\t\x12\x11\n\tmax_items\x18\x14 \x01(\x04\x12\x11\n\tmin_items\x18\x15 \x01(\x04\x12\x14\n\x0cunique_items\x18\x16 \x01(\x08\x12\x16\n\x0emax_properties\x18\x18 \x01(\x04\x12\x16\n\x0emin_properties\x18\x19 \x01(\x04\x12\x10\n\x08required\x18\x1a \x03(\t\x12\r\n\x05\x61rray\x18\" \x03(\t\x12W\n\x04type\x18# \x03(\x0e\x32I.grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes\x12\x0e\n\x06\x66ormat\x18$ \x01(\t\x12\x0c\n\x04\x65num\x18. \x03(\t\"w\n\x15JSONSchemaSimpleTypes\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41RRAY\x10\x01\x12\x0b\n\x07\x42OOLEAN\x10\x02\x12\x0b\n\x07INTEGER\x10\x03\x12\x08\n\x04NULL\x10\x04\x12\n\n\x06NUMBER\x10\x05\x12\n\n\x06OBJECT\x10\x06\x12\n\n\x06STRING\x10\x07J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x04\x10\x05J\x04\x08\x12\x10\x13J\x04\x08\x13\x10\x14J\x04\x08\x17\x10\x18J\x04\x08\x1b\x10\x1cJ\x04\x08\x1c\x10\x1dJ\x04\x08\x1d\x10\x1eJ\x04\x08\x1e\x10\"J\x04\x08%\x10*J\x04\x08*\x10+J\x04\x08+\x10.\"w\n\x03Tag\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12U\n\rexternal_docs\x18\x03 \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentationJ\x04\x08\x01\x10\x02\"\xdd\x01\n\x13SecurityDefinitions\x12\\\n\x08security\x18\x01 \x03(\x0b\x32J.grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions.SecurityEntry\x1ah\n\rSecurityEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.grpc.gateway.protoc_gen_swagger.options.SecurityScheme:\x02\x38\x01\"\x96\x06\n\x0eSecurityScheme\x12J\n\x04type\x18\x01 \x01(\x0e\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x46\n\x02in\x18\x04 \x01(\x0e\x32:.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In\x12J\n\x04\x66low\x18\x05 \x01(\x0e\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow\x12\x19\n\x11\x61uthorization_url\x18\x06 \x01(\t\x12\x11\n\ttoken_url\x18\x07 \x01(\t\x12?\n\x06scopes\x18\x08 \x01(\x0b\x32/.grpc.gateway.protoc_gen_swagger.options.Scopes\x12[\n\nextensions\x18\t \x03(\x0b\x32G.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"K\n\x04Type\x12\x10\n\x0cTYPE_INVALID\x10\x00\x12\x0e\n\nTYPE_BASIC\x10\x01\x12\x10\n\x0cTYPE_API_KEY\x10\x02\x12\x0f\n\x0bTYPE_OAUTH2\x10\x03\"1\n\x02In\x12\x0e\n\nIN_INVALID\x10\x00\x12\x0c\n\x08IN_QUERY\x10\x01\x12\r\n\tIN_HEADER\x10\x02\"j\n\x04\x46low\x12\x10\n\x0c\x46LOW_INVALID\x10\x00\x12\x11\n\rFLOW_IMPLICIT\x10\x01\x12\x11\n\rFLOW_PASSWORD\x10\x02\x12\x14\n\x10\x46LOW_APPLICATION\x10\x03\x12\x14\n\x10\x46LOW_ACCESS_CODE\x10\x04\"\xc9\x02\n\x13SecurityRequirement\x12s\n\x14security_requirement\x18\x01 \x03(\x0b\x32U.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementEntry\x1a)\n\x18SecurityRequirementValue\x12\r\n\x05scope\x18\x01 \x03(\t\x1a\x91\x01\n\x18SecurityRequirementEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x64\n\x05value\x18\x02 \x01(\x0b\x32U.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue:\x02\x38\x01\"\x81\x01\n\x06Scopes\x12I\n\x05scope\x18\x01 \x03(\x0b\x32:.grpc.gateway.protoc_gen_swagger.options.Scopes.ScopeEntry\x1a,\n\nScopeEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x43ZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/optionsb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protoc_gen_swagger.options.openapiv2_pb2', globals())
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'ZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options'
|
|
26
|
+
_SWAGGER_RESPONSESENTRY._options = None
|
|
27
|
+
_SWAGGER_RESPONSESENTRY._serialized_options = b'8\001'
|
|
28
|
+
_SWAGGER_EXTENSIONSENTRY._options = None
|
|
29
|
+
_SWAGGER_EXTENSIONSENTRY._serialized_options = b'8\001'
|
|
30
|
+
_OPERATION_RESPONSESENTRY._options = None
|
|
31
|
+
_OPERATION_RESPONSESENTRY._serialized_options = b'8\001'
|
|
32
|
+
_OPERATION_EXTENSIONSENTRY._options = None
|
|
33
|
+
_OPERATION_EXTENSIONSENTRY._serialized_options = b'8\001'
|
|
34
|
+
_RESPONSE_HEADERSENTRY._options = None
|
|
35
|
+
_RESPONSE_HEADERSENTRY._serialized_options = b'8\001'
|
|
36
|
+
_RESPONSE_EXAMPLESENTRY._options = None
|
|
37
|
+
_RESPONSE_EXAMPLESENTRY._serialized_options = b'8\001'
|
|
38
|
+
_RESPONSE_EXTENSIONSENTRY._options = None
|
|
39
|
+
_RESPONSE_EXTENSIONSENTRY._serialized_options = b'8\001'
|
|
40
|
+
_INFO_EXTENSIONSENTRY._options = None
|
|
41
|
+
_INFO_EXTENSIONSENTRY._serialized_options = b'8\001'
|
|
42
|
+
_SCHEMA.fields_by_name['example']._options = None
|
|
43
|
+
_SCHEMA.fields_by_name['example']._serialized_options = b'\030\001'
|
|
44
|
+
_SECURITYDEFINITIONS_SECURITYENTRY._options = None
|
|
45
|
+
_SECURITYDEFINITIONS_SECURITYENTRY._serialized_options = b'8\001'
|
|
46
|
+
_SECURITYSCHEME_EXTENSIONSENTRY._options = None
|
|
47
|
+
_SECURITYSCHEME_EXTENSIONSENTRY._serialized_options = b'8\001'
|
|
48
|
+
_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY._options = None
|
|
49
|
+
_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY._serialized_options = b'8\001'
|
|
50
|
+
_SCOPES_SCOPEENTRY._options = None
|
|
51
|
+
_SCOPES_SCOPEENTRY._serialized_options = b'8\001'
|
|
52
|
+
_SWAGGER._serialized_start=145
|
|
53
|
+
_SWAGGER._serialized_end=1073
|
|
54
|
+
_SWAGGER_RESPONSESENTRY._serialized_start=813
|
|
55
|
+
_SWAGGER_RESPONSESENTRY._serialized_end=912
|
|
56
|
+
_SWAGGER_EXTENSIONSENTRY._serialized_start=914
|
|
57
|
+
_SWAGGER_EXTENSIONSENTRY._serialized_end=987
|
|
58
|
+
_SWAGGER_SWAGGERSCHEME._serialized_start=989
|
|
59
|
+
_SWAGGER_SWAGGERSCHEME._serialized_end=1055
|
|
60
|
+
_OPERATION._serialized_start=1076
|
|
61
|
+
_OPERATION._serialized_end=1757
|
|
62
|
+
_OPERATION_RESPONSESENTRY._serialized_start=813
|
|
63
|
+
_OPERATION_RESPONSESENTRY._serialized_end=912
|
|
64
|
+
_OPERATION_EXTENSIONSENTRY._serialized_start=914
|
|
65
|
+
_OPERATION_EXTENSIONSENTRY._serialized_end=987
|
|
66
|
+
_HEADER._serialized_start=1760
|
|
67
|
+
_HEADER._serialized_end=1931
|
|
68
|
+
_RESPONSE._serialized_start=1934
|
|
69
|
+
_RESPONSE._serialized_end=2502
|
|
70
|
+
_RESPONSE_HEADERSENTRY._serialized_start=2283
|
|
71
|
+
_RESPONSE_HEADERSENTRY._serialized_end=2378
|
|
72
|
+
_RESPONSE_EXAMPLESENTRY._serialized_start=2380
|
|
73
|
+
_RESPONSE_EXAMPLESENTRY._serialized_end=2427
|
|
74
|
+
_RESPONSE_EXTENSIONSENTRY._serialized_start=914
|
|
75
|
+
_RESPONSE_EXTENSIONSENTRY._serialized_end=987
|
|
76
|
+
_INFO._serialized_start=2505
|
|
77
|
+
_INFO._serialized_end=2882
|
|
78
|
+
_INFO_EXTENSIONSENTRY._serialized_start=914
|
|
79
|
+
_INFO_EXTENSIONSENTRY._serialized_end=987
|
|
80
|
+
_CONTACT._serialized_start=2884
|
|
81
|
+
_CONTACT._serialized_end=2935
|
|
82
|
+
_LICENSE._serialized_start=2937
|
|
83
|
+
_LICENSE._serialized_end=2973
|
|
84
|
+
_EXTERNALDOCUMENTATION._serialized_start=2975
|
|
85
|
+
_EXTERNALDOCUMENTATION._serialized_end=3032
|
|
86
|
+
_SCHEMA._serialized_start=3035
|
|
87
|
+
_SCHEMA._serialized_end=3319
|
|
88
|
+
_JSONSCHEMA._serialized_start=3322
|
|
89
|
+
_JSONSCHEMA._serialized_end=4061
|
|
90
|
+
_JSONSCHEMA_JSONSCHEMASIMPLETYPES._serialized_start=3864
|
|
91
|
+
_JSONSCHEMA_JSONSCHEMASIMPLETYPES._serialized_end=3983
|
|
92
|
+
_TAG._serialized_start=4063
|
|
93
|
+
_TAG._serialized_end=4182
|
|
94
|
+
_SECURITYDEFINITIONS._serialized_start=4185
|
|
95
|
+
_SECURITYDEFINITIONS._serialized_end=4406
|
|
96
|
+
_SECURITYDEFINITIONS_SECURITYENTRY._serialized_start=4302
|
|
97
|
+
_SECURITYDEFINITIONS_SECURITYENTRY._serialized_end=4406
|
|
98
|
+
_SECURITYSCHEME._serialized_start=4409
|
|
99
|
+
_SECURITYSCHEME._serialized_end=5199
|
|
100
|
+
_SECURITYSCHEME_EXTENSIONSENTRY._serialized_start=914
|
|
101
|
+
_SECURITYSCHEME_EXTENSIONSENTRY._serialized_end=987
|
|
102
|
+
_SECURITYSCHEME_TYPE._serialized_start=4965
|
|
103
|
+
_SECURITYSCHEME_TYPE._serialized_end=5040
|
|
104
|
+
_SECURITYSCHEME_IN._serialized_start=5042
|
|
105
|
+
_SECURITYSCHEME_IN._serialized_end=5091
|
|
106
|
+
_SECURITYSCHEME_FLOW._serialized_start=5093
|
|
107
|
+
_SECURITYSCHEME_FLOW._serialized_end=5199
|
|
108
|
+
_SECURITYREQUIREMENT._serialized_start=5202
|
|
109
|
+
_SECURITYREQUIREMENT._serialized_end=5531
|
|
110
|
+
_SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE._serialized_start=5342
|
|
111
|
+
_SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE._serialized_end=5383
|
|
112
|
+
_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY._serialized_start=5386
|
|
113
|
+
_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY._serialized_end=5531
|
|
114
|
+
_SCOPES._serialized_start=5534
|
|
115
|
+
_SCOPES._serialized_end=5663
|
|
116
|
+
_SCOPES_SCOPEENTRY._serialized_start=5619
|
|
117
|
+
_SCOPES_SCOPEENTRY._serialized_end=5663
|
|
118
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: scanoss/api/common/v2/scanoss-common.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*scanoss/api/common/v2/scanoss-common.proto\x12\x15scanoss.api.common.v2\"T\n\x0eStatusResponse\x12\x31\n\x06status\x18\x01 \x01(\x0e\x32!.scanoss.api.common.v2.StatusCode\x12\x0f\n\x07message\x18\x02 \x01(\t\"\x1e\n\x0b\x45\x63hoRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\"\x1f\n\x0c\x45\x63hoResponse\x12\x0f\n\x07message\x18\x01 \x01(\t\"r\n\x0bPurlRequest\x12\x37\n\x05purls\x18\x01 \x03(\x0b\x32(.scanoss.api.common.v2.PurlRequest.Purls\x1a*\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x13\n\x0brequirement\x18\x02 \x01(\t\")\n\x04Purl\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x13\n\x0brequirement\x18\x02 \x01(\t*`\n\nStatusCode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07SUCCESS\x10\x01\x12\x1b\n\x17SUCCEEDED_WITH_WARNINGS\x10\x02\x12\x0b\n\x07WARNING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x42/Z-github.com/scanoss/papi/api/commonv2;commonv2b\x06proto3')
|
|
17
|
+
|
|
18
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
19
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scanoss.api.common.v2.scanoss_common_pb2', globals())
|
|
20
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR._options = None
|
|
23
|
+
DESCRIPTOR._serialized_options = b'Z-github.com/scanoss/papi/api/commonv2;commonv2'
|
|
24
|
+
_STATUSCODE._serialized_start=379
|
|
25
|
+
_STATUSCODE._serialized_end=475
|
|
26
|
+
_STATUSRESPONSE._serialized_start=69
|
|
27
|
+
_STATUSRESPONSE._serialized_end=153
|
|
28
|
+
_ECHOREQUEST._serialized_start=155
|
|
29
|
+
_ECHOREQUEST._serialized_end=185
|
|
30
|
+
_ECHORESPONSE._serialized_start=187
|
|
31
|
+
_ECHORESPONSE._serialized_end=218
|
|
32
|
+
_PURLREQUEST._serialized_start=220
|
|
33
|
+
_PURLREQUEST._serialized_end=334
|
|
34
|
+
_PURLREQUEST_PURLS._serialized_start=292
|
|
35
|
+
_PURLREQUEST_PURLS._serialized_end=334
|
|
36
|
+
_PURL._serialized_start=336
|
|
37
|
+
_PURL._serialized_end=377
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: scanoss/api/components/v2/scanoss-components.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from scanoss.api.common.v2 import scanoss_common_pb2 as scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2
|
|
15
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
16
|
+
from protoc_gen_swagger.options import annotations_pb2 as protoc__gen__swagger_dot_options_dot_annotations__pb2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2scanoss/api/components/v2/scanoss-components.proto\x12\x19scanoss.api.components.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto\"v\n\x11\x43ompSearchRequest\x12\x0e\n\x06search\x18\x01 \x01(\t\x12\x0e\n\x06vendor\x18\x02 \x01(\t\x12\x11\n\tcomponent\x18\x03 \x01(\t\x12\x0f\n\x07package\x18\x04 \x01(\t\x12\r\n\x05limit\x18\x06 \x01(\x05\x12\x0e\n\x06offset\x18\x07 \x01(\x05\"\xca\x01\n\rCompStatistic\x12\x1a\n\x12total_source_files\x18\x01 \x01(\x05\x12\x13\n\x0btotal_lines\x18\x02 \x01(\x05\x12\x19\n\x11total_blank_lines\x18\x03 \x01(\x05\x12\x44\n\tlanguages\x18\x04 \x03(\x0b\x32\x31.scanoss.api.components.v2.CompStatistic.Language\x1a\'\n\x08Language\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x66iles\x18\x02 \x01(\x05\"\xfb\x01\n\x15\x43ompStatisticResponse\x12\x45\n\x05purls\x18\x01 \x03(\x0b\x32\x36.scanoss.api.components.v2.CompStatisticResponse.Purls\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a\x64\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12<\n\nstatistics\x18\x03 \x01(\x0b\x32(.scanoss.api.components.v2.CompStatistic\"\xd3\x01\n\x12\x43ompSearchResponse\x12K\n\ncomponents\x18\x01 \x03(\x0b\x32\x37.scanoss.api.components.v2.CompSearchResponse.Component\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a\x39\n\tComponent\x12\x11\n\tcomponent\x18\x01 \x01(\t\x12\x0c\n\x04purl\x18\x02 \x01(\t\x12\x0b\n\x03url\x18\x03 \x01(\t\"1\n\x12\x43ompVersionRequest\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\x05\"\xd6\x03\n\x13\x43ompVersionResponse\x12K\n\tcomponent\x18\x01 \x01(\x0b\x32\x38.scanoss.api.components.v2.CompVersionResponse.Component\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1aO\n\x07License\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07spdx_id\x18\x02 \x01(\t\x12\x18\n\x10is_spdx_approved\x18\x03 \x01(\x08\x12\x0b\n\x03url\x18\x04 \x01(\t\x1a\x64\n\x07Version\x12\x0f\n\x07version\x18\x01 \x01(\t\x12H\n\x08licenses\x18\x04 \x03(\x0b\x32\x36.scanoss.api.components.v2.CompVersionResponse.License\x1a\x83\x01\n\tComponent\x12\x11\n\tcomponent\x18\x01 \x01(\t\x12\x0c\n\x04purl\x18\x02 \x01(\t\x12\x0b\n\x03url\x18\x03 \x01(\t\x12H\n\x08versions\x18\x04 \x03(\x0b\x32\x36.scanoss.api.components.v2.CompVersionResponse.Version2\xd4\x04\n\nComponents\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/components/echo:\x01*\x12\x95\x01\n\x10SearchComponents\x12,.scanoss.api.components.v2.CompSearchRequest\x1a-.scanoss.api.components.v2.CompSearchResponse\"$\x82\xd3\xe4\x93\x02\x1e\"\x19/api/v2/components/search:\x01*\x12\x9d\x01\n\x14GetComponentVersions\x12-.scanoss.api.components.v2.CompVersionRequest\x1a..scanoss.api.components.v2.CompVersionResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/api/v2/components/versions:\x01*\x12\x98\x01\n\x16GetComponentStatistics\x12\".scanoss.api.common.v2.PurlRequest\x1a\x30.scanoss.api.components.v2.CompStatisticResponse\"(\x82\xd3\xe4\x93\x02\"\"\x1d/api/v2/components/statistics:\x01*B\x94\x02Z5github.com/scanoss/papi/api/componentsv2;componentsv2\x92\x41\xd9\x01\x12s\n\x1aSCANOSS Components Service\"P\n\x12scanoss-components\x12%https://github.com/scanoss/components\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')
|
|
20
|
+
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scanoss.api.components.v2.scanoss_components_pb2', globals())
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
|
|
25
|
+
DESCRIPTOR._options = None
|
|
26
|
+
DESCRIPTOR._serialized_options = b'Z5github.com/scanoss/papi/api/componentsv2;componentsv2\222A\331\001\022s\n\032SCANOSS Components Service\"P\n\022scanoss-components\022%https://github.com/scanoss/components\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
|
+
_COMPONENTS.methods_by_name['Echo']._options = None
|
|
28
|
+
_COMPONENTS.methods_by_name['Echo']._serialized_options = b'\202\323\344\223\002\034\"\027/api/v2/components/echo:\001*'
|
|
29
|
+
_COMPONENTS.methods_by_name['SearchComponents']._options = None
|
|
30
|
+
_COMPONENTS.methods_by_name['SearchComponents']._serialized_options = b'\202\323\344\223\002\036\"\031/api/v2/components/search:\001*'
|
|
31
|
+
_COMPONENTS.methods_by_name['GetComponentVersions']._options = None
|
|
32
|
+
_COMPONENTS.methods_by_name['GetComponentVersions']._serialized_options = b'\202\323\344\223\002 \"\033/api/v2/components/versions:\001*'
|
|
33
|
+
_COMPONENTS.methods_by_name['GetComponentStatistics']._options = None
|
|
34
|
+
_COMPONENTS.methods_by_name['GetComponentStatistics']._serialized_options = b'\202\323\344\223\002\"\"\035/api/v2/components/statistics:\001*'
|
|
35
|
+
_COMPSEARCHREQUEST._serialized_start=201
|
|
36
|
+
_COMPSEARCHREQUEST._serialized_end=319
|
|
37
|
+
_COMPSTATISTIC._serialized_start=322
|
|
38
|
+
_COMPSTATISTIC._serialized_end=524
|
|
39
|
+
_COMPSTATISTIC_LANGUAGE._serialized_start=485
|
|
40
|
+
_COMPSTATISTIC_LANGUAGE._serialized_end=524
|
|
41
|
+
_COMPSTATISTICRESPONSE._serialized_start=527
|
|
42
|
+
_COMPSTATISTICRESPONSE._serialized_end=778
|
|
43
|
+
_COMPSTATISTICRESPONSE_PURLS._serialized_start=678
|
|
44
|
+
_COMPSTATISTICRESPONSE_PURLS._serialized_end=778
|
|
45
|
+
_COMPSEARCHRESPONSE._serialized_start=781
|
|
46
|
+
_COMPSEARCHRESPONSE._serialized_end=992
|
|
47
|
+
_COMPSEARCHRESPONSE_COMPONENT._serialized_start=935
|
|
48
|
+
_COMPSEARCHRESPONSE_COMPONENT._serialized_end=992
|
|
49
|
+
_COMPVERSIONREQUEST._serialized_start=994
|
|
50
|
+
_COMPVERSIONREQUEST._serialized_end=1043
|
|
51
|
+
_COMPVERSIONRESPONSE._serialized_start=1046
|
|
52
|
+
_COMPVERSIONRESPONSE._serialized_end=1516
|
|
53
|
+
_COMPVERSIONRESPONSE_LICENSE._serialized_start=1201
|
|
54
|
+
_COMPVERSIONRESPONSE_LICENSE._serialized_end=1280
|
|
55
|
+
_COMPVERSIONRESPONSE_VERSION._serialized_start=1282
|
|
56
|
+
_COMPVERSIONRESPONSE_VERSION._serialized_end=1382
|
|
57
|
+
_COMPVERSIONRESPONSE_COMPONENT._serialized_start=1385
|
|
58
|
+
_COMPVERSIONRESPONSE_COMPONENT._serialized_end=1516
|
|
59
|
+
_COMPONENTS._serialized_start=1519
|
|
60
|
+
_COMPONENTS._serialized_end=2115
|
|
61
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,176 @@
|
|
|
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
|
+
|
|
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.components.v2 import scanoss_components_pb2 as scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ComponentsStub(object):
|
|
10
|
+
"""
|
|
11
|
+
Expose all of the SCANOSS Component RPCs here
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, channel):
|
|
15
|
+
"""Constructor.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
channel: A grpc.Channel.
|
|
19
|
+
"""
|
|
20
|
+
self.Echo = channel.unary_unary(
|
|
21
|
+
'/scanoss.api.components.v2.Components/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.SearchComponents = channel.unary_unary(
|
|
26
|
+
'/scanoss.api.components.v2.Components/SearchComponents',
|
|
27
|
+
request_serializer=scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompSearchRequest.SerializeToString,
|
|
28
|
+
response_deserializer=scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompSearchResponse.FromString,
|
|
29
|
+
)
|
|
30
|
+
self.GetComponentVersions = channel.unary_unary(
|
|
31
|
+
'/scanoss.api.components.v2.Components/GetComponentVersions',
|
|
32
|
+
request_serializer=scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompVersionRequest.SerializeToString,
|
|
33
|
+
response_deserializer=scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompVersionResponse.FromString,
|
|
34
|
+
)
|
|
35
|
+
self.GetComponentStatistics = channel.unary_unary(
|
|
36
|
+
'/scanoss.api.components.v2.Components/GetComponentStatistics',
|
|
37
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
38
|
+
response_deserializer=scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompStatisticResponse.FromString,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class ComponentsServicer(object):
|
|
43
|
+
"""
|
|
44
|
+
Expose all of the SCANOSS Component RPCs here
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def Echo(self, request, context):
|
|
48
|
+
"""Standard echo
|
|
49
|
+
"""
|
|
50
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
51
|
+
context.set_details('Method not implemented!')
|
|
52
|
+
raise NotImplementedError('Method not implemented!')
|
|
53
|
+
|
|
54
|
+
def SearchComponents(self, request, context):
|
|
55
|
+
"""Search for components
|
|
56
|
+
"""
|
|
57
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
58
|
+
context.set_details('Method not implemented!')
|
|
59
|
+
raise NotImplementedError('Method not implemented!')
|
|
60
|
+
|
|
61
|
+
def GetComponentVersions(self, request, context):
|
|
62
|
+
"""Get all version information for a specific component
|
|
63
|
+
"""
|
|
64
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
65
|
+
context.set_details('Method not implemented!')
|
|
66
|
+
raise NotImplementedError('Method not implemented!')
|
|
67
|
+
|
|
68
|
+
def GetComponentStatistics(self, request, context):
|
|
69
|
+
"""Get the statistics for the specified components
|
|
70
|
+
"""
|
|
71
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
72
|
+
context.set_details('Method not implemented!')
|
|
73
|
+
raise NotImplementedError('Method not implemented!')
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def add_ComponentsServicer_to_server(servicer, server):
|
|
77
|
+
rpc_method_handlers = {
|
|
78
|
+
'Echo': grpc.unary_unary_rpc_method_handler(
|
|
79
|
+
servicer.Echo,
|
|
80
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.FromString,
|
|
81
|
+
response_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.SerializeToString,
|
|
82
|
+
),
|
|
83
|
+
'SearchComponents': grpc.unary_unary_rpc_method_handler(
|
|
84
|
+
servicer.SearchComponents,
|
|
85
|
+
request_deserializer=scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompSearchRequest.FromString,
|
|
86
|
+
response_serializer=scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompSearchResponse.SerializeToString,
|
|
87
|
+
),
|
|
88
|
+
'GetComponentVersions': grpc.unary_unary_rpc_method_handler(
|
|
89
|
+
servicer.GetComponentVersions,
|
|
90
|
+
request_deserializer=scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompVersionRequest.FromString,
|
|
91
|
+
response_serializer=scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompVersionResponse.SerializeToString,
|
|
92
|
+
),
|
|
93
|
+
'GetComponentStatistics': grpc.unary_unary_rpc_method_handler(
|
|
94
|
+
servicer.GetComponentStatistics,
|
|
95
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
96
|
+
response_serializer=scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompStatisticResponse.SerializeToString,
|
|
97
|
+
),
|
|
98
|
+
}
|
|
99
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
100
|
+
'scanoss.api.components.v2.Components', rpc_method_handlers)
|
|
101
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
# This class is part of an EXPERIMENTAL API.
|
|
105
|
+
class Components(object):
|
|
106
|
+
"""
|
|
107
|
+
Expose all of the SCANOSS Component RPCs here
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
@staticmethod
|
|
111
|
+
def Echo(request,
|
|
112
|
+
target,
|
|
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.components.v2.Components/Echo',
|
|
122
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
123
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
124
|
+
options, channel_credentials,
|
|
125
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
126
|
+
|
|
127
|
+
@staticmethod
|
|
128
|
+
def SearchComponents(request,
|
|
129
|
+
target,
|
|
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.components.v2.Components/SearchComponents',
|
|
139
|
+
scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompSearchRequest.SerializeToString,
|
|
140
|
+
scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompSearchResponse.FromString,
|
|
141
|
+
options, channel_credentials,
|
|
142
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
143
|
+
|
|
144
|
+
@staticmethod
|
|
145
|
+
def GetComponentVersions(request,
|
|
146
|
+
target,
|
|
147
|
+
options=(),
|
|
148
|
+
channel_credentials=None,
|
|
149
|
+
call_credentials=None,
|
|
150
|
+
insecure=False,
|
|
151
|
+
compression=None,
|
|
152
|
+
wait_for_ready=None,
|
|
153
|
+
timeout=None,
|
|
154
|
+
metadata=None):
|
|
155
|
+
return grpc.experimental.unary_unary(request, target, '/scanoss.api.components.v2.Components/GetComponentVersions',
|
|
156
|
+
scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompVersionRequest.SerializeToString,
|
|
157
|
+
scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompVersionResponse.FromString,
|
|
158
|
+
options, channel_credentials,
|
|
159
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
160
|
+
|
|
161
|
+
@staticmethod
|
|
162
|
+
def GetComponentStatistics(request,
|
|
163
|
+
target,
|
|
164
|
+
options=(),
|
|
165
|
+
channel_credentials=None,
|
|
166
|
+
call_credentials=None,
|
|
167
|
+
insecure=False,
|
|
168
|
+
compression=None,
|
|
169
|
+
wait_for_ready=None,
|
|
170
|
+
timeout=None,
|
|
171
|
+
metadata=None):
|
|
172
|
+
return grpc.experimental.unary_unary(request, target, '/scanoss.api.components.v2.Components/GetComponentStatistics',
|
|
173
|
+
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
174
|
+
scanoss_dot_api_dot_components_dot_v2_dot_scanoss__components__pb2.CompStatisticResponse.FromString,
|
|
175
|
+
options, channel_credentials,
|
|
176
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: scanoss/api/cryptography/v2/scanoss-cryptography.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from scanoss.api.common.v2 import scanoss_common_pb2 as scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2
|
|
15
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
16
|
+
from protoc_gen_swagger.options import annotations_pb2 as protoc__gen__swagger_dot_options_dot_annotations__pb2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6scanoss/api/cryptography/v2/scanoss-cryptography.proto\x12\x1bscanoss.api.cryptography.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto\"0\n\tAlgorithm\x12\x11\n\talgorithm\x18\x01 \x01(\t\x12\x10\n\x08strength\x18\x02 \x01(\t\"\xf3\x01\n\x11\x41lgorithmResponse\x12\x43\n\x05purls\x18\x01 \x03(\x0b\x32\x34.scanoss.api.cryptography.v2.AlgorithmResponse.Purls\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a\x62\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12:\n\nalgorithms\x18\x03 \x03(\x0b\x32&.scanoss.api.cryptography.v2.Algorithm\"\x82\x02\n\x19\x41lgorithmsInRangeResponse\x12J\n\x05purls\x18\x01 \x03(\x0b\x32;.scanoss.api.cryptography.v2.AlgorithmsInRangeResponse.Purl\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a\x62\n\x04Purl\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x10\n\x08versions\x18\x02 \x03(\t\x12:\n\nalgorithms\x18\x03 \x03(\x0b\x32&.scanoss.api.cryptography.v2.Algorithm\"\xe1\x01\n\x17VersionsInRangeResponse\x12H\n\x05purls\x18\x01 \x03(\x0b\x32\x39.scanoss.api.cryptography.v2.VersionsInRangeResponse.Purl\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1a\x45\n\x04Purl\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x15\n\rversions_with\x18\x02 \x03(\t\x12\x18\n\x10versions_without\x18\x03 \x03(\t\"}\n\x04Hint\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x04 \x01(\t\x12\x10\n\x03url\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04purl\x18\x06 \x01(\tH\x01\x88\x01\x01\x42\x06\n\x04_urlB\x07\n\x05_purl\"\xe1\x01\n\rHintsResponse\x12?\n\x05purls\x18\x01 \x03(\x0b\x32\x30.scanoss.api.cryptography.v2.HintsResponse.Purls\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1aX\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x30\n\x05hints\x18\x03 \x03(\x0b\x32!.scanoss.api.cryptography.v2.Hint\"\xee\x01\n\x14HintsInRangeResponse\x12\x45\n\x05purls\x18\x01 \x03(\x0b\x32\x36.scanoss.api.cryptography.v2.HintsInRangeResponse.Purl\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1aX\n\x04Purl\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x10\n\x08versions\x18\x02 \x03(\t\x12\x30\n\x05hints\x18\x03 \x03(\x0b\x32!.scanoss.api.cryptography.v2.Hint2\x88\x07\n\x0c\x43ryptography\x12u\n\x04\x45\x63ho\x12\".scanoss.api.common.v2.EchoRequest\x1a#.scanoss.api.common.v2.EchoResponse\"$\x82\xd3\xe4\x93\x02\x1e\"\x19/api/v2/cryptography/echo:\x01*\x12\x8f\x01\n\rGetAlgorithms\x12\".scanoss.api.common.v2.PurlRequest\x1a..scanoss.api.cryptography.v2.AlgorithmResponse\"*\x82\xd3\xe4\x93\x02$\"\x1f/api/v2/cryptography/algorithms:\x01*\x12\xa5\x01\n\x14GetAlgorithmsInRange\x12\".scanoss.api.common.v2.PurlRequest\x1a\x36.scanoss.api.cryptography.v2.AlgorithmsInRangeResponse\"1\x82\xd3\xe4\x93\x02+\"&/api/v2/cryptography/algorithmsInRange:\x01*\x12\x9f\x01\n\x12GetVersionsInRange\x12\".scanoss.api.common.v2.PurlRequest\x1a\x34.scanoss.api.cryptography.v2.VersionsInRangeResponse\"/\x82\xd3\xe4\x93\x02)\"$/api/v2/cryptography/versionsInRange:\x01*\x12\x96\x01\n\x0fGetHintsInRange\x12\".scanoss.api.common.v2.PurlRequest\x1a\x31.scanoss.api.cryptography.v2.HintsInRangeResponse\",\x82\xd3\xe4\x93\x02&\"!/api/v2/cryptography/hintsInRange:\x01*\x12\x8b\x01\n\x12GetEncryptionHints\x12\".scanoss.api.common.v2.PurlRequest\x1a*.scanoss.api.cryptography.v2.HintsResponse\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/api/v2/cryptography/hints:\x01*B\x9e\x02Z9github.com/scanoss/papi/api/cryptographyv2;cryptographyv2\x92\x41\xdf\x01\x12y\n\x1cSCANOSS Cryptography Service\"T\n\x14scanoss-cryptography\x12\'https://github.com/scanoss/crpytography\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')
|
|
20
|
+
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scanoss.api.cryptography.v2.scanoss_cryptography_pb2', globals())
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
|
|
25
|
+
DESCRIPTOR._options = None
|
|
26
|
+
DESCRIPTOR._serialized_options = b'Z9github.com/scanoss/papi/api/cryptographyv2;cryptographyv2\222A\337\001\022y\n\034SCANOSS Cryptography Service\"T\n\024scanoss-cryptography\022\'https://github.com/scanoss/crpytography\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
|
+
_CRYPTOGRAPHY.methods_by_name['Echo']._options = None
|
|
28
|
+
_CRYPTOGRAPHY.methods_by_name['Echo']._serialized_options = b'\202\323\344\223\002\036\"\031/api/v2/cryptography/echo:\001*'
|
|
29
|
+
_CRYPTOGRAPHY.methods_by_name['GetAlgorithms']._options = None
|
|
30
|
+
_CRYPTOGRAPHY.methods_by_name['GetAlgorithms']._serialized_options = b'\202\323\344\223\002$\"\037/api/v2/cryptography/algorithms:\001*'
|
|
31
|
+
_CRYPTOGRAPHY.methods_by_name['GetAlgorithmsInRange']._options = None
|
|
32
|
+
_CRYPTOGRAPHY.methods_by_name['GetAlgorithmsInRange']._serialized_options = b'\202\323\344\223\002+\"&/api/v2/cryptography/algorithmsInRange:\001*'
|
|
33
|
+
_CRYPTOGRAPHY.methods_by_name['GetVersionsInRange']._options = None
|
|
34
|
+
_CRYPTOGRAPHY.methods_by_name['GetVersionsInRange']._serialized_options = b'\202\323\344\223\002)\"$/api/v2/cryptography/versionsInRange:\001*'
|
|
35
|
+
_CRYPTOGRAPHY.methods_by_name['GetHintsInRange']._options = None
|
|
36
|
+
_CRYPTOGRAPHY.methods_by_name['GetHintsInRange']._serialized_options = b'\202\323\344\223\002&\"!/api/v2/cryptography/hintsInRange:\001*'
|
|
37
|
+
_CRYPTOGRAPHY.methods_by_name['GetEncryptionHints']._options = None
|
|
38
|
+
_CRYPTOGRAPHY.methods_by_name['GetEncryptionHints']._serialized_options = b'\202\323\344\223\002\037\"\032/api/v2/cryptography/hints:\001*'
|
|
39
|
+
_ALGORITHM._serialized_start=207
|
|
40
|
+
_ALGORITHM._serialized_end=255
|
|
41
|
+
_ALGORITHMRESPONSE._serialized_start=258
|
|
42
|
+
_ALGORITHMRESPONSE._serialized_end=501
|
|
43
|
+
_ALGORITHMRESPONSE_PURLS._serialized_start=403
|
|
44
|
+
_ALGORITHMRESPONSE_PURLS._serialized_end=501
|
|
45
|
+
_ALGORITHMSINRANGERESPONSE._serialized_start=504
|
|
46
|
+
_ALGORITHMSINRANGERESPONSE._serialized_end=762
|
|
47
|
+
_ALGORITHMSINRANGERESPONSE_PURL._serialized_start=664
|
|
48
|
+
_ALGORITHMSINRANGERESPONSE_PURL._serialized_end=762
|
|
49
|
+
_VERSIONSINRANGERESPONSE._serialized_start=765
|
|
50
|
+
_VERSIONSINRANGERESPONSE._serialized_end=990
|
|
51
|
+
_VERSIONSINRANGERESPONSE_PURL._serialized_start=921
|
|
52
|
+
_VERSIONSINRANGERESPONSE_PURL._serialized_end=990
|
|
53
|
+
_HINT._serialized_start=992
|
|
54
|
+
_HINT._serialized_end=1117
|
|
55
|
+
_HINTSRESPONSE._serialized_start=1120
|
|
56
|
+
_HINTSRESPONSE._serialized_end=1345
|
|
57
|
+
_HINTSRESPONSE_PURLS._serialized_start=1257
|
|
58
|
+
_HINTSRESPONSE_PURLS._serialized_end=1345
|
|
59
|
+
_HINTSINRANGERESPONSE._serialized_start=1348
|
|
60
|
+
_HINTSINRANGERESPONSE._serialized_end=1586
|
|
61
|
+
_HINTSINRANGERESPONSE_PURL._serialized_start=1498
|
|
62
|
+
_HINTSINRANGERESPONSE_PURL._serialized_end=1586
|
|
63
|
+
_CRYPTOGRAPHY._serialized_start=1589
|
|
64
|
+
_CRYPTOGRAPHY._serialized_end=2493
|
|
65
|
+
# @@protoc_insertion_point(module_scope)
|