Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into release-as-v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Jun 4, 2021
2 parents f0510d7 + a65c8e9 commit 85432c2
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 4 deletions.
132 changes: 132 additions & 0 deletions 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",
)
2 changes: 2 additions & 0 deletions google/cloud/websecurityscanner/py.typed
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-websecurityscanner package uses inline types.
3 changes: 3 additions & 0 deletions mypy.ini
@@ -0,0 +1,3 @@
[mypy]
python_version = 3.6
namespace_packages = True
5 changes: 1 addition & 4 deletions owlbot.py
Expand Up @@ -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()

Expand Down

0 comments on commit 85432c2

Please sign in to comment.