diff --git a/google/cloud/websecurityscanner/__init__.py b/google/cloud/websecurityscanner/__init__.py new file mode 100644 index 0000000..bdadc03 --- /dev/null +++ b/google/cloud/websecurityscanner/__init__.py @@ -0,0 +1,132 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +from google.cloud.websecurityscanner_v1.services.web_security_scanner.client import ( + WebSecurityScannerClient, +) +from google.cloud.websecurityscanner_v1.services.web_security_scanner.async_client import ( + WebSecurityScannerAsyncClient, +) + +from google.cloud.websecurityscanner_v1.types.crawled_url import CrawledUrl +from google.cloud.websecurityscanner_v1.types.finding import Finding +from google.cloud.websecurityscanner_v1.types.finding_addon import Form +from google.cloud.websecurityscanner_v1.types.finding_addon import OutdatedLibrary +from google.cloud.websecurityscanner_v1.types.finding_addon import ViolatingResource +from google.cloud.websecurityscanner_v1.types.finding_addon import VulnerableHeaders +from google.cloud.websecurityscanner_v1.types.finding_addon import VulnerableParameters +from google.cloud.websecurityscanner_v1.types.finding_addon import Xss +from google.cloud.websecurityscanner_v1.types.finding_type_stats import FindingTypeStats +from google.cloud.websecurityscanner_v1.types.scan_config import ScanConfig +from google.cloud.websecurityscanner_v1.types.scan_config_error import ScanConfigError +from google.cloud.websecurityscanner_v1.types.scan_run import ScanRun +from google.cloud.websecurityscanner_v1.types.scan_run_error_trace import ( + ScanRunErrorTrace, +) +from google.cloud.websecurityscanner_v1.types.scan_run_warning_trace import ( + ScanRunWarningTrace, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + CreateScanConfigRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + DeleteScanConfigRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + GetFindingRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + GetScanConfigRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + GetScanRunRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + ListCrawledUrlsRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + ListCrawledUrlsResponse, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + ListFindingsRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + ListFindingsResponse, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + ListFindingTypeStatsRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + ListFindingTypeStatsResponse, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + ListScanConfigsRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + ListScanConfigsResponse, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + ListScanRunsRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + ListScanRunsResponse, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + StartScanRunRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + StopScanRunRequest, +) +from google.cloud.websecurityscanner_v1.types.web_security_scanner import ( + UpdateScanConfigRequest, +) + +__all__ = ( + "WebSecurityScannerClient", + "WebSecurityScannerAsyncClient", + "CrawledUrl", + "Finding", + "Form", + "OutdatedLibrary", + "ViolatingResource", + "VulnerableHeaders", + "VulnerableParameters", + "Xss", + "FindingTypeStats", + "ScanConfig", + "ScanConfigError", + "ScanRun", + "ScanRunErrorTrace", + "ScanRunWarningTrace", + "CreateScanConfigRequest", + "DeleteScanConfigRequest", + "GetFindingRequest", + "GetScanConfigRequest", + "GetScanRunRequest", + "ListCrawledUrlsRequest", + "ListCrawledUrlsResponse", + "ListFindingsRequest", + "ListFindingsResponse", + "ListFindingTypeStatsRequest", + "ListFindingTypeStatsResponse", + "ListScanConfigsRequest", + "ListScanConfigsResponse", + "ListScanRunsRequest", + "ListScanRunsResponse", + "StartScanRunRequest", + "StopScanRunRequest", + "UpdateScanConfigRequest", +) diff --git a/google/cloud/websecurityscanner/py.typed b/google/cloud/websecurityscanner/py.typed new file mode 100644 index 0000000..8cfb5d2 --- /dev/null +++ b/google/cloud/websecurityscanner/py.typed @@ -0,0 +1,2 @@ +# Marker file for PEP 561. +# The google-cloud-websecurityscanner package uses inline types. diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..4505b48 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,3 @@ +[mypy] +python_version = 3.6 +namespace_packages = True diff --git a/owlbot.py b/owlbot.py index c11a03f..b8c160c 100644 --- a/owlbot.py +++ b/owlbot.py @@ -21,10 +21,7 @@ default_version = "v1" for library in s.get_staging_dirs(default_version): - s.move(library / f"google/cloud/websecurityscanner_{library.name}") - s.move(library / "tests") - s.move(library / "scripts") - s.move(library / "docs", excludes=["index.rst"]) + s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst"]) s.remove_staging_dirs()