Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: Websecurityscanner: enum-order only synth #6464

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,37 +63,6 @@ class FindingType(enum.IntEnum):
CLEAR_TEXT_PASSWORD = 6


class ScanConfig(object):
class UserAgent(enum.IntEnum):
"""
Type of user agents used for scanning.

Attributes:
USER_AGENT_UNSPECIFIED (int): The user agent is unknown. Service will default to CHROME\_LINUX.
CHROME_LINUX (int): Chrome on Linux. This is the service default if unspecified.
CHROME_ANDROID (int): Chrome on Android.
SAFARI_IPHONE (int): Safari on IPhone.
"""
USER_AGENT_UNSPECIFIED = 0
CHROME_LINUX = 1
CHROME_ANDROID = 2
SAFARI_IPHONE = 3

class TargetPlatform(enum.IntEnum):
"""
Cloud platforms supported by Cloud Web Security Scanner.

Attributes:
TARGET_PLATFORM_UNSPECIFIED (int): The target platform is unknown. Requests with this enum value will be
rejected with INVALID\_ARGUMENT error.
APP_ENGINE (int): Google App Engine service.
COMPUTE (int): Google Compute Engine service.
"""
TARGET_PLATFORM_UNSPECIFIED = 0
APP_ENGINE = 1
COMPUTE = 2


class ScanRun(object):
class ExecutionState(enum.IntEnum):
"""
Expand Down Expand Up @@ -126,3 +95,34 @@ class ResultState(enum.IntEnum):
SUCCESS = 1
ERROR = 2
KILLED = 3


class ScanConfig(object):
class UserAgent(enum.IntEnum):
"""
Type of user agents used for scanning.

Attributes:
USER_AGENT_UNSPECIFIED (int): The user agent is unknown. Service will default to CHROME\_LINUX.
CHROME_LINUX (int): Chrome on Linux. This is the service default if unspecified.
CHROME_ANDROID (int): Chrome on Android.
SAFARI_IPHONE (int): Safari on IPhone.
"""
USER_AGENT_UNSPECIFIED = 0
CHROME_LINUX = 1
CHROME_ANDROID = 2
SAFARI_IPHONE = 3

class TargetPlatform(enum.IntEnum):
"""
Cloud platforms supported by Cloud Web Security Scanner.

Attributes:
TARGET_PLATFORM_UNSPECIFIED (int): The target platform is unknown. Requests with this enum value will be
rejected with INVALID\_ARGUMENT error.
APP_ENGINE (int): Google App Engine service.
COMPUTE (int): Google Compute Engine service.
"""
TARGET_PLATFORM_UNSPECIFIED = 0
APP_ENGINE = 1
COMPUTE = 2