diff --git a/google/cloud/websecurityscanner_v1alpha/gapic/enums.py b/google/cloud/websecurityscanner_v1alpha/gapic/enums.py index eb85ac6..6b46a5a 100644 --- a/google/cloud/websecurityscanner_v1alpha/gapic/enums.py +++ b/google/cloud/websecurityscanner_v1alpha/gapic/enums.py @@ -83,8 +83,8 @@ 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. + 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. """ @@ -98,7 +98,7 @@ 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. + 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. diff --git a/google/cloud/websecurityscanner_v1alpha/gapic/transports/web_security_scanner_grpc_transport.py b/google/cloud/websecurityscanner_v1alpha/gapic/transports/web_security_scanner_grpc_transport.py index 05a7d16..3167bda 100644 --- a/google/cloud/websecurityscanner_v1alpha/gapic/transports/web_security_scanner_grpc_transport.py +++ b/google/cloud/websecurityscanner_v1alpha/gapic/transports/web_security_scanner_grpc_transport.py @@ -113,30 +113,30 @@ def channel(self): return self._channel @property - def create_scan_config(self): - """Return the gRPC stub for :meth:`WebSecurityScannerClient.create_scan_config`. + def delete_scan_config(self): + """Return the gRPC stub for :meth:`WebSecurityScannerClient.delete_scan_config`. - Creates a new ScanConfig. + Deletes an existing ScanConfig and its child resources. Returns: Callable: A callable which accepts the appropriate deserialized request object and returns a deserialized response object. """ - return self._stubs["web_security_scanner_stub"].CreateScanConfig + return self._stubs["web_security_scanner_stub"].DeleteScanConfig @property - def delete_scan_config(self): - """Return the gRPC stub for :meth:`WebSecurityScannerClient.delete_scan_config`. + def create_scan_config(self): + """Return the gRPC stub for :meth:`WebSecurityScannerClient.create_scan_config`. - Deletes an existing ScanConfig and its child resources. + Creates a new ScanConfig. Returns: Callable: A callable which accepts the appropriate deserialized request object and returns a deserialized response object. """ - return self._stubs["web_security_scanner_stub"].DeleteScanConfig + return self._stubs["web_security_scanner_stub"].CreateScanConfig @property def get_scan_config(self): diff --git a/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client.py b/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client.py index 6ab946b..724904b 100644 --- a/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client.py +++ b/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client.py @@ -236,36 +236,28 @@ def __init__( self._inner_api_calls = {} # Service calls - def create_scan_config( + def delete_scan_config( self, - parent, - scan_config, + name, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ - Creates a new ScanConfig. + Deletes an existing ScanConfig and its child resources. Example: >>> from google.cloud import websecurityscanner_v1alpha >>> >>> client = websecurityscanner_v1alpha.WebSecurityScannerClient() >>> - >>> parent = client.project_path('[PROJECT]') - >>> - >>> # TODO: Initialize `scan_config`: - >>> scan_config = {} + >>> name = client.scan_config_path('[PROJECT]', '[SCAN_CONFIG]') >>> - >>> response = client.create_scan_config(parent, scan_config) + >>> client.delete_scan_config(name) Args: - parent (str): Required. The parent resource name where the scan is created, which should be a - project resource name in the format 'projects/{projectId}'. - scan_config (Union[dict, ~google.cloud.websecurityscanner_v1alpha.types.ScanConfig]): Required. The ScanConfig to be created. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.websecurityscanner_v1alpha.types.ScanConfig` + name (str): Required. The resource name of the ScanConfig to be deleted. The name follows the + format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -275,9 +267,6 @@ def create_scan_config( metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata that is provided to the method. - Returns: - A :class:`~google.cloud.websecurityscanner_v1alpha.types.ScanConfig` instance. - Raises: google.api_core.exceptions.GoogleAPICallError: If the request failed for any reason. @@ -286,24 +275,22 @@ def create_scan_config( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "create_scan_config" not in self._inner_api_calls: + if "delete_scan_config" not in self._inner_api_calls: self._inner_api_calls[ - "create_scan_config" + "delete_scan_config" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.create_scan_config, - default_retry=self._method_configs["CreateScanConfig"].retry, - default_timeout=self._method_configs["CreateScanConfig"].timeout, + self.transport.delete_scan_config, + default_retry=self._method_configs["DeleteScanConfig"].retry, + default_timeout=self._method_configs["DeleteScanConfig"].timeout, client_info=self._client_info, ) - request = web_security_scanner_pb2.CreateScanConfigRequest( - parent=parent, scan_config=scan_config - ) + request = web_security_scanner_pb2.DeleteScanConfigRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) try: - routing_header = [("parent", parent)] + routing_header = [("name", name)] except AttributeError: pass else: @@ -312,32 +299,40 @@ def create_scan_config( ) metadata.append(routing_metadata) - return self._inner_api_calls["create_scan_config"]( + self._inner_api_calls["delete_scan_config"]( request, retry=retry, timeout=timeout, metadata=metadata ) - def delete_scan_config( + def create_scan_config( self, - name, + parent, + scan_config, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ - Deletes an existing ScanConfig and its child resources. + Creates a new ScanConfig. Example: >>> from google.cloud import websecurityscanner_v1alpha >>> >>> client = websecurityscanner_v1alpha.WebSecurityScannerClient() >>> - >>> name = client.scan_config_path('[PROJECT]', '[SCAN_CONFIG]') + >>> parent = client.project_path('[PROJECT]') >>> - >>> client.delete_scan_config(name) + >>> # TODO: Initialize `scan_config`: + >>> scan_config = {} + >>> + >>> response = client.create_scan_config(parent, scan_config) Args: - name (str): Required. The resource name of the ScanConfig to be deleted. The name follows the - format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. + parent (str): Required. The parent resource name where the scan is created, which should be a + project resource name in the format 'projects/{projectId}'. + scan_config (Union[dict, ~google.cloud.websecurityscanner_v1alpha.types.ScanConfig]): Required. The ScanConfig to be created. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.websecurityscanner_v1alpha.types.ScanConfig` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -347,6 +342,9 @@ def delete_scan_config( metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata that is provided to the method. + Returns: + A :class:`~google.cloud.websecurityscanner_v1alpha.types.ScanConfig` instance. + Raises: google.api_core.exceptions.GoogleAPICallError: If the request failed for any reason. @@ -355,22 +353,24 @@ def delete_scan_config( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "delete_scan_config" not in self._inner_api_calls: + if "create_scan_config" not in self._inner_api_calls: self._inner_api_calls[ - "delete_scan_config" + "create_scan_config" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_scan_config, - default_retry=self._method_configs["DeleteScanConfig"].retry, - default_timeout=self._method_configs["DeleteScanConfig"].timeout, + self.transport.create_scan_config, + default_retry=self._method_configs["CreateScanConfig"].retry, + default_timeout=self._method_configs["CreateScanConfig"].timeout, client_info=self._client_info, ) - request = web_security_scanner_pb2.DeleteScanConfigRequest(name=name) + request = web_security_scanner_pb2.CreateScanConfigRequest( + parent=parent, scan_config=scan_config + ) if metadata is None: metadata = [] metadata = list(metadata) try: - routing_header = [("name", name)] + routing_header = [("parent", parent)] except AttributeError: pass else: @@ -379,7 +379,7 @@ def delete_scan_config( ) metadata.append(routing_metadata) - self._inner_api_calls["delete_scan_config"]( + return self._inner_api_calls["create_scan_config"]( request, retry=retry, timeout=timeout, metadata=metadata ) @@ -588,8 +588,8 @@ def update_scan_config( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.websecurityscanner_v1alpha.types.ScanConfig` - update_mask (Union[dict, ~google.cloud.websecurityscanner_v1alpha.types.FieldMask]): Required. The update mask applies to the resource. For the ``FieldMask`` - definition, see + update_mask (Union[dict, ~google.cloud.websecurityscanner_v1alpha.types.FieldMask]): Required. The update mask applies to the resource. For the + ``FieldMask`` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If a dict is provided, it must be of the same form as the protobuf @@ -1177,8 +1177,8 @@ def list_findings( parent (str): Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. - filter_ (str): Required. The filter expression. The expression must be in the format: . - Supported field: 'finding\_type'. Supported operator: '='. + filter_ (str): Required. The filter expression. The expression must be in the + format: . Supported field: 'finding_type'. Supported operator: '='. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page diff --git a/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client_config.py b/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client_config.py index e155015..f42c77a 100644 --- a/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client_config.py +++ b/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client_config.py @@ -17,14 +17,14 @@ } }, "methods": { - "CreateScanConfig": { + "DeleteScanConfig": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "idempotent", "retry_params_name": "default", }, - "DeleteScanConfig": { + "CreateScanConfig": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, "GetScanConfig": { diff --git a/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2.py b/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2.py index 10e8680..5afa6c2 100644 --- a/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2.py +++ b/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1alpha/proto/crawled_url.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -19,12 +16,8 @@ name="google/cloud/websecurityscanner_v1alpha/proto/crawled_url.proto", package="google.cloud.websecurityscanner.v1alpha", syntax="proto3", - serialized_options=_b( - "\n+com.google.cloud.websecurityscanner.v1alphaB\017CrawledUrlProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner" - ), - serialized_pb=_b( - "\n?google/cloud/websecurityscanner_v1alpha/proto/crawled_url.proto\x12'google.cloud.websecurityscanner.v1alpha\"<\n\nCrawledUrl\x12\x13\n\x0bhttp_method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\tB\x9b\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x0f\x43rawledUrlProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3" - ), + serialized_options=b"\n+com.google.cloud.websecurityscanner.v1alphaB\017CrawledUrlProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner", + serialized_pb=b"\n?google/cloud/websecurityscanner_v1alpha/proto/crawled_url.proto\x12'google.cloud.websecurityscanner.v1alpha\"<\n\nCrawledUrl\x12\x13\n\x0bhttp_method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\tB\x9b\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x0f\x43rawledUrlProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3", ) @@ -44,7 +37,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -62,7 +55,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -80,7 +73,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -108,13 +101,13 @@ CrawledUrl = _reflection.GeneratedProtocolMessageType( "CrawledUrl", (_message.Message,), - dict( - DESCRIPTOR=_CRAWLEDURL, - __module__="google.cloud.websecurityscanner_v1alpha.proto.crawled_url_pb2", - __doc__="""A CrawledUrl resource represents a URL that was crawled - during a ScanRun. Web Security Scanner Service crawls the web - applications, following all links within the scope of sites, to find the - URLs to test against. + { + "DESCRIPTOR": _CRAWLEDURL, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.crawled_url_pb2", + "__doc__": """A CrawledUrl resource represents a URL that was crawled during a + ScanRun. Web Security Scanner Service crawls the web applications, + following all links within the scope of sites, to find the URLs to test + against. Attributes: @@ -128,7 +121,7 @@ the URL. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CrawledUrl) - ), + }, ) _sym_db.RegisterMessage(CrawledUrl) diff --git a/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2.py b/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2.py index e74e0c8..6a2e559 100644 --- a/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2.py +++ b/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -19,12 +16,8 @@ name="google/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto", package="google.cloud.websecurityscanner.v1alpha", syntax="proto3", - serialized_options=_b( - "\n+com.google.cloud.websecurityscanner.v1alphaB\021FindingAddonProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner" - ), - serialized_pb=_b( - '\nAgoogle/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto\x12\'google.cloud.websecurityscanner.v1alpha"Q\n\x0fOutdatedLibrary\x12\x14\n\x0clibrary_name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x17\n\x0flearn_more_urls\x18\x03 \x03(\t"?\n\x11ViolatingResource\x12\x14\n\x0c\x63ontent_type\x18\x01 \x01(\t\x12\x14\n\x0cresource_url\x18\x02 \x01(\t"/\n\x14VulnerableParameters\x12\x17\n\x0fparameter_names\x18\x01 \x03(\t"\xea\x01\n\x11VulnerableHeaders\x12R\n\x07headers\x18\x01 \x03(\x0b\x32\x41.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header\x12Z\n\x0fmissing_headers\x18\x02 \x03(\x0b\x32\x41.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header\x1a%\n\x06Header\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t"2\n\x03Xss\x12\x14\n\x0cstack_traces\x18\x01 \x03(\t\x12\x15\n\rerror_message\x18\x02 \x01(\tB\x9d\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x11\x46indingAddonProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3' - ), + serialized_options=b"\n+com.google.cloud.websecurityscanner.v1alphaB\021FindingAddonProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner", + serialized_pb=b'\nAgoogle/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto\x12\'google.cloud.websecurityscanner.v1alpha"Q\n\x0fOutdatedLibrary\x12\x14\n\x0clibrary_name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x17\n\x0flearn_more_urls\x18\x03 \x03(\t"?\n\x11ViolatingResource\x12\x14\n\x0c\x63ontent_type\x18\x01 \x01(\t\x12\x14\n\x0cresource_url\x18\x02 \x01(\t"/\n\x14VulnerableParameters\x12\x17\n\x0fparameter_names\x18\x01 \x03(\t"\xea\x01\n\x11VulnerableHeaders\x12R\n\x07headers\x18\x01 \x03(\x0b\x32\x41.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header\x12Z\n\x0fmissing_headers\x18\x02 \x03(\x0b\x32\x41.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header\x1a%\n\x06Header\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t"2\n\x03Xss\x12\x14\n\x0cstack_traces\x18\x01 \x03(\t\x12\x15\n\rerror_message\x18\x02 \x01(\tB\x9d\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x11\x46indingAddonProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3', ) @@ -44,7 +37,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -62,7 +55,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -119,7 +112,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -137,7 +130,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -215,7 +208,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -233,7 +226,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -346,7 +339,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -383,10 +376,10 @@ OutdatedLibrary = _reflection.GeneratedProtocolMessageType( "OutdatedLibrary", (_message.Message,), - dict( - DESCRIPTOR=_OUTDATEDLIBRARY, - __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", - __doc__="""Information reported for an outdated library. + { + "DESCRIPTOR": _OUTDATEDLIBRARY, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", + "__doc__": """Information reported for an outdated library. Attributes: @@ -399,17 +392,17 @@ the library. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) - ), + }, ) _sym_db.RegisterMessage(OutdatedLibrary) ViolatingResource = _reflection.GeneratedProtocolMessageType( "ViolatingResource", (_message.Message,), - dict( - DESCRIPTOR=_VIOLATINGRESOURCE, - __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", - __doc__="""Information regarding any resource causing the + { + "DESCRIPTOR": _VIOLATINGRESOURCE, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", + "__doc__": """Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc. @@ -420,17 +413,17 @@ URL of this violating resource. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ViolatingResource) - ), + }, ) _sym_db.RegisterMessage(ViolatingResource) VulnerableParameters = _reflection.GeneratedProtocolMessageType( "VulnerableParameters", (_message.Message,), - dict( - DESCRIPTOR=_VULNERABLEPARAMETERS, - __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", - __doc__="""Information about vulnerable request parameters. + { + "DESCRIPTOR": _VULNERABLEPARAMETERS, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", + "__doc__": """Information about vulnerable request parameters. Attributes: @@ -438,21 +431,21 @@ The vulnerable parameter names. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) - ), + }, ) _sym_db.RegisterMessage(VulnerableParameters) VulnerableHeaders = _reflection.GeneratedProtocolMessageType( "VulnerableHeaders", (_message.Message,), - dict( - Header=_reflection.GeneratedProtocolMessageType( + { + "Header": _reflection.GeneratedProtocolMessageType( "Header", (_message.Message,), - dict( - DESCRIPTOR=_VULNERABLEHEADERS_HEADER, - __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", - __doc__="""Describes a HTTP Header. + { + "DESCRIPTOR": _VULNERABLEHEADERS_HEADER, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", + "__doc__": """Describes a HTTP Header. Attributes: @@ -462,11 +455,11 @@ Header value. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) - ), + }, ), - DESCRIPTOR=_VULNERABLEHEADERS, - __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", - __doc__="""Information about vulnerable or missing HTTP Headers. + "DESCRIPTOR": _VULNERABLEHEADERS, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", + "__doc__": """Information about vulnerable or missing HTTP Headers. Attributes: @@ -476,7 +469,7 @@ List of missing headers. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) - ), + }, ) _sym_db.RegisterMessage(VulnerableHeaders) _sym_db.RegisterMessage(VulnerableHeaders.Header) @@ -484,10 +477,10 @@ Xss = _reflection.GeneratedProtocolMessageType( "Xss", (_message.Message,), - dict( - DESCRIPTOR=_XSS, - __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", - __doc__="""Information reported for an XSS. + { + "DESCRIPTOR": _XSS, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", + "__doc__": """Information reported for an XSS. Attributes: @@ -497,7 +490,7 @@ An error message generated by a javascript breakage. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Xss) - ), + }, ) _sym_db.RegisterMessage(Xss) diff --git a/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2.py b/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2.py index a93f61b..24e0b85 100644 --- a/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2.py +++ b/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1alpha/proto/finding.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -25,12 +22,8 @@ name="google/cloud/websecurityscanner_v1alpha/proto/finding.proto", package="google.cloud.websecurityscanner.v1alpha", syntax="proto3", - serialized_options=_b( - "\n+com.google.cloud.websecurityscanner.v1alphaB\014FindingProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner" - ), - serialized_pb=_b( - '\n;google/cloud/websecurityscanner_v1alpha/proto/finding.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x19google/api/resource.proto\x1a\x41google/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto"\xe9\x08\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12R\n\x0c\x66inding_type\x18\x02 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1alpha.Finding.FindingType\x12\x13\n\x0bhttp_method\x18\x03 \x01(\t\x12\x12\n\nfuzzed_url\x18\x04 \x01(\t\x12\x0c\n\x04\x62ody\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x18\n\x10reproduction_url\x18\x07 \x01(\t\x12\x11\n\tframe_url\x18\x08 \x01(\t\x12\x11\n\tfinal_url\x18\t \x01(\t\x12\x13\n\x0btracking_id\x18\n \x01(\t\x12R\n\x10outdated_library\x18\x0b \x01(\x0b\x32\x38.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary\x12V\n\x12violating_resource\x18\x0c \x01(\x0b\x32:.google.cloud.websecurityscanner.v1alpha.ViolatingResource\x12V\n\x12vulnerable_headers\x18\x0f \x01(\x0b\x32:.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders\x12\\\n\x15vulnerable_parameters\x18\r \x01(\x0b\x32=.google.cloud.websecurityscanner.v1alpha.VulnerableParameters\x12\x39\n\x03xss\x18\x0e \x01(\x0b\x32,.google.cloud.websecurityscanner.v1alpha.Xss"\xb6\x02\n\x0b\x46indingType\x12\x1c\n\x18\x46INDING_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rMIXED_CONTENT\x10\x01\x12\x14\n\x10OUTDATED_LIBRARY\x10\x02\x12\x11\n\rROSETTA_FLASH\x10\x05\x12\x10\n\x0cXSS_CALLBACK\x10\x03\x12\r\n\tXSS_ERROR\x10\x04\x12\x17\n\x13\x43LEAR_TEXT_PASSWORD\x10\x06\x12\x18\n\x14INVALID_CONTENT_TYPE\x10\x07\x12\x18\n\x14XSS_ANGULAR_CALLBACK\x10\x08\x12\x12\n\x0eINVALID_HEADER\x10\t\x12#\n\x1fMISSPELLED_SECURITY_HEADER_NAME\x10\n\x12&\n"MISMATCHING_SECURITY_HEADER_VALUES\x10\x0b:\x84\x01\xea\x41\x80\x01\n)websecurityscanner.googleapis.com/Finding\x12Sprojects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}B\x98\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x0c\x46indingProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3' - ), + serialized_options=b"\n+com.google.cloud.websecurityscanner.v1alphaB\014FindingProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner", + serialized_pb=b'\n;google/cloud/websecurityscanner_v1alpha/proto/finding.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x19google/api/resource.proto\x1a\x41google/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto"\xe9\x08\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12R\n\x0c\x66inding_type\x18\x02 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1alpha.Finding.FindingType\x12\x13\n\x0bhttp_method\x18\x03 \x01(\t\x12\x12\n\nfuzzed_url\x18\x04 \x01(\t\x12\x0c\n\x04\x62ody\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x18\n\x10reproduction_url\x18\x07 \x01(\t\x12\x11\n\tframe_url\x18\x08 \x01(\t\x12\x11\n\tfinal_url\x18\t \x01(\t\x12\x13\n\x0btracking_id\x18\n \x01(\t\x12R\n\x10outdated_library\x18\x0b \x01(\x0b\x32\x38.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary\x12V\n\x12violating_resource\x18\x0c \x01(\x0b\x32:.google.cloud.websecurityscanner.v1alpha.ViolatingResource\x12V\n\x12vulnerable_headers\x18\x0f \x01(\x0b\x32:.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders\x12\\\n\x15vulnerable_parameters\x18\r \x01(\x0b\x32=.google.cloud.websecurityscanner.v1alpha.VulnerableParameters\x12\x39\n\x03xss\x18\x0e \x01(\x0b\x32,.google.cloud.websecurityscanner.v1alpha.Xss"\xb6\x02\n\x0b\x46indingType\x12\x1c\n\x18\x46INDING_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rMIXED_CONTENT\x10\x01\x12\x14\n\x10OUTDATED_LIBRARY\x10\x02\x12\x11\n\rROSETTA_FLASH\x10\x05\x12\x10\n\x0cXSS_CALLBACK\x10\x03\x12\r\n\tXSS_ERROR\x10\x04\x12\x17\n\x13\x43LEAR_TEXT_PASSWORD\x10\x06\x12\x18\n\x14INVALID_CONTENT_TYPE\x10\x07\x12\x18\n\x14XSS_ANGULAR_CALLBACK\x10\x08\x12\x12\n\x0eINVALID_HEADER\x10\t\x12#\n\x1fMISSPELLED_SECURITY_HEADER_NAME\x10\n\x12&\n"MISMATCHING_SECURITY_HEADER_VALUES\x10\x0b:\x84\x01\xea\x41\x80\x01\n)websecurityscanner.googleapis.com/Finding\x12Sprojects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}B\x98\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x0c\x46indingProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3', dependencies=[ google_dot_api_dot_resource__pb2.DESCRIPTOR, google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2.DESCRIPTOR, @@ -133,7 +126,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -169,7 +162,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -187,7 +180,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -205,7 +198,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -223,7 +216,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -241,7 +234,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -259,7 +252,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -277,7 +270,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -295,7 +288,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -398,9 +391,7 @@ extensions=[], nested_types=[], enum_types=[_FINDING_FINDINGTYPE], - serialized_options=_b( - "\352A\200\001\n)websecurityscanner.googleapis.com/Finding\022Sprojects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}" - ), + serialized_options=b"\352A\200\001\n)websecurityscanner.googleapis.com/Finding\022Sprojects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -442,18 +433,18 @@ Finding = _reflection.GeneratedProtocolMessageType( "Finding", (_message.Message,), - dict( - DESCRIPTOR=_FINDING, - __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_pb2", - __doc__="""A Finding resource represents a vulnerability instance + { + "DESCRIPTOR": _FINDING, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.finding_pb2", + "__doc__": """A Finding resource represents a vulnerability instance identified during a ScanRun. Attributes: name: The resource name of the Finding. The name follows the format - of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{ - scanRunId}/findings/{findingId}'. The finding IDs are + of ‘projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{ + scanRunId}/findings/{findingId}’. The finding IDs are generated by the system. finding_type: The type of the Finding. @@ -495,7 +486,7 @@ An addon containing information reported for an XSS, if any. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Finding) - ), + }, ) _sym_db.RegisterMessage(Finding) diff --git a/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2.py b/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2.py index 94558c0..044b546 100644 --- a/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2.py +++ b/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -24,12 +21,8 @@ name="google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats.proto", package="google.cloud.websecurityscanner.v1alpha", syntax="proto3", - serialized_options=_b( - "\n+com.google.cloud.websecurityscanner.v1alphaB\025FindingTypeStatsProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner" - ), - serialized_pb=_b( - "\nFgoogle/cloud/websecurityscanner_v1alpha/proto/finding_type_stats.proto\x12'google.cloud.websecurityscanner.v1alpha\x1a;google/cloud/websecurityscanner_v1alpha/proto/finding.proto\"}\n\x10\x46indingTypeStats\x12R\n\x0c\x66inding_type\x18\x01 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1alpha.Finding.FindingType\x12\x15\n\rfinding_count\x18\x02 \x01(\x05\x42\xa1\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x15\x46indingTypeStatsProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3" - ), + serialized_options=b"\n+com.google.cloud.websecurityscanner.v1alphaB\025FindingTypeStatsProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner", + serialized_pb=b"\nFgoogle/cloud/websecurityscanner_v1alpha/proto/finding_type_stats.proto\x12'google.cloud.websecurityscanner.v1alpha\x1a;google/cloud/websecurityscanner_v1alpha/proto/finding.proto\"}\n\x10\x46indingTypeStats\x12R\n\x0c\x66inding_type\x18\x01 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1alpha.Finding.FindingType\x12\x15\n\rfinding_count\x18\x02 \x01(\x05\x42\xa1\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x15\x46indingTypeStatsProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3", dependencies=[ google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2.DESCRIPTOR ], @@ -103,11 +96,11 @@ FindingTypeStats = _reflection.GeneratedProtocolMessageType( "FindingTypeStats", (_message.Message,), - dict( - DESCRIPTOR=_FINDINGTYPESTATS, - __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_type_stats_pb2", - __doc__="""A FindingTypeStats resource represents stats regarding a specific - FindingType of Findings under a given ScanRun. + { + "DESCRIPTOR": _FINDINGTYPESTATS, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.finding_type_stats_pb2", + "__doc__": """A FindingTypeStats resource represents stats regarding a + specific FindingType of Findings under a given ScanRun. Attributes: @@ -117,7 +110,7 @@ The count of findings belonging to this finding type. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) - ), + }, ) _sym_db.RegisterMessage(FindingTypeStats) diff --git a/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2.py b/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2.py index ca936fb..2fdfa44 100644 --- a/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2.py +++ b/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1alpha/proto/scan_config.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -27,12 +24,8 @@ name="google/cloud/websecurityscanner_v1alpha/proto/scan_config.proto", package="google.cloud.websecurityscanner.v1alpha", syntax="proto3", - serialized_options=_b( - "\n+com.google.cloud.websecurityscanner.v1alphaB\017ScanConfigProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner" - ), - serialized_pb=_b( - '\n?google/cloud/websecurityscanner_v1alpha/proto/scan_config.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\xda\x41\x04name\x12\xe3\x01\n\x0cListFindings\x12<.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest\x1a=.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse"V\x82\xd3\xe4\x93\x02@\x12>/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\xda\x41\rparent,filter\x12\xfc\x01\n\x14ListFindingTypeStats\x12\x44.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest\x1a\x45.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse"W\x82\xd3\xe4\x93\x02H\x12\x46/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats\xda\x41\x06parent\x1aU\xca\x41!websecurityscanner.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa3\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x17WebSecurityScannerProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3' - ), + serialized_options=b"\n+com.google.cloud.websecurityscanner.v1alphaB\027WebSecurityScannerProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner", + serialized_pb=b'\nHgoogle/cloud/websecurityscanner_v1alpha/proto/web_security_scanner.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a?google/cloud/websecurityscanner_v1alpha/proto/crawled_url.proto\x1a;google/cloud/websecurityscanner_v1alpha/proto/finding.proto\x1a\x46google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats.proto\x1a?google/cloud/websecurityscanner_v1alpha/proto/scan_config.proto\x1a/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\xda\x41\x04name\x12\xe3\x01\n\x0cListFindings\x12<.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest\x1a=.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse"V\x82\xd3\xe4\x93\x02@\x12>/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\xda\x41\rparent,filter\x12\xfc\x01\n\x14ListFindingTypeStats\x12\x44.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest\x1a\x45.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse"W\x82\xd3\xe4\x93\x02H\x12\x46/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats\xda\x41\x06parent\x1aU\xca\x41!websecurityscanner.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa3\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x17WebSecurityScannerProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -80,15 +73,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -106,7 +97,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -139,15 +130,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig" - ), + serialized_options=b"\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig", file=DESCRIPTOR, ) ], @@ -180,15 +169,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig" - ), + serialized_options=b"\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig", file=DESCRIPTOR, ) ], @@ -221,15 +208,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -241,7 +226,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -304,7 +289,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -322,7 +307,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -373,7 +358,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -412,15 +397,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig" - ), + serialized_options=b"\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig", file=DESCRIPTOR, ) ], @@ -453,15 +436,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun", file=DESCRIPTOR, ) ], @@ -494,15 +475,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig" - ), + serialized_options=b"\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -514,7 +493,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -589,7 +568,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -628,15 +607,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun", file=DESCRIPTOR, ) ], @@ -669,15 +646,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -689,7 +664,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -764,7 +739,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -803,15 +778,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/Finding" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/Finding", file=DESCRIPTOR, ) ], @@ -844,15 +817,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -864,13 +835,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -882,7 +853,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -957,7 +928,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -996,15 +967,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun", file=DESCRIPTOR, ) ], @@ -1124,78 +1093,78 @@ CreateScanConfigRequest = _reflection.GeneratedProtocolMessageType( "CreateScanConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATESCANCONFIGREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``CreateScanConfig`` method. + { + "DESCRIPTOR": _CREATESCANCONFIGREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``CreateScanConfig`` method. Attributes: parent: Required. The parent resource name where the scan is created, which should be a project resource name in the format - 'projects/{projectId}'. + ‘projects/{projectId}’. scan_config: Required. The ScanConfig to be created. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) - ), + }, ) _sym_db.RegisterMessage(CreateScanConfigRequest) DeleteScanConfigRequest = _reflection.GeneratedProtocolMessageType( "DeleteScanConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETESCANCONFIGREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``DeleteScanConfig`` method. + { + "DESCRIPTOR": _DELETESCANCONFIGREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``DeleteScanConfig`` method. Attributes: name: Required. The resource name of the ScanConfig to be deleted. The name follows the format of - 'projects/{projectId}/scanConfigs/{scanConfigId}'. + ‘projects/{projectId}/scanConfigs/{scanConfigId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteScanConfigRequest) GetScanConfigRequest = _reflection.GeneratedProtocolMessageType( "GetScanConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETSCANCONFIGREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``GetScanConfig`` method. + { + "DESCRIPTOR": _GETSCANCONFIGREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``GetScanConfig`` method. Attributes: name: Required. The resource name of the ScanConfig to be returned. The name follows the format of - 'projects/{projectId}/scanConfigs/{scanConfigId}'. + ‘projects/{projectId}/scanConfigs/{scanConfigId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) - ), + }, ) _sym_db.RegisterMessage(GetScanConfigRequest) ListScanConfigsRequest = _reflection.GeneratedProtocolMessageType( "ListScanConfigsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTSCANCONFIGSREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``ListScanConfigs`` method. + { + "DESCRIPTOR": _LISTSCANCONFIGSREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``ListScanConfigs`` method. Attributes: parent: Required. The parent resource name, which should be a project - resource name in the format 'projects/{projectId}'. + resource name in the format ‘projects/{projectId}’. page_token: A token identifying a page of results to be returned. This should be a ``next_page_token`` value returned from a previous @@ -1207,17 +1176,17 @@ will select a reasonable value. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) - ), + }, ) _sym_db.RegisterMessage(ListScanConfigsRequest) UpdateScanConfigRequest = _reflection.GeneratedProtocolMessageType( "UpdateScanConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATESCANCONFIGREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``UpdateScanConfigRequest`` method. + { + "DESCRIPTOR": _UPDATESCANCONFIGREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``UpdateScanConfigRequest`` method. Attributes: @@ -1232,17 +1201,17 @@ buffers/docs/reference/google.protobuf#fieldmask """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateScanConfigRequest) ListScanConfigsResponse = _reflection.GeneratedProtocolMessageType( "ListScanConfigsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTSCANCONFIGSRESPONSE, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Response for the ``ListScanConfigs`` method. + { + "DESCRIPTOR": _LISTSCANCONFIGSRESPONSE, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Response for the ``ListScanConfigs`` method. Attributes: @@ -1253,64 +1222,64 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) - ), + }, ) _sym_db.RegisterMessage(ListScanConfigsResponse) StartScanRunRequest = _reflection.GeneratedProtocolMessageType( "StartScanRunRequest", (_message.Message,), - dict( - DESCRIPTOR=_STARTSCANRUNREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``StartScanRun`` method. + { + "DESCRIPTOR": _STARTSCANRUNREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``StartScanRun`` method. Attributes: name: Required. The resource name of the ScanConfig to be used. The name follows the format of - 'projects/{projectId}/scanConfigs/{scanConfigId}'. + ‘projects/{projectId}/scanConfigs/{scanConfigId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) - ), + }, ) _sym_db.RegisterMessage(StartScanRunRequest) GetScanRunRequest = _reflection.GeneratedProtocolMessageType( "GetScanRunRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETSCANRUNREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``GetScanRun`` method. + { + "DESCRIPTOR": _GETSCANRUNREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``GetScanRun`` method. Attributes: name: Required. The resource name of the ScanRun to be returned. The - name follows the format of 'projects/{projectId}/scanConfigs/{ - scanConfigId}/scanRuns/{scanRunId}'. + name follows the format of ‘projects/{projectId}/scanConfigs/{ + scanConfigId}/scanRuns/{scanRunId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) - ), + }, ) _sym_db.RegisterMessage(GetScanRunRequest) ListScanRunsRequest = _reflection.GeneratedProtocolMessageType( "ListScanRunsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTSCANRUNSREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``ListScanRuns`` method. + { + "DESCRIPTOR": _LISTSCANRUNSREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``ListScanRuns`` method. Attributes: parent: Required. The parent resource name, which should be a scan resource name in the format - 'projects/{projectId}/scanConfigs/{scanConfigId}'. + ‘projects/{projectId}/scanConfigs/{scanConfigId}’. page_token: A token identifying a page of results to be returned. This should be a ``next_page_token`` value returned from a previous @@ -1322,17 +1291,17 @@ will select a reasonable value. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) - ), + }, ) _sym_db.RegisterMessage(ListScanRunsRequest) ListScanRunsResponse = _reflection.GeneratedProtocolMessageType( "ListScanRunsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTSCANRUNSRESPONSE, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Response for the ``ListScanRuns`` method. + { + "DESCRIPTOR": _LISTSCANRUNSRESPONSE, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Response for the ``ListScanRuns`` method. Attributes: @@ -1343,44 +1312,44 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) - ), + }, ) _sym_db.RegisterMessage(ListScanRunsResponse) StopScanRunRequest = _reflection.GeneratedProtocolMessageType( "StopScanRunRequest", (_message.Message,), - dict( - DESCRIPTOR=_STOPSCANRUNREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``StopScanRun`` method. + { + "DESCRIPTOR": _STOPSCANRUNREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``StopScanRun`` method. Attributes: name: Required. The resource name of the ScanRun to be stopped. The - name follows the format of 'projects/{projectId}/scanConfigs/{ - scanConfigId}/scanRuns/{scanRunId}'. + name follows the format of ‘projects/{projectId}/scanConfigs/{ + scanConfigId}/scanRuns/{scanRunId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) - ), + }, ) _sym_db.RegisterMessage(StopScanRunRequest) ListCrawledUrlsRequest = _reflection.GeneratedProtocolMessageType( "ListCrawledUrlsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTCRAWLEDURLSREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``ListCrawledUrls`` method. + { + "DESCRIPTOR": _LISTCRAWLEDURLSREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``ListCrawledUrls`` method. Attributes: parent: Required. The parent resource name, which should be a scan run - resource name in the format 'projects/{projectId}/scanConfigs/ - {scanConfigId}/scanRuns/{scanRunId}'. + resource name in the format ‘projects/{projectId}/scanConfigs/ + {scanConfigId}/scanRuns/{scanRunId}’. page_token: A token identifying a page of results to be returned. This should be a ``next_page_token`` value returned from a previous @@ -1392,17 +1361,17 @@ will select a reasonable value. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) - ), + }, ) _sym_db.RegisterMessage(ListCrawledUrlsRequest) ListCrawledUrlsResponse = _reflection.GeneratedProtocolMessageType( "ListCrawledUrlsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTCRAWLEDURLSRESPONSE, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Response for the ``ListCrawledUrls`` method. + { + "DESCRIPTOR": _LISTCRAWLEDURLSRESPONSE, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Response for the ``ListCrawledUrls`` method. Attributes: @@ -1413,48 +1382,48 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) - ), + }, ) _sym_db.RegisterMessage(ListCrawledUrlsResponse) GetFindingRequest = _reflection.GeneratedProtocolMessageType( "GetFindingRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETFINDINGREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``GetFinding`` method. + { + "DESCRIPTOR": _GETFINDINGREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``GetFinding`` method. Attributes: name: Required. The resource name of the Finding to be returned. The - name follows the format of 'projects/{projectId}/scanConfigs/{ - scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. + name follows the format of ‘projects/{projectId}/scanConfigs/{ + scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) - ), + }, ) _sym_db.RegisterMessage(GetFindingRequest) ListFindingsRequest = _reflection.GeneratedProtocolMessageType( "ListFindingsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTFINDINGSREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``ListFindings`` method. + { + "DESCRIPTOR": _LISTFINDINGSREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``ListFindings`` method. Attributes: parent: Required. The parent resource name, which should be a scan run - resource name in the format 'projects/{projectId}/scanConfigs/ - {scanConfigId}/scanRuns/{scanRunId}'. + resource name in the format ‘projects/{projectId}/scanConfigs/ + {scanConfigId}/scanRuns/{scanRunId}’. filter: Required. The filter expression. The expression must be in the - format: . Supported field: 'finding\_type'. Supported - operator: '='. + format: . Supported field: ‘finding_type’. Supported operator: + ‘=’. page_token: A token identifying a page of results to be returned. This should be a ``next_page_token`` value returned from a previous @@ -1466,17 +1435,17 @@ will select a reasonable value. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) - ), + }, ) _sym_db.RegisterMessage(ListFindingsRequest) ListFindingsResponse = _reflection.GeneratedProtocolMessageType( "ListFindingsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTFINDINGSRESPONSE, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Response for the ``ListFindings`` method. + { + "DESCRIPTOR": _LISTFINDINGSRESPONSE, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Response for the ``ListFindings`` method. Attributes: @@ -1487,37 +1456,37 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) - ), + }, ) _sym_db.RegisterMessage(ListFindingsResponse) ListFindingTypeStatsRequest = _reflection.GeneratedProtocolMessageType( "ListFindingTypeStatsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTFINDINGTYPESTATSREQUEST, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Request for the ``ListFindingTypeStats`` method. + { + "DESCRIPTOR": _LISTFINDINGTYPESTATSREQUEST, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``ListFindingTypeStats`` method. Attributes: parent: Required. The parent resource name, which should be a scan run - resource name in the format 'projects/{projectId}/scanConfigs/ - {scanConfigId}/scanRuns/{scanRunId}'. + resource name in the format ‘projects/{projectId}/scanConfigs/ + {scanConfigId}/scanRuns/{scanRunId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) - ), + }, ) _sym_db.RegisterMessage(ListFindingTypeStatsRequest) ListFindingTypeStatsResponse = _reflection.GeneratedProtocolMessageType( "ListFindingTypeStatsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTFINDINGTYPESTATSRESPONSE, - __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", - __doc__="""Response for the ``ListFindingTypeStats`` method. + { + "DESCRIPTOR": _LISTFINDINGTYPESTATSRESPONSE, + "__module__": "google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + "__doc__": """Response for the ``ListFindingTypeStats`` method. Attributes: @@ -1525,7 +1494,7 @@ The list of FindingTypeStats returned. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) - ), + }, ) _sym_db.RegisterMessage(ListFindingTypeStatsResponse) @@ -1553,9 +1522,7 @@ full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A!websecurityscanner.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platform" - ), + serialized_options=b"\312A!websecurityscanner.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platform", serialized_start=2753, serialized_end=5621, methods=[ @@ -1566,9 +1533,7 @@ containing_service=None, input_type=_CREATESCANCONFIGREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG, - serialized_options=_b( - '\202\323\344\223\0027"(/v1alpha/{parent=projects/*}/scanConfigs:\013scan_config\332A\022parent,scan_config' - ), + serialized_options=b'\202\323\344\223\0027"(/v1alpha/{parent=projects/*}/scanConfigs:\013scan_config\332A\022parent,scan_config', ), _descriptor.MethodDescriptor( name="DeleteScanConfig", @@ -1577,9 +1542,7 @@ containing_service=None, input_type=_DELETESCANCONFIGREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002**(/v1alpha/{name=projects/*/scanConfigs/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002**(/v1alpha/{name=projects/*/scanConfigs/*}\332A\004name", ), _descriptor.MethodDescriptor( name="GetScanConfig", @@ -1588,9 +1551,7 @@ containing_service=None, input_type=_GETSCANCONFIGREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG, - serialized_options=_b( - "\202\323\344\223\002*\022(/v1alpha/{name=projects/*/scanConfigs/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002*\022(/v1alpha/{name=projects/*/scanConfigs/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListScanConfigs", @@ -1599,9 +1560,7 @@ containing_service=None, input_type=_LISTSCANCONFIGSREQUEST, output_type=_LISTSCANCONFIGSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002*\022(/v1alpha/{parent=projects/*}/scanConfigs\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002*\022(/v1alpha/{parent=projects/*}/scanConfigs\332A\006parent", ), _descriptor.MethodDescriptor( name="UpdateScanConfig", @@ -1610,9 +1569,7 @@ containing_service=None, input_type=_UPDATESCANCONFIGREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG, - serialized_options=_b( - "\202\323\344\223\002C24/v1alpha/{scan_config.name=projects/*/scanConfigs/*}:\013scan_config\332A\027scan_config,update_mask" - ), + serialized_options=b"\202\323\344\223\002C24/v1alpha/{scan_config.name=projects/*/scanConfigs/*}:\013scan_config\332A\027scan_config,update_mask", ), _descriptor.MethodDescriptor( name="StartScanRun", @@ -1621,9 +1578,7 @@ containing_service=None, input_type=_STARTSCANRUNREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2._SCANRUN, - serialized_options=_b( - '\202\323\344\223\0023"./v1alpha/{name=projects/*/scanConfigs/*}:start:\001*\332A\004name' - ), + serialized_options=b'\202\323\344\223\0023"./v1alpha/{name=projects/*/scanConfigs/*}:start:\001*\332A\004name', ), _descriptor.MethodDescriptor( name="GetScanRun", @@ -1632,9 +1587,7 @@ containing_service=None, input_type=_GETSCANRUNREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2._SCANRUN, - serialized_options=_b( - "\202\323\344\223\0025\0223/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0025\0223/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListScanRuns", @@ -1643,9 +1596,7 @@ containing_service=None, input_type=_LISTSCANRUNSREQUEST, output_type=_LISTSCANRUNSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0025\0223/v1alpha/{parent=projects/*/scanConfigs/*}/scanRuns\332A\006parent" - ), + serialized_options=b"\202\323\344\223\0025\0223/v1alpha/{parent=projects/*/scanConfigs/*}/scanRuns\332A\006parent", ), _descriptor.MethodDescriptor( name="StopScanRun", @@ -1654,9 +1605,7 @@ containing_service=None, input_type=_STOPSCANRUNREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2._SCANRUN, - serialized_options=_b( - '\202\323\344\223\002="8/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}:stop:\001*\332A\004name' - ), + serialized_options=b'\202\323\344\223\002="8/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}:stop:\001*\332A\004name', ), _descriptor.MethodDescriptor( name="ListCrawledUrls", @@ -1665,9 +1614,7 @@ containing_service=None, input_type=_LISTCRAWLEDURLSREQUEST, output_type=_LISTCRAWLEDURLSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002C\022A/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002C\022A/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls\332A\006parent", ), _descriptor.MethodDescriptor( name="GetFinding", @@ -1676,9 +1623,7 @@ containing_service=None, input_type=_GETFINDINGREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2._FINDING, - serialized_options=_b( - "\202\323\344\223\002@\022>/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002@\022>/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListFindings", @@ -1687,9 +1632,7 @@ containing_service=None, input_type=_LISTFINDINGSREQUEST, output_type=_LISTFINDINGSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002@\022>/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\002@\022>/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\332A\rparent,filter", ), _descriptor.MethodDescriptor( name="ListFindingTypeStats", @@ -1698,9 +1641,7 @@ containing_service=None, input_type=_LISTFINDINGTYPESTATSREQUEST, output_type=_LISTFINDINGTYPESTATSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002H\022F/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002H\022F/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats\332A\006parent", ), ], ) diff --git a/google/cloud/websecurityscanner_v1beta/gapic/enums.py b/google/cloud/websecurityscanner_v1beta/gapic/enums.py index 11c8118..5dc0a80 100644 --- a/google/cloud/websecurityscanner_v1beta/gapic/enums.py +++ b/google/cloud/websecurityscanner_v1beta/gapic/enums.py @@ -56,8 +56,8 @@ 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. + 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. """ @@ -71,7 +71,7 @@ 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. + 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. @@ -241,16 +241,16 @@ class Code(enum.IntEnum): Attributes: CODE_UNSPECIFIED (int): Default value is never used. INTERNAL_ERROR (int): Indicates that the scan run failed due to an internal server error. - SCAN_CONFIG_ISSUE (int): Indicates a scan configuration error, usually due to outdated ScanConfig - settings, such as starting\_urls or the DNS configuration. + SCAN_CONFIG_ISSUE (int): Indicates a scan configuration error, usually due to outdated + ScanConfig settings, such as starting_urls or the DNS configuration. AUTHENTICATION_CONFIG_ISSUE (int): Indicates an authentication error, usually due to outdated ScanConfig authentication settings. TIMED_OUT_WHILE_SCANNING (int): Indicates a scan operation timeout, usually caused by a very large site. TOO_MANY_REDIRECTS (int): Indicates that a scan encountered excessive redirects, either to authentication or some other page outside of the scan scope. TOO_MANY_HTTP_ERRORS (int): Indicates that a scan encountered numerous errors from the web site - pages. When available, most\_common\_http\_error\_code field indicates - the most common HTTP error code encountered during the scan. + pages. When available, most_common_http_error_code field indicates the + most common HTTP error code encountered during the scan. """ CODE_UNSPECIFIED = 0 diff --git a/google/cloud/websecurityscanner_v1beta/gapic/web_security_scanner_client.py b/google/cloud/websecurityscanner_v1beta/gapic/web_security_scanner_client.py index fdf2b67..9c26a76 100644 --- a/google/cloud/websecurityscanner_v1beta/gapic/web_security_scanner_client.py +++ b/google/cloud/websecurityscanner_v1beta/gapic/web_security_scanner_client.py @@ -588,8 +588,8 @@ def update_scan_config( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.websecurityscanner_v1beta.types.ScanConfig` - update_mask (Union[dict, ~google.cloud.websecurityscanner_v1beta.types.FieldMask]): Required. The update mask applies to the resource. For the ``FieldMask`` - definition, see + update_mask (Union[dict, ~google.cloud.websecurityscanner_v1beta.types.FieldMask]): Required. The update mask applies to the resource. For the + ``FieldMask`` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If a dict is provided, it must be of the same form as the protobuf @@ -1177,8 +1177,8 @@ def list_findings( parent (str): Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. - filter_ (str): Required. The filter expression. The expression must be in the format: . - Supported field: 'finding\_type'. Supported operator: '='. + filter_ (str): Required. The filter expression. The expression must be in the + format: . Supported field: 'finding_type'. Supported operator: '='. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page diff --git a/google/cloud/websecurityscanner_v1beta/proto/crawled_url_pb2.py b/google/cloud/websecurityscanner_v1beta/proto/crawled_url_pb2.py index 02dd955..10095da 100644 --- a/google/cloud/websecurityscanner_v1beta/proto/crawled_url_pb2.py +++ b/google/cloud/websecurityscanner_v1beta/proto/crawled_url_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1beta/proto/crawled_url.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -19,12 +16,8 @@ name="google/cloud/websecurityscanner_v1beta/proto/crawled_url.proto", package="google.cloud.websecurityscanner.v1beta", syntax="proto3", - serialized_options=_b( - "\n*com.google.cloud.websecurityscanner.v1betaB\017CrawledUrlProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta" - ), - serialized_pb=_b( - '\n>google/cloud/websecurityscanner_v1beta/proto/crawled_url.proto\x12&google.cloud.websecurityscanner.v1beta"<\n\nCrawledUrl\x12\x13\n\x0bhttp_method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\tB\xc2\x01\n*com.google.cloud.websecurityscanner.v1betaB\x0f\x43rawledUrlProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3' - ), + serialized_options=b"\n*com.google.cloud.websecurityscanner.v1betaB\017CrawledUrlProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta", + serialized_pb=b'\n>google/cloud/websecurityscanner_v1beta/proto/crawled_url.proto\x12&google.cloud.websecurityscanner.v1beta"<\n\nCrawledUrl\x12\x13\n\x0bhttp_method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\tB\xc2\x01\n*com.google.cloud.websecurityscanner.v1betaB\x0f\x43rawledUrlProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3', ) @@ -44,7 +37,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -62,7 +55,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -80,7 +73,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -108,13 +101,13 @@ CrawledUrl = _reflection.GeneratedProtocolMessageType( "CrawledUrl", (_message.Message,), - dict( - DESCRIPTOR=_CRAWLEDURL, - __module__="google.cloud.websecurityscanner_v1beta.proto.crawled_url_pb2", - __doc__="""A CrawledUrl resource represents a URL that was crawled - during a ScanRun. Web Security Scanner Service crawls the web - applications, following all links within the scope of sites, to find the - URLs to test against. + { + "DESCRIPTOR": _CRAWLEDURL, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.crawled_url_pb2", + "__doc__": """A CrawledUrl resource represents a URL that was crawled during a + ScanRun. Web Security Scanner Service crawls the web applications, + following all links within the scope of sites, to find the URLs to test + against. Attributes: @@ -127,7 +120,7 @@ The body of the request that was used to visit the URL. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.CrawledUrl) - ), + }, ) _sym_db.RegisterMessage(CrawledUrl) diff --git a/google/cloud/websecurityscanner_v1beta/proto/finding_addon_pb2.py b/google/cloud/websecurityscanner_v1beta/proto/finding_addon_pb2.py index c9eeda7..a560237 100644 --- a/google/cloud/websecurityscanner_v1beta/proto/finding_addon_pb2.py +++ b/google/cloud/websecurityscanner_v1beta/proto/finding_addon_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1beta/proto/finding_addon.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -19,12 +16,8 @@ name="google/cloud/websecurityscanner_v1beta/proto/finding_addon.proto", package="google.cloud.websecurityscanner.v1beta", syntax="proto3", - serialized_options=_b( - "\n*com.google.cloud.websecurityscanner.v1betaB\021FindingAddonProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta" - ), - serialized_pb=_b( - '\n@google/cloud/websecurityscanner_v1beta/proto/finding_addon.proto\x12&google.cloud.websecurityscanner.v1beta"*\n\x04\x46orm\x12\x12\n\naction_uri\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x03(\t"Q\n\x0fOutdatedLibrary\x12\x14\n\x0clibrary_name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x17\n\x0flearn_more_urls\x18\x03 \x03(\t"?\n\x11ViolatingResource\x12\x14\n\x0c\x63ontent_type\x18\x01 \x01(\t\x12\x14\n\x0cresource_url\x18\x02 \x01(\t"/\n\x14VulnerableParameters\x12\x17\n\x0fparameter_names\x18\x01 \x03(\t"\xe8\x01\n\x11VulnerableHeaders\x12Q\n\x07headers\x18\x01 \x03(\x0b\x32@.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header\x12Y\n\x0fmissing_headers\x18\x02 \x03(\x0b\x32@.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header\x1a%\n\x06Header\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t"2\n\x03Xss\x12\x14\n\x0cstack_traces\x18\x01 \x03(\t\x12\x15\n\rerror_message\x18\x02 \x01(\tB\xc4\x01\n*com.google.cloud.websecurityscanner.v1betaB\x11\x46indingAddonProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3' - ), + serialized_options=b"\n*com.google.cloud.websecurityscanner.v1betaB\021FindingAddonProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta", + serialized_pb=b'\n@google/cloud/websecurityscanner_v1beta/proto/finding_addon.proto\x12&google.cloud.websecurityscanner.v1beta"*\n\x04\x46orm\x12\x12\n\naction_uri\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x03(\t"Q\n\x0fOutdatedLibrary\x12\x14\n\x0clibrary_name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x17\n\x0flearn_more_urls\x18\x03 \x03(\t"?\n\x11ViolatingResource\x12\x14\n\x0c\x63ontent_type\x18\x01 \x01(\t\x12\x14\n\x0cresource_url\x18\x02 \x01(\t"/\n\x14VulnerableParameters\x12\x17\n\x0fparameter_names\x18\x01 \x03(\t"\xe8\x01\n\x11VulnerableHeaders\x12Q\n\x07headers\x18\x01 \x03(\x0b\x32@.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header\x12Y\n\x0fmissing_headers\x18\x02 \x03(\x0b\x32@.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header\x1a%\n\x06Header\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t"2\n\x03Xss\x12\x14\n\x0cstack_traces\x18\x01 \x03(\t\x12\x15\n\rerror_message\x18\x02 \x01(\tB\xc4\x01\n*com.google.cloud.websecurityscanner.v1betaB\x11\x46indingAddonProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3', ) @@ -44,7 +37,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -101,7 +94,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -119,7 +112,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -176,7 +169,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -194,7 +187,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -272,7 +265,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -290,7 +283,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -403,7 +396,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -441,30 +434,30 @@ Form = _reflection.GeneratedProtocolMessageType( "Form", (_message.Message,), - dict( - DESCRIPTOR=_FORM, - __module__="google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", - __doc__="""! Information about a vulnerability with an HTML. + { + "DESCRIPTOR": _FORM, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", + "__doc__": """! Information about a vulnerability with an HTML. Attributes: action_uri: - ! The URI where to send the form when it's submitted. + ! The URI where to send the form when it’s submitted. fields: ! The names of form fields related to the vulnerability. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Form) - ), + }, ) _sym_db.RegisterMessage(Form) OutdatedLibrary = _reflection.GeneratedProtocolMessageType( "OutdatedLibrary", (_message.Message,), - dict( - DESCRIPTOR=_OUTDATEDLIBRARY, - __module__="google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", - __doc__="""Information reported for an outdated library. + { + "DESCRIPTOR": _OUTDATEDLIBRARY, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", + "__doc__": """Information reported for an outdated library. Attributes: @@ -477,17 +470,17 @@ the library. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) - ), + }, ) _sym_db.RegisterMessage(OutdatedLibrary) ViolatingResource = _reflection.GeneratedProtocolMessageType( "ViolatingResource", (_message.Message,), - dict( - DESCRIPTOR=_VIOLATINGRESOURCE, - __module__="google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", - __doc__="""Information regarding any resource causing the + { + "DESCRIPTOR": _VIOLATINGRESOURCE, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", + "__doc__": """Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc. @@ -498,17 +491,17 @@ URL of this violating resource. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ViolatingResource) - ), + }, ) _sym_db.RegisterMessage(ViolatingResource) VulnerableParameters = _reflection.GeneratedProtocolMessageType( "VulnerableParameters", (_message.Message,), - dict( - DESCRIPTOR=_VULNERABLEPARAMETERS, - __module__="google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", - __doc__="""Information about vulnerable request parameters. + { + "DESCRIPTOR": _VULNERABLEPARAMETERS, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", + "__doc__": """Information about vulnerable request parameters. Attributes: @@ -516,21 +509,21 @@ The vulnerable parameter names. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableParameters) - ), + }, ) _sym_db.RegisterMessage(VulnerableParameters) VulnerableHeaders = _reflection.GeneratedProtocolMessageType( "VulnerableHeaders", (_message.Message,), - dict( - Header=_reflection.GeneratedProtocolMessageType( + { + "Header": _reflection.GeneratedProtocolMessageType( "Header", (_message.Message,), - dict( - DESCRIPTOR=_VULNERABLEHEADERS_HEADER, - __module__="google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", - __doc__="""Describes a HTTP Header. + { + "DESCRIPTOR": _VULNERABLEHEADERS_HEADER, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", + "__doc__": """Describes a HTTP Header. Attributes: @@ -540,11 +533,11 @@ Header value. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) - ), + }, ), - DESCRIPTOR=_VULNERABLEHEADERS, - __module__="google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", - __doc__="""Information about vulnerable or missing HTTP Headers. + "DESCRIPTOR": _VULNERABLEHEADERS, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", + "__doc__": """Information about vulnerable or missing HTTP Headers. Attributes: @@ -554,7 +547,7 @@ List of missing headers. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) - ), + }, ) _sym_db.RegisterMessage(VulnerableHeaders) _sym_db.RegisterMessage(VulnerableHeaders.Header) @@ -562,10 +555,10 @@ Xss = _reflection.GeneratedProtocolMessageType( "Xss", (_message.Message,), - dict( - DESCRIPTOR=_XSS, - __module__="google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", - __doc__="""Information reported for an XSS. + { + "DESCRIPTOR": _XSS, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.finding_addon_pb2", + "__doc__": """Information reported for an XSS. Attributes: @@ -575,7 +568,7 @@ An error message generated by a javascript breakage. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Xss) - ), + }, ) _sym_db.RegisterMessage(Xss) diff --git a/google/cloud/websecurityscanner_v1beta/proto/finding_pb2.py b/google/cloud/websecurityscanner_v1beta/proto/finding_pb2.py index a17e7ca..575dceb 100644 --- a/google/cloud/websecurityscanner_v1beta/proto/finding_pb2.py +++ b/google/cloud/websecurityscanner_v1beta/proto/finding_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1beta/proto/finding.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -25,12 +22,8 @@ name="google/cloud/websecurityscanner_v1beta/proto/finding.proto", package="google.cloud.websecurityscanner.v1beta", syntax="proto3", - serialized_options=_b( - "\n*com.google.cloud.websecurityscanner.v1betaB\014FindingProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta" - ), - serialized_pb=_b( - '\n:google/cloud/websecurityscanner_v1beta/proto/finding.proto\x12&google.cloud.websecurityscanner.v1beta\x1a\x19google/api/resource.proto\x1a@google/cloud/websecurityscanner_v1beta/proto/finding_addon.proto"\xa9\x06\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x66inding_type\x18\x02 \x01(\t\x12\x13\n\x0bhttp_method\x18\x03 \x01(\t\x12\x12\n\nfuzzed_url\x18\x04 \x01(\t\x12\x0c\n\x04\x62ody\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x18\n\x10reproduction_url\x18\x07 \x01(\t\x12\x11\n\tframe_url\x18\x08 \x01(\t\x12\x11\n\tfinal_url\x18\t \x01(\t\x12\x13\n\x0btracking_id\x18\n \x01(\t\x12:\n\x04\x66orm\x18\x10 \x01(\x0b\x32,.google.cloud.websecurityscanner.v1beta.Form\x12Q\n\x10outdated_library\x18\x0b \x01(\x0b\x32\x37.google.cloud.websecurityscanner.v1beta.OutdatedLibrary\x12U\n\x12violating_resource\x18\x0c \x01(\x0b\x32\x39.google.cloud.websecurityscanner.v1beta.ViolatingResource\x12U\n\x12vulnerable_headers\x18\x0f \x01(\x0b\x32\x39.google.cloud.websecurityscanner.v1beta.VulnerableHeaders\x12[\n\x15vulnerable_parameters\x18\r \x01(\x0b\x32<.google.cloud.websecurityscanner.v1beta.VulnerableParameters\x12\x38\n\x03xss\x18\x0e \x01(\x0b\x32+.google.cloud.websecurityscanner.v1beta.Xss:\x84\x01\xea\x41\x80\x01\n)websecurityscanner.googleapis.com/Finding\x12Sprojects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}B\xbf\x01\n*com.google.cloud.websecurityscanner.v1betaB\x0c\x46indingProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3' - ), + serialized_options=b"\n*com.google.cloud.websecurityscanner.v1betaB\014FindingProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta", + serialized_pb=b'\n:google/cloud/websecurityscanner_v1beta/proto/finding.proto\x12&google.cloud.websecurityscanner.v1beta\x1a\x19google/api/resource.proto\x1a@google/cloud/websecurityscanner_v1beta/proto/finding_addon.proto"\xa9\x06\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x66inding_type\x18\x02 \x01(\t\x12\x13\n\x0bhttp_method\x18\x03 \x01(\t\x12\x12\n\nfuzzed_url\x18\x04 \x01(\t\x12\x0c\n\x04\x62ody\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x18\n\x10reproduction_url\x18\x07 \x01(\t\x12\x11\n\tframe_url\x18\x08 \x01(\t\x12\x11\n\tfinal_url\x18\t \x01(\t\x12\x13\n\x0btracking_id\x18\n \x01(\t\x12:\n\x04\x66orm\x18\x10 \x01(\x0b\x32,.google.cloud.websecurityscanner.v1beta.Form\x12Q\n\x10outdated_library\x18\x0b \x01(\x0b\x32\x37.google.cloud.websecurityscanner.v1beta.OutdatedLibrary\x12U\n\x12violating_resource\x18\x0c \x01(\x0b\x32\x39.google.cloud.websecurityscanner.v1beta.ViolatingResource\x12U\n\x12vulnerable_headers\x18\x0f \x01(\x0b\x32\x39.google.cloud.websecurityscanner.v1beta.VulnerableHeaders\x12[\n\x15vulnerable_parameters\x18\r \x01(\x0b\x32<.google.cloud.websecurityscanner.v1beta.VulnerableParameters\x12\x38\n\x03xss\x18\x0e \x01(\x0b\x32+.google.cloud.websecurityscanner.v1beta.Xss:\x84\x01\xea\x41\x80\x01\n)websecurityscanner.googleapis.com/Finding\x12Sprojects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}B\xbf\x01\n*com.google.cloud.websecurityscanner.v1betaB\x0c\x46indingProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3', dependencies=[ google_dot_api_dot_resource__pb2.DESCRIPTOR, google_dot_cloud_dot_websecurityscanner__v1beta_dot_proto_dot_finding__addon__pb2.DESCRIPTOR, @@ -54,7 +47,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -72,7 +65,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -90,7 +83,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -108,7 +101,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -126,7 +119,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -144,7 +137,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -162,7 +155,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -180,7 +173,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -198,7 +191,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -216,7 +209,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -337,9 +330,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352A\200\001\n)websecurityscanner.googleapis.com/Finding\022Sprojects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}" - ), + serialized_options=b"\352A\200\001\n)websecurityscanner.googleapis.com/Finding\022Sprojects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -384,18 +375,18 @@ Finding = _reflection.GeneratedProtocolMessageType( "Finding", (_message.Message,), - dict( - DESCRIPTOR=_FINDING, - __module__="google.cloud.websecurityscanner_v1beta.proto.finding_pb2", - __doc__="""A Finding resource represents a vulnerability instance + { + "DESCRIPTOR": _FINDING, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.finding_pb2", + "__doc__": """A Finding resource represents a vulnerability instance identified during a ScanRun. Attributes: name: The resource name of the Finding. The name follows the format - of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{ - scanRunId}/findings/{findingId}'. The finding IDs are + of ‘projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{ + scanRunId}/findings/{findingId}’. The finding IDs are generated by the system. finding_type: The type of the Finding. Detailed and up-to-date information @@ -443,7 +434,7 @@ An addon containing information reported for an XSS, if any. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Finding) - ), + }, ) _sym_db.RegisterMessage(Finding) diff --git a/google/cloud/websecurityscanner_v1beta/proto/finding_type_stats_pb2.py b/google/cloud/websecurityscanner_v1beta/proto/finding_type_stats_pb2.py index dd944cb..3f64f1c 100644 --- a/google/cloud/websecurityscanner_v1beta/proto/finding_type_stats_pb2.py +++ b/google/cloud/websecurityscanner_v1beta/proto/finding_type_stats_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1beta/proto/finding_type_stats.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -19,12 +16,8 @@ name="google/cloud/websecurityscanner_v1beta/proto/finding_type_stats.proto", package="google.cloud.websecurityscanner.v1beta", syntax="proto3", - serialized_options=_b( - "\n*com.google.cloud.websecurityscanner.v1betaB\025FindingTypeStatsProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta" - ), - serialized_pb=_b( - '\nEgoogle/cloud/websecurityscanner_v1beta/proto/finding_type_stats.proto\x12&google.cloud.websecurityscanner.v1beta"?\n\x10\x46indingTypeStats\x12\x14\n\x0c\x66inding_type\x18\x01 \x01(\t\x12\x15\n\rfinding_count\x18\x02 \x01(\x05\x42\xc8\x01\n*com.google.cloud.websecurityscanner.v1betaB\x15\x46indingTypeStatsProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3' - ), + serialized_options=b"\n*com.google.cloud.websecurityscanner.v1betaB\025FindingTypeStatsProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta", + serialized_pb=b'\nEgoogle/cloud/websecurityscanner_v1beta/proto/finding_type_stats.proto\x12&google.cloud.websecurityscanner.v1beta"?\n\x10\x46indingTypeStats\x12\x14\n\x0c\x66inding_type\x18\x01 \x01(\t\x12\x15\n\rfinding_count\x18\x02 \x01(\x05\x42\xc8\x01\n*com.google.cloud.websecurityscanner.v1betaB\x15\x46indingTypeStatsProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3', ) @@ -44,7 +37,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -90,10 +83,10 @@ FindingTypeStats = _reflection.GeneratedProtocolMessageType( "FindingTypeStats", (_message.Message,), - dict( - DESCRIPTOR=_FINDINGTYPESTATS, - __module__="google.cloud.websecurityscanner_v1beta.proto.finding_type_stats_pb2", - __doc__="""A FindingTypeStats resource represents stats regarding a + { + "DESCRIPTOR": _FINDINGTYPESTATS, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.finding_type_stats_pb2", + "__doc__": """A FindingTypeStats resource represents stats regarding a specific FindingType of Findings under a given ScanRun. @@ -104,7 +97,7 @@ The count of findings belonging to this finding type. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.FindingTypeStats) - ), + }, ) _sym_db.RegisterMessage(FindingTypeStats) diff --git a/google/cloud/websecurityscanner_v1beta/proto/scan_config_error_pb2.py b/google/cloud/websecurityscanner_v1beta/proto/scan_config_error_pb2.py index ce90e7d..77a4eee 100644 --- a/google/cloud/websecurityscanner_v1beta/proto/scan_config_error_pb2.py +++ b/google/cloud/websecurityscanner_v1beta/proto/scan_config_error_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1beta/proto/scan_config_error.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -19,12 +16,8 @@ name="google/cloud/websecurityscanner_v1beta/proto/scan_config_error.proto", package="google.cloud.websecurityscanner.v1beta", syntax="proto3", - serialized_options=_b( - "\n*com.google.cloud.websecurityscanner.v1betaB\024ScanConfigErrorProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta" - ), - serialized_pb=_b( - '\nDgoogle/cloud/websecurityscanner_v1beta/proto/scan_config_error.proto\x12&google.cloud.websecurityscanner.v1beta"\xed\x0b\n\x0fScanConfigError\x12J\n\x04\x63ode\x18\x01 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code\x12\x12\n\nfield_name\x18\x02 \x01(\t"\xf9\n\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eINTERNAL_ERROR\x10\x01\x12\x1f\n\x1b\x41PPENGINE_API_BACKEND_ERROR\x10\x02\x12 \n\x1c\x41PPENGINE_API_NOT_ACCESSIBLE\x10\x03\x12"\n\x1e\x41PPENGINE_DEFAULT_HOST_MISSING\x10\x04\x12!\n\x1d\x43\x41NNOT_USE_GOOGLE_COM_ACCOUNT\x10\x06\x12\x1c\n\x18\x43\x41NNOT_USE_OWNER_ACCOUNT\x10\x07\x12\x1d\n\x19\x43OMPUTE_API_BACKEND_ERROR\x10\x08\x12\x1e\n\x1a\x43OMPUTE_API_NOT_ACCESSIBLE\x10\t\x12\x37\n3CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT\x10\n\x12\x1e\n\x1a\x43USTOM_LOGIN_URL_MALFORMED\x10\x0b\x12\x33\n/CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\x10\x0c\x12\x31\n-CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS\x10\r\x12\x30\n,CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS\x10\x0e\x12.\n*CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS\x10\x0f\x12\x17\n\x13\x44UPLICATE_SCAN_NAME\x10\x10\x12\x17\n\x13INVALID_FIELD_VALUE\x10\x12\x12$\n FAILED_TO_AUTHENTICATE_TO_TARGET\x10\x13\x12\x1c\n\x18\x46INDING_TYPE_UNSPECIFIED\x10\x14\x12\x1d\n\x19\x46ORBIDDEN_TO_SCAN_COMPUTE\x10\x15\x12$\n FORBIDDEN_UPDATE_TO_MANAGED_SCAN\x10+\x12\x14\n\x10MALFORMED_FILTER\x10\x16\x12\x1b\n\x17MALFORMED_RESOURCE_NAME\x10\x17\x12\x14\n\x10PROJECT_INACTIVE\x10\x18\x12\x12\n\x0eREQUIRED_FIELD\x10\x19\x12\x1e\n\x1aRESOURCE_NAME_INCONSISTENT\x10\x1a\x12\x18\n\x14SCAN_ALREADY_RUNNING\x10\x1b\x12\x14\n\x10SCAN_NOT_RUNNING\x10\x1c\x12/\n+SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT\x10\x1d\x12\x16\n\x12SEED_URL_MALFORMED\x10\x1e\x12+\n\'SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\x10\x1f\x12)\n%SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS\x10 \x12(\n$SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS\x10!\x12&\n"SEED_URL_HAS_UNRESERVED_IP_ADDRESS\x10#\x12"\n\x1eSERVICE_ACCOUNT_NOT_CONFIGURED\x10$\x12\x12\n\x0eTOO_MANY_SCANS\x10%\x12"\n\x1eUNABLE_TO_RESOLVE_PROJECT_INFO\x10&\x12(\n$UNSUPPORTED_BLACKLIST_PATTERN_FORMAT\x10\'\x12\x16\n\x12UNSUPPORTED_FILTER\x10(\x12\x1c\n\x18UNSUPPORTED_FINDING_TYPE\x10)\x12\x1a\n\x16UNSUPPORTED_URL_SCHEME\x10*\x1a\x02\x10\x01\x42\xc7\x01\n*com.google.cloud.websecurityscanner.v1betaB\x14ScanConfigErrorProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3' - ), + serialized_options=b"\n*com.google.cloud.websecurityscanner.v1betaB\024ScanConfigErrorProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta", + serialized_pb=b'\nDgoogle/cloud/websecurityscanner_v1beta/proto/scan_config_error.proto\x12&google.cloud.websecurityscanner.v1beta"\xed\x0b\n\x0fScanConfigError\x12J\n\x04\x63ode\x18\x01 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code\x12\x12\n\nfield_name\x18\x02 \x01(\t"\xf9\n\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eINTERNAL_ERROR\x10\x01\x12\x1f\n\x1b\x41PPENGINE_API_BACKEND_ERROR\x10\x02\x12 \n\x1c\x41PPENGINE_API_NOT_ACCESSIBLE\x10\x03\x12"\n\x1e\x41PPENGINE_DEFAULT_HOST_MISSING\x10\x04\x12!\n\x1d\x43\x41NNOT_USE_GOOGLE_COM_ACCOUNT\x10\x06\x12\x1c\n\x18\x43\x41NNOT_USE_OWNER_ACCOUNT\x10\x07\x12\x1d\n\x19\x43OMPUTE_API_BACKEND_ERROR\x10\x08\x12\x1e\n\x1a\x43OMPUTE_API_NOT_ACCESSIBLE\x10\t\x12\x37\n3CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT\x10\n\x12\x1e\n\x1a\x43USTOM_LOGIN_URL_MALFORMED\x10\x0b\x12\x33\n/CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\x10\x0c\x12\x31\n-CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS\x10\r\x12\x30\n,CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS\x10\x0e\x12.\n*CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS\x10\x0f\x12\x17\n\x13\x44UPLICATE_SCAN_NAME\x10\x10\x12\x17\n\x13INVALID_FIELD_VALUE\x10\x12\x12$\n FAILED_TO_AUTHENTICATE_TO_TARGET\x10\x13\x12\x1c\n\x18\x46INDING_TYPE_UNSPECIFIED\x10\x14\x12\x1d\n\x19\x46ORBIDDEN_TO_SCAN_COMPUTE\x10\x15\x12$\n FORBIDDEN_UPDATE_TO_MANAGED_SCAN\x10+\x12\x14\n\x10MALFORMED_FILTER\x10\x16\x12\x1b\n\x17MALFORMED_RESOURCE_NAME\x10\x17\x12\x14\n\x10PROJECT_INACTIVE\x10\x18\x12\x12\n\x0eREQUIRED_FIELD\x10\x19\x12\x1e\n\x1aRESOURCE_NAME_INCONSISTENT\x10\x1a\x12\x18\n\x14SCAN_ALREADY_RUNNING\x10\x1b\x12\x14\n\x10SCAN_NOT_RUNNING\x10\x1c\x12/\n+SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT\x10\x1d\x12\x16\n\x12SEED_URL_MALFORMED\x10\x1e\x12+\n\'SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\x10\x1f\x12)\n%SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS\x10 \x12(\n$SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS\x10!\x12&\n"SEED_URL_HAS_UNRESERVED_IP_ADDRESS\x10#\x12"\n\x1eSERVICE_ACCOUNT_NOT_CONFIGURED\x10$\x12\x12\n\x0eTOO_MANY_SCANS\x10%\x12"\n\x1eUNABLE_TO_RESOLVE_PROJECT_INFO\x10&\x12(\n$UNSUPPORTED_BLACKLIST_PATTERN_FORMAT\x10\'\x12\x16\n\x12UNSUPPORTED_FILTER\x10(\x12\x1c\n\x18UNSUPPORTED_FINDING_TYPE\x10)\x12\x1a\n\x16UNSUPPORTED_URL_SCHEME\x10*\x1a\x02\x10\x01\x42\xc7\x01\n*com.google.cloud.websecurityscanner.v1betaB\x14ScanConfigErrorProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3', ) @@ -322,7 +315,7 @@ ), ], containing_type=None, - serialized_options=_b("\020\001"), + serialized_options=b"\020\001", serialized_start=229, serialized_end=1630, ) @@ -363,7 +356,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -393,10 +386,10 @@ ScanConfigError = _reflection.GeneratedProtocolMessageType( "ScanConfigError", (_message.Message,), - dict( - DESCRIPTOR=_SCANCONFIGERROR, - __module__="google.cloud.websecurityscanner_v1beta.proto.scan_config_error_pb2", - __doc__="""Defines a custom error message used by CreateScanConfig + { + "DESCRIPTOR": _SCANCONFIGERROR, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.scan_config_error_pb2", + "__doc__": """Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error. @@ -407,12 +400,12 @@ Indicates the reason code for a configuration failure. field_name: Indicates the full name of the ScanConfig field that triggers - this error, for example "scan\_config.max\_qps". This field is + this error, for example “scan_config.max_qps”. This field is provided for troubleshooting purposes only and its actual value can change in the future. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfigError) - ), + }, ) _sym_db.RegisterMessage(ScanConfigError) diff --git a/google/cloud/websecurityscanner_v1beta/proto/scan_config_pb2.py b/google/cloud/websecurityscanner_v1beta/proto/scan_config_pb2.py index dadf657..962cea0 100644 --- a/google/cloud/websecurityscanner_v1beta/proto/scan_config_pb2.py +++ b/google/cloud/websecurityscanner_v1beta/proto/scan_config_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1beta/proto/scan_config.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -27,12 +24,8 @@ name="google/cloud/websecurityscanner_v1beta/proto/scan_config.proto", package="google.cloud.websecurityscanner.v1beta", syntax="proto3", - serialized_options=_b( - "\n*com.google.cloud.websecurityscanner.v1betaB\017ScanConfigProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta" - ), - serialized_pb=_b( - '\n>google/cloud/websecurityscanner_v1beta/proto/scan_config.proto\x12&google.cloud.websecurityscanner.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a;google/cloud/websecurityscanner_v1beta/proto/scan_run.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xa6\r\n\nScanConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07max_qps\x18\x03 \x01(\x05\x12\x1a\n\rstarting_urls\x18\x04 \x03(\tB\x03\xe0\x41\x02\x12Y\n\x0e\x61uthentication\x18\x05 \x01(\x0b\x32\x41.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication\x12P\n\nuser_agent\x18\x06 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent\x12\x1a\n\x12\x62lacklist_patterns\x18\x07 \x03(\t\x12M\n\x08schedule\x18\x08 \x01(\x0b\x32;.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule\x12[\n\x10target_platforms\x18\t \x03(\x0e\x32\x41.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform\x12{\n!export_to_security_command_center\x18\n \x01(\x0e\x32P.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter\x12\x43\n\nlatest_run\x18\x0b \x01(\x0b\x32/.google.cloud.websecurityscanner.v1beta.ScanRun\x12P\n\nrisk_level\x18\x0c \x01(\x0e\x32<.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel\x1a\x94\x03\n\x0e\x41uthentication\x12i\n\x0egoogle_account\x18\x01 \x01(\x0b\x32O.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountH\x00\x12i\n\x0e\x63ustom_account\x18\x02 \x01(\x0b\x32O.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountH\x00\x1a@\n\rGoogleAccount\x12\x15\n\x08username\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x08password\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x04\x1aX\n\rCustomAccount\x12\x15\n\x08username\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x08password\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x04\x12\x16\n\tlogin_url\x18\x03 \x01(\tB\x03\xe0\x41\x02\x42\x10\n\x0e\x61uthentication\x1a\x62\n\x08Schedule\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12#\n\x16interval_duration_days\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02"`\n\tUserAgent\x12\x1a\n\x16USER_AGENT_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43HROME_LINUX\x10\x01\x12\x12\n\x0e\x43HROME_ANDROID\x10\x02\x12\x11\n\rSAFARI_IPHONE\x10\x03"N\n\x0eTargetPlatform\x12\x1f\n\x1bTARGET_PLATFORM_UNSPECIFIED\x10\x00\x12\x0e\n\nAPP_ENGINE\x10\x01\x12\x0b\n\x07\x43OMPUTE\x10\x02"<\n\tRiskLevel\x12\x1a\n\x16RISK_LEVEL_UNSPECIFIED\x10\x00\x12\n\n\x06NORMAL\x10\x01\x12\x07\n\x03LOW\x10\x02"m\n\x1d\x45xportToSecurityCommandCenter\x12\x31\n-EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02:_\xea\x41\\\n,websecurityscanner.googleapis.com/ScanConfig\x12,projects/{project}/scanConfigs/{scan_config}B\xc2\x01\n*com.google.cloud.websecurityscanner.v1betaB\x0fScanConfigProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3' - ), + serialized_options=b"\n*com.google.cloud.websecurityscanner.v1betaB\017ScanConfigProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta", + serialized_pb=b'\n>google/cloud/websecurityscanner_v1beta/proto/scan_config.proto\x12&google.cloud.websecurityscanner.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a;google/cloud/websecurityscanner_v1beta/proto/scan_run.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xa6\r\n\nScanConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07max_qps\x18\x03 \x01(\x05\x12\x1a\n\rstarting_urls\x18\x04 \x03(\tB\x03\xe0\x41\x02\x12Y\n\x0e\x61uthentication\x18\x05 \x01(\x0b\x32\x41.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication\x12P\n\nuser_agent\x18\x06 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent\x12\x1a\n\x12\x62lacklist_patterns\x18\x07 \x03(\t\x12M\n\x08schedule\x18\x08 \x01(\x0b\x32;.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule\x12[\n\x10target_platforms\x18\t \x03(\x0e\x32\x41.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform\x12{\n!export_to_security_command_center\x18\n \x01(\x0e\x32P.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter\x12\x43\n\nlatest_run\x18\x0b \x01(\x0b\x32/.google.cloud.websecurityscanner.v1beta.ScanRun\x12P\n\nrisk_level\x18\x0c \x01(\x0e\x32<.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel\x1a\x94\x03\n\x0e\x41uthentication\x12i\n\x0egoogle_account\x18\x01 \x01(\x0b\x32O.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountH\x00\x12i\n\x0e\x63ustom_account\x18\x02 \x01(\x0b\x32O.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountH\x00\x1a@\n\rGoogleAccount\x12\x15\n\x08username\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x08password\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x04\x1aX\n\rCustomAccount\x12\x15\n\x08username\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x08password\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x04\x12\x16\n\tlogin_url\x18\x03 \x01(\tB\x03\xe0\x41\x02\x42\x10\n\x0e\x61uthentication\x1a\x62\n\x08Schedule\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12#\n\x16interval_duration_days\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02"`\n\tUserAgent\x12\x1a\n\x16USER_AGENT_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43HROME_LINUX\x10\x01\x12\x12\n\x0e\x43HROME_ANDROID\x10\x02\x12\x11\n\rSAFARI_IPHONE\x10\x03"N\n\x0eTargetPlatform\x12\x1f\n\x1bTARGET_PLATFORM_UNSPECIFIED\x10\x00\x12\x0e\n\nAPP_ENGINE\x10\x01\x12\x0b\n\x07\x43OMPUTE\x10\x02"<\n\tRiskLevel\x12\x1a\n\x16RISK_LEVEL_UNSPECIFIED\x10\x00\x12\n\n\x06NORMAL\x10\x01\x12\x07\n\x03LOW\x10\x02"m\n\x1d\x45xportToSecurityCommandCenter\x12\x31\n-EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02:_\xea\x41\\\n,websecurityscanner.googleapis.com/ScanConfig\x12,projects/{project}/scanConfigs/{scan_config}B\xc2\x01\n*com.google.cloud.websecurityscanner.v1betaB\x0fScanConfigProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3', dependencies=[ google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -170,13 +163,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -188,13 +181,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\340A\004"), + serialized_options=b"\340A\002\340A\004", file=DESCRIPTOR, ), ], @@ -226,13 +219,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -244,13 +237,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\340A\004"), + serialized_options=b"\340A\002\340A\004", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -262,13 +255,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -391,7 +384,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -423,7 +416,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -441,13 +434,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -483,7 +476,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -639,9 +632,7 @@ _SCANCONFIG_RISKLEVEL, _SCANCONFIG_EXPORTTOSECURITYCOMMANDCENTER, ], - serialized_options=_b( - "\352A\\\n,websecurityscanner.googleapis.com/ScanConfig\022,projects/{project}/scanConfigs/{scan_config}" - ), + serialized_options=b"\352A\\\n,websecurityscanner.googleapis.com/ScanConfig\022,projects/{project}/scanConfigs/{scan_config}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -698,18 +689,19 @@ ScanConfig = _reflection.GeneratedProtocolMessageType( "ScanConfig", (_message.Message,), - dict( - Authentication=_reflection.GeneratedProtocolMessageType( + { + "Authentication": _reflection.GeneratedProtocolMessageType( "Authentication", (_message.Message,), - dict( - GoogleAccount=_reflection.GeneratedProtocolMessageType( + { + "GoogleAccount": _reflection.GeneratedProtocolMessageType( "GoogleAccount", (_message.Message,), - dict( - DESCRIPTOR=_SCANCONFIG_AUTHENTICATION_GOOGLEACCOUNT, - __module__="google.cloud.websecurityscanner_v1beta.proto.scan_config_pb2", - __doc__="""Describes authentication configuration that uses a Google account. + { + "DESCRIPTOR": _SCANCONFIG_AUTHENTICATION_GOOGLEACCOUNT, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.scan_config_pb2", + "__doc__": """Describes authentication configuration that uses a Google + account. Attributes: @@ -721,15 +713,15 @@ response nor included in audit logs. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - ), + }, ), - CustomAccount=_reflection.GeneratedProtocolMessageType( + "CustomAccount": _reflection.GeneratedProtocolMessageType( "CustomAccount", (_message.Message,), - dict( - DESCRIPTOR=_SCANCONFIG_AUTHENTICATION_CUSTOMACCOUNT, - __module__="google.cloud.websecurityscanner_v1beta.proto.scan_config_pb2", - __doc__="""Describes authentication configuration that uses a custom + { + "DESCRIPTOR": _SCANCONFIG_AUTHENTICATION_CUSTOMACCOUNT, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.scan_config_pb2", + "__doc__": """Describes authentication configuration that uses a custom account. @@ -744,11 +736,11 @@ Required. The login form URL of the website. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - ), + }, ), - DESCRIPTOR=_SCANCONFIG_AUTHENTICATION, - __module__="google.cloud.websecurityscanner_v1beta.proto.scan_config_pb2", - __doc__="""Scan authentication configuration. + "DESCRIPTOR": _SCANCONFIG_AUTHENTICATION, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.scan_config_pb2", + "__doc__": """Scan authentication configuration. Attributes: @@ -760,15 +752,15 @@ Authentication using a custom account. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) - ), + }, ), - Schedule=_reflection.GeneratedProtocolMessageType( + "Schedule": _reflection.GeneratedProtocolMessageType( "Schedule", (_message.Message,), - dict( - DESCRIPTOR=_SCANCONFIG_SCHEDULE, - __module__="google.cloud.websecurityscanner_v1beta.proto.scan_config_pb2", - __doc__="""Scan schedule configuration. + { + "DESCRIPTOR": _SCANCONFIG_SCHEDULE, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.scan_config_pb2", + "__doc__": """Scan schedule configuration. Attributes: @@ -781,18 +773,18 @@ Required. The duration of time between executions in days. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) - ), + }, ), - DESCRIPTOR=_SCANCONFIG, - __module__="google.cloud.websecurityscanner_v1beta.proto.scan_config_pb2", - __doc__="""A ScanConfig resource contains the configurations to + "DESCRIPTOR": _SCANCONFIG, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.scan_config_pb2", + "__doc__": """A ScanConfig resource contains the configurations to launch a scan. Attributes: name: The resource name of the ScanConfig. The name follows the - format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. + format of ‘projects/{projectId}/scanConfigs/{scanConfigId}’. The ScanConfig IDs are generated by the system. display_name: Required. The user provided display name of the ScanConfig. @@ -800,7 +792,7 @@ The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, - 20] range will be rejected with INVALID\_ARGUMENT error. + 20] range will be rejected with INVALID_ARGUMENT error. starting_urls: Required. The starting URLs from which the scanner finds site pages. @@ -816,7 +808,7 @@ The schedule of the ScanConfig. target_platforms: Set of Cloud Platforms targeted by the scan. If empty, - APP\_ENGINE will be used as a default. + APP_ENGINE will be used as a default. export_to_security_command_center: Controls export of scan configurations and results to Cloud Security Command Center. @@ -826,7 +818,7 @@ The risk level selected for the scan """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig) - ), + }, ) _sym_db.RegisterMessage(ScanConfig) _sym_db.RegisterMessage(ScanConfig.Authentication) diff --git a/google/cloud/websecurityscanner_v1beta/proto/scan_run_error_trace_pb2.py b/google/cloud/websecurityscanner_v1beta/proto/scan_run_error_trace_pb2.py index b5975a7..215cb3a 100644 --- a/google/cloud/websecurityscanner_v1beta/proto/scan_run_error_trace_pb2.py +++ b/google/cloud/websecurityscanner_v1beta/proto/scan_run_error_trace_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1beta/proto/scan_run_error_trace.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -24,12 +21,8 @@ name="google/cloud/websecurityscanner_v1beta/proto/scan_run_error_trace.proto", package="google.cloud.websecurityscanner.v1beta", syntax="proto3", - serialized_options=_b( - "\n*com.google.cloud.websecurityscanner.v1betaB\026ScanRunErrorTraceProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta" - ), - serialized_pb=_b( - '\nGgoogle/cloud/websecurityscanner_v1beta/proto/scan_run_error_trace.proto\x12&google.cloud.websecurityscanner.v1beta\x1a\x44google/cloud/websecurityscanner_v1beta/proto/scan_config_error.proto"\x95\x03\n\x11ScanRunErrorTrace\x12L\n\x04\x63ode\x18\x01 \x01(\x0e\x32>.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code\x12R\n\x11scan_config_error\x18\x02 \x01(\x0b\x32\x37.google.cloud.websecurityscanner.v1beta.ScanConfigError\x12#\n\x1bmost_common_http_error_code\x18\x03 \x01(\x05"\xb8\x01\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eINTERNAL_ERROR\x10\x01\x12\x15\n\x11SCAN_CONFIG_ISSUE\x10\x02\x12\x1f\n\x1b\x41UTHENTICATION_CONFIG_ISSUE\x10\x03\x12\x1c\n\x18TIMED_OUT_WHILE_SCANNING\x10\x04\x12\x16\n\x12TOO_MANY_REDIRECTS\x10\x05\x12\x18\n\x14TOO_MANY_HTTP_ERRORS\x10\x06\x42\xc9\x01\n*com.google.cloud.websecurityscanner.v1betaB\x16ScanRunErrorTraceProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3' - ), + serialized_options=b"\n*com.google.cloud.websecurityscanner.v1betaB\026ScanRunErrorTraceProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta", + serialized_pb=b'\nGgoogle/cloud/websecurityscanner_v1beta/proto/scan_run_error_trace.proto\x12&google.cloud.websecurityscanner.v1beta\x1a\x44google/cloud/websecurityscanner_v1beta/proto/scan_config_error.proto"\x95\x03\n\x11ScanRunErrorTrace\x12L\n\x04\x63ode\x18\x01 \x01(\x0e\x32>.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code\x12R\n\x11scan_config_error\x18\x02 \x01(\x0b\x32\x37.google.cloud.websecurityscanner.v1beta.ScanConfigError\x12#\n\x1bmost_common_http_error_code\x18\x03 \x01(\x05"\xb8\x01\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eINTERNAL_ERROR\x10\x01\x12\x15\n\x11SCAN_CONFIG_ISSUE\x10\x02\x12\x1f\n\x1b\x41UTHENTICATION_CONFIG_ISSUE\x10\x03\x12\x1c\n\x18TIMED_OUT_WHILE_SCANNING\x10\x04\x12\x16\n\x12TOO_MANY_REDIRECTS\x10\x05\x12\x18\n\x14TOO_MANY_HTTP_ERRORS\x10\x06\x42\xc9\x01\n*com.google.cloud.websecurityscanner.v1betaB\x16ScanRunErrorTraceProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3', dependencies=[ google_dot_cloud_dot_websecurityscanner__v1beta_dot_proto_dot_scan__config__error__pb2.DESCRIPTOR ], @@ -183,27 +176,27 @@ ScanRunErrorTrace = _reflection.GeneratedProtocolMessageType( "ScanRunErrorTrace", (_message.Message,), - dict( - DESCRIPTOR=_SCANRUNERRORTRACE, - __module__="google.cloud.websecurityscanner_v1beta.proto.scan_run_error_trace_pb2", - __doc__="""Output only. Defines an error trace message for a ScanRun. + { + "DESCRIPTOR": _SCANRUNERRORTRACE, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.scan_run_error_trace_pb2", + "__doc__": """Output only. Defines an error trace message for a ScanRun. Attributes: code: Indicates the error reason code. scan_config_error: - If the scan encounters SCAN\_CONFIG\_ISSUE error, this field - has the error message encountered during scan configuration + If the scan encounters SCAN_CONFIG_ISSUE error, this field has + the error message encountered during scan configuration validation that is performed before each scan run. most_common_http_error_code: - If the scan encounters TOO\_MANY\_HTTP\_ERRORS, this field + If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has - encountered too many NOT\_FOUND responses. + encountered too many NOT_FOUND responses. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) - ), + }, ) _sym_db.RegisterMessage(ScanRunErrorTrace) diff --git a/google/cloud/websecurityscanner_v1beta/proto/scan_run_pb2.py b/google/cloud/websecurityscanner_v1beta/proto/scan_run_pb2.py index bfea80e..16af8c5 100644 --- a/google/cloud/websecurityscanner_v1beta/proto/scan_run_pb2.py +++ b/google/cloud/websecurityscanner_v1beta/proto/scan_run_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1beta/proto/scan_run.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -29,12 +26,8 @@ name="google/cloud/websecurityscanner_v1beta/proto/scan_run.proto", package="google.cloud.websecurityscanner.v1beta", syntax="proto3", - serialized_options=_b( - "\n*com.google.cloud.websecurityscanner.v1betaB\014ScanRunProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta" - ), - serialized_pb=_b( - '\n;google/cloud/websecurityscanner_v1beta/proto/scan_run.proto\x12&google.cloud.websecurityscanner.v1beta\x1a\x19google/api/resource.proto\x1aGgoogle/cloud/websecurityscanner_v1beta/proto/scan_run_error_trace.proto\x1aIgoogle/cloud/websecurityscanner_v1beta/proto/scan_run_warning_trace.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xd2\x06\n\x07ScanRun\x12\x0c\n\x04name\x18\x01 \x01(\t\x12W\n\x0f\x65xecution_state\x18\x02 \x01(\x0e\x32>.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState\x12Q\n\x0cresult_state\x18\x03 \x01(\x0e\x32;.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12urls_crawled_count\x18\x06 \x01(\x03\x12\x19\n\x11urls_tested_count\x18\x07 \x01(\x03\x12\x1b\n\x13has_vulnerabilities\x18\x08 \x01(\x08\x12\x18\n\x10progress_percent\x18\t \x01(\x05\x12N\n\x0b\x65rror_trace\x18\n \x01(\x0b\x32\x39.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace\x12S\n\x0ewarning_traces\x18\x0b \x03(\x0b\x32;.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace"Y\n\x0e\x45xecutionState\x12\x1f\n\x1b\x45XECUTION_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0c\n\x08SCANNING\x10\x02\x12\x0c\n\x08\x46INISHED\x10\x03"O\n\x0bResultState\x12\x1c\n\x18RESULT_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SUCCESS\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\n\n\x06KILLED\x10\x03:p\xea\x41m\n)websecurityscanner.googleapis.com/ScanRun\x12@projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}B\xbf\x01\n*com.google.cloud.websecurityscanner.v1betaB\x0cScanRunProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3' - ), + serialized_options=b"\n*com.google.cloud.websecurityscanner.v1betaB\014ScanRunProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta", + serialized_pb=b'\n;google/cloud/websecurityscanner_v1beta/proto/scan_run.proto\x12&google.cloud.websecurityscanner.v1beta\x1a\x19google/api/resource.proto\x1aGgoogle/cloud/websecurityscanner_v1beta/proto/scan_run_error_trace.proto\x1aIgoogle/cloud/websecurityscanner_v1beta/proto/scan_run_warning_trace.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xd2\x06\n\x07ScanRun\x12\x0c\n\x04name\x18\x01 \x01(\t\x12W\n\x0f\x65xecution_state\x18\x02 \x01(\x0e\x32>.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState\x12Q\n\x0cresult_state\x18\x03 \x01(\x0e\x32;.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12urls_crawled_count\x18\x06 \x01(\x03\x12\x19\n\x11urls_tested_count\x18\x07 \x01(\x03\x12\x1b\n\x13has_vulnerabilities\x18\x08 \x01(\x08\x12\x18\n\x10progress_percent\x18\t \x01(\x05\x12N\n\x0b\x65rror_trace\x18\n \x01(\x0b\x32\x39.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace\x12S\n\x0ewarning_traces\x18\x0b \x03(\x0b\x32;.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace"Y\n\x0e\x45xecutionState\x12\x1f\n\x1b\x45XECUTION_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0c\n\x08SCANNING\x10\x02\x12\x0c\n\x08\x46INISHED\x10\x03"O\n\x0bResultState\x12\x1c\n\x18RESULT_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SUCCESS\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\n\n\x06KILLED\x10\x03:p\xea\x41m\n)websecurityscanner.googleapis.com/ScanRun\x12@projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}B\xbf\x01\n*com.google.cloud.websecurityscanner.v1betaB\x0cScanRunProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3', dependencies=[ google_dot_api_dot_resource__pb2.DESCRIPTOR, google_dot_cloud_dot_websecurityscanner__v1beta_dot_proto_dot_scan__run__error__trace__pb2.DESCRIPTOR, @@ -121,7 +114,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -314,9 +307,7 @@ extensions=[], nested_types=[], enum_types=[_SCANRUN_EXECUTIONSTATE, _SCANRUN_RESULTSTATE], - serialized_options=_b( - "\352Am\n)websecurityscanner.googleapis.com/ScanRun\022@projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}" - ), + serialized_options=b"\352Am\n)websecurityscanner.googleapis.com/ScanRun\022@projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -351,23 +342,23 @@ ScanRun = _reflection.GeneratedProtocolMessageType( "ScanRun", (_message.Message,), - dict( - DESCRIPTOR=_SCANRUN, - __module__="google.cloud.websecurityscanner_v1beta.proto.scan_run_pb2", - __doc__="""A ScanRun is a output-only resource representing an actual + { + "DESCRIPTOR": _SCANRUN, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.scan_run_pb2", + "__doc__": """A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 Attributes: name: The resource name of the ScanRun. The name follows the format - of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{ - scanRunId}'. The ScanRun IDs are generated by the system. + of ‘projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{ + scanRunId}’. The ScanRun IDs are generated by the system. execution_state: The execution state of the ScanRun. result_state: The result state of the ScanRun. This field is only available - after the execution state reaches "FINISHED". + after the execution state reaches “FINISHED”. start_time: The time at which the ScanRun started. end_time: @@ -391,15 +382,15 @@ the value ranges from 0 to 100. If the scan is finished, the value is 100. error_trace: - If result\_state is an ERROR, this field provides the primary - reason for scan's termination and more details, if such are + If result_state is an ERROR, this field provides the primary + reason for scan’s termination and more details, if such are available. warning_traces: A list of warnings, if such are encountered during this scan run. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRun) - ), + }, ) _sym_db.RegisterMessage(ScanRun) diff --git a/google/cloud/websecurityscanner_v1beta/proto/scan_run_warning_trace_pb2.py b/google/cloud/websecurityscanner_v1beta/proto/scan_run_warning_trace_pb2.py index a225ecc..b42bb1a 100644 --- a/google/cloud/websecurityscanner_v1beta/proto/scan_run_warning_trace_pb2.py +++ b/google/cloud/websecurityscanner_v1beta/proto/scan_run_warning_trace_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1beta/proto/scan_run_warning_trace.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -19,12 +16,8 @@ name="google/cloud/websecurityscanner_v1beta/proto/scan_run_warning_trace.proto", package="google.cloud.websecurityscanner.v1beta", syntax="proto3", - serialized_options=_b( - "\n*com.google.cloud.websecurityscanner.v1betaB\030ScanRunWarningTraceProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta" - ), - serialized_pb=_b( - '\nIgoogle/cloud/websecurityscanner_v1beta/proto/scan_run_warning_trace.proto\x12&google.cloud.websecurityscanner.v1beta"\xed\x01\n\x13ScanRunWarningTrace\x12N\n\x04\x63ode\x18\x01 \x01(\x0e\x32@.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code"\x85\x01\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x1e\n\x1aINSUFFICIENT_CRAWL_RESULTS\x10\x01\x12\x1a\n\x16TOO_MANY_CRAWL_RESULTS\x10\x02\x12\x17\n\x13TOO_MANY_FUZZ_TASKS\x10\x03\x12\x12\n\x0e\x42LOCKED_BY_IAP\x10\x04\x42\xcb\x01\n*com.google.cloud.websecurityscanner.v1betaB\x18ScanRunWarningTraceProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3' - ), + serialized_options=b"\n*com.google.cloud.websecurityscanner.v1betaB\030ScanRunWarningTraceProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta", + serialized_pb=b'\nIgoogle/cloud/websecurityscanner_v1beta/proto/scan_run_warning_trace.proto\x12&google.cloud.websecurityscanner.v1beta"\xed\x01\n\x13ScanRunWarningTrace\x12N\n\x04\x63ode\x18\x01 \x01(\x0e\x32@.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code"\x85\x01\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x1e\n\x1aINSUFFICIENT_CRAWL_RESULTS\x10\x01\x12\x1a\n\x16TOO_MANY_CRAWL_RESULTS\x10\x02\x12\x17\n\x13TOO_MANY_FUZZ_TASKS\x10\x03\x12\x12\n\x0e\x42LOCKED_BY_IAP\x10\x04\x42\xcb\x01\n*com.google.cloud.websecurityscanner.v1betaB\x18ScanRunWarningTraceProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3', ) @@ -120,10 +113,10 @@ ScanRunWarningTrace = _reflection.GeneratedProtocolMessageType( "ScanRunWarningTrace", (_message.Message,), - dict( - DESCRIPTOR=_SCANRUNWARNINGTRACE, - __module__="google.cloud.websecurityscanner_v1beta.proto.scan_run_warning_trace_pb2", - __doc__="""Output only. Defines a warning trace message for ScanRun. + { + "DESCRIPTOR": _SCANRUNWARNINGTRACE, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.scan_run_warning_trace_pb2", + "__doc__": """Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective. @@ -133,7 +126,7 @@ Indicates the warning code. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) - ), + }, ) _sym_db.RegisterMessage(ScanRunWarningTrace) diff --git a/google/cloud/websecurityscanner_v1beta/proto/web_security_scanner_pb2.py b/google/cloud/websecurityscanner_v1beta/proto/web_security_scanner_pb2.py index ad3f1d8..649db9f 100644 --- a/google/cloud/websecurityscanner_v1beta/proto/web_security_scanner_pb2.py +++ b/google/cloud/websecurityscanner_v1beta/proto/web_security_scanner_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner_v1beta/proto/web_security_scanner.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -42,12 +39,8 @@ name="google/cloud/websecurityscanner_v1beta/proto/web_security_scanner.proto", package="google.cloud.websecurityscanner.v1beta", syntax="proto3", - serialized_options=_b( - "\n*com.google.cloud.websecurityscanner.v1betaB\027WebSecurityScannerProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta" - ), - serialized_pb=_b( - '\nGgoogle/cloud/websecurityscanner_v1beta/proto/web_security_scanner.proto\x12&google.cloud.websecurityscanner.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a>google/cloud/websecurityscanner_v1beta/proto/crawled_url.proto\x1a:google/cloud/websecurityscanner_v1beta/proto/finding.proto\x1a\x45google/cloud/websecurityscanner_v1beta/proto/finding_type_stats.proto\x1a>google/cloud/websecurityscanner_v1beta/proto/scan_config.proto\x1a;google/cloud/websecurityscanner_v1beta/proto/scan_run.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\xac\x01\n\x17\x43reateScanConfigRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12L\n\x0bscan_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.websecurityscanner.v1beta.ScanConfigB\x03\xe0\x41\x02"]\n\x17\x44\x65leteScanConfigRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,websecurityscanner.googleapis.com/ScanConfig"Z\n\x14GetScanConfigRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,websecurityscanner.googleapis.com/ScanConfig"\x84\x01\n\x16ListScanConfigsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05"\x9d\x01\n\x17UpdateScanConfigRequest\x12L\n\x0bscan_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.websecurityscanner.v1beta.ScanConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02"|\n\x17ListScanConfigsResponse\x12H\n\x0cscan_configs\x18\x01 \x03(\x0b\x32\x32.google.cloud.websecurityscanner.v1beta.ScanConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"Y\n\x13StartScanRunRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,websecurityscanner.googleapis.com/ScanConfig"T\n\x11GetScanRunRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/ScanRun"\x82\x01\n\x13ListScanRunsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,websecurityscanner.googleapis.com/ScanConfig\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05"s\n\x14ListScanRunsResponse\x12\x42\n\tscan_runs\x18\x01 \x03(\x0b\x32/.google.cloud.websecurityscanner.v1beta.ScanRun\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"U\n\x12StopScanRunRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/ScanRun"\x82\x01\n\x16ListCrawledUrlsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/ScanRun\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05"|\n\x17ListCrawledUrlsResponse\x12H\n\x0c\x63rawled_urls\x18\x01 \x03(\x0b\x32\x32.google.cloud.websecurityscanner.v1beta.CrawledUrl\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"T\n\x11GetFindingRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/Finding"\x94\x01\n\x13ListFindingsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/ScanRun\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05"r\n\x14ListFindingsResponse\x12\x41\n\x08\x66indings\x18\x01 \x03(\x0b\x32/.google.cloud.websecurityscanner.v1beta.Finding\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"`\n\x1bListFindingTypeStatsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/ScanRun"t\n\x1cListFindingTypeStatsResponse\x12T\n\x12\x66inding_type_stats\x18\x01 \x03(\x0b\x32\x38.google.cloud.websecurityscanner.v1beta.FindingTypeStats2\x8e\x16\n\x12WebSecurityScanner\x12\xda\x01\n\x10\x43reateScanConfig\x12?.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest\x1a\x32.google.cloud.websecurityscanner.v1beta.ScanConfig"Q\x82\xd3\xe4\x93\x02\x36"\'/v1beta/{parent=projects/*}/scanConfigs:\x0bscan_config\xda\x41\x12parent,scan_config\x12\xa3\x01\n\x10\x44\x65leteScanConfig\x12?.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest\x1a\x16.google.protobuf.Empty"6\x82\xd3\xe4\x93\x02)*\'/v1beta/{name=projects/*/scanConfigs/*}\xda\x41\x04name\x12\xb9\x01\n\rGetScanConfig\x12<.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest\x1a\x32.google.cloud.websecurityscanner.v1beta.ScanConfig"6\x82\xd3\xe4\x93\x02)\x12\'/v1beta/{name=projects/*/scanConfigs/*}\xda\x41\x04name\x12\xcc\x01\n\x0fListScanConfigs\x12>.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest\x1a?.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse"8\x82\xd3\xe4\x93\x02)\x12\'/v1beta/{parent=projects/*}/scanConfigs\xda\x41\x06parent\x12\xeb\x01\n\x10UpdateScanConfig\x12?.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest\x1a\x32.google.cloud.websecurityscanner.v1beta.ScanConfig"b\x82\xd3\xe4\x93\x02\x42\x32\x33/v1beta/{scan_config.name=projects/*/scanConfigs/*}:\x0bscan_config\xda\x41\x17scan_config,update_mask\x12\xbd\x01\n\x0cStartScanRun\x12;.google.cloud.websecurityscanner.v1beta.StartScanRunRequest\x1a/.google.cloud.websecurityscanner.v1beta.ScanRun"?\x82\xd3\xe4\x93\x02\x32"-/v1beta/{name=projects/*/scanConfigs/*}:start:\x01*\xda\x41\x04name\x12\xbb\x01\n\nGetScanRun\x12\x39.google.cloud.websecurityscanner.v1beta.GetScanRunRequest\x1a/.google.cloud.websecurityscanner.v1beta.ScanRun"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*}\xda\x41\x04name\x12\xce\x01\n\x0cListScanRuns\x12;.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest\x1a<.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta/{parent=projects/*/scanConfigs/*}/scanRuns\xda\x41\x06parent\x12\xc5\x01\n\x0bStopScanRun\x12:.google.cloud.websecurityscanner.v1beta.StopScanRunRequest\x1a/.google.cloud.websecurityscanner.v1beta.ScanRun"I\x82\xd3\xe4\x93\x02<"7/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*}:stop:\x01*\xda\x41\x04name\x12\xe5\x01\n\x0fListCrawledUrls\x12>.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest\x1a?.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse"Q\x82\xd3\xe4\x93\x02\x42\x12@/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls\xda\x41\x06parent\x12\xc6\x01\n\nGetFinding\x12\x39.google.cloud.websecurityscanner.v1beta.GetFindingRequest\x1a/.google.cloud.websecurityscanner.v1beta.Finding"L\x82\xd3\xe4\x93\x02?\x12=/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\xda\x41\x04name\x12\xe0\x01\n\x0cListFindings\x12;.google.cloud.websecurityscanner.v1beta.ListFindingsRequest\x1a<.google.cloud.websecurityscanner.v1beta.ListFindingsResponse"U\x82\xd3\xe4\x93\x02?\x12=/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\xda\x41\rparent,filter\x12\xf9\x01\n\x14ListFindingTypeStats\x12\x43.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest\x1a\x44.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse"V\x82\xd3\xe4\x93\x02G\x12\x45/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats\xda\x41\x06parent\x1aU\xca\x41!websecurityscanner.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xca\x01\n*com.google.cloud.websecurityscanner.v1betaB\x17WebSecurityScannerProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3' - ), + serialized_options=b"\n*com.google.cloud.websecurityscanner.v1betaB\027WebSecurityScannerProtoP\001ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\312\002&Google\\Cloud\\WebSecurityScanner\\V1beta", + serialized_pb=b'\nGgoogle/cloud/websecurityscanner_v1beta/proto/web_security_scanner.proto\x12&google.cloud.websecurityscanner.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a>google/cloud/websecurityscanner_v1beta/proto/crawled_url.proto\x1a:google/cloud/websecurityscanner_v1beta/proto/finding.proto\x1a\x45google/cloud/websecurityscanner_v1beta/proto/finding_type_stats.proto\x1a>google/cloud/websecurityscanner_v1beta/proto/scan_config.proto\x1a;google/cloud/websecurityscanner_v1beta/proto/scan_run.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\xac\x01\n\x17\x43reateScanConfigRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12L\n\x0bscan_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.websecurityscanner.v1beta.ScanConfigB\x03\xe0\x41\x02"]\n\x17\x44\x65leteScanConfigRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,websecurityscanner.googleapis.com/ScanConfig"Z\n\x14GetScanConfigRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,websecurityscanner.googleapis.com/ScanConfig"\x84\x01\n\x16ListScanConfigsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05"\x9d\x01\n\x17UpdateScanConfigRequest\x12L\n\x0bscan_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.websecurityscanner.v1beta.ScanConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02"|\n\x17ListScanConfigsResponse\x12H\n\x0cscan_configs\x18\x01 \x03(\x0b\x32\x32.google.cloud.websecurityscanner.v1beta.ScanConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"Y\n\x13StartScanRunRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,websecurityscanner.googleapis.com/ScanConfig"T\n\x11GetScanRunRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/ScanRun"\x82\x01\n\x13ListScanRunsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,websecurityscanner.googleapis.com/ScanConfig\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05"s\n\x14ListScanRunsResponse\x12\x42\n\tscan_runs\x18\x01 \x03(\x0b\x32/.google.cloud.websecurityscanner.v1beta.ScanRun\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"U\n\x12StopScanRunRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/ScanRun"\x82\x01\n\x16ListCrawledUrlsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/ScanRun\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05"|\n\x17ListCrawledUrlsResponse\x12H\n\x0c\x63rawled_urls\x18\x01 \x03(\x0b\x32\x32.google.cloud.websecurityscanner.v1beta.CrawledUrl\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"T\n\x11GetFindingRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/Finding"\x94\x01\n\x13ListFindingsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/ScanRun\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05"r\n\x14ListFindingsResponse\x12\x41\n\x08\x66indings\x18\x01 \x03(\x0b\x32/.google.cloud.websecurityscanner.v1beta.Finding\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"`\n\x1bListFindingTypeStatsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)websecurityscanner.googleapis.com/ScanRun"t\n\x1cListFindingTypeStatsResponse\x12T\n\x12\x66inding_type_stats\x18\x01 \x03(\x0b\x32\x38.google.cloud.websecurityscanner.v1beta.FindingTypeStats2\x8e\x16\n\x12WebSecurityScanner\x12\xda\x01\n\x10\x43reateScanConfig\x12?.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest\x1a\x32.google.cloud.websecurityscanner.v1beta.ScanConfig"Q\x82\xd3\xe4\x93\x02\x36"\'/v1beta/{parent=projects/*}/scanConfigs:\x0bscan_config\xda\x41\x12parent,scan_config\x12\xa3\x01\n\x10\x44\x65leteScanConfig\x12?.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest\x1a\x16.google.protobuf.Empty"6\x82\xd3\xe4\x93\x02)*\'/v1beta/{name=projects/*/scanConfigs/*}\xda\x41\x04name\x12\xb9\x01\n\rGetScanConfig\x12<.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest\x1a\x32.google.cloud.websecurityscanner.v1beta.ScanConfig"6\x82\xd3\xe4\x93\x02)\x12\'/v1beta/{name=projects/*/scanConfigs/*}\xda\x41\x04name\x12\xcc\x01\n\x0fListScanConfigs\x12>.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest\x1a?.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse"8\x82\xd3\xe4\x93\x02)\x12\'/v1beta/{parent=projects/*}/scanConfigs\xda\x41\x06parent\x12\xeb\x01\n\x10UpdateScanConfig\x12?.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest\x1a\x32.google.cloud.websecurityscanner.v1beta.ScanConfig"b\x82\xd3\xe4\x93\x02\x42\x32\x33/v1beta/{scan_config.name=projects/*/scanConfigs/*}:\x0bscan_config\xda\x41\x17scan_config,update_mask\x12\xbd\x01\n\x0cStartScanRun\x12;.google.cloud.websecurityscanner.v1beta.StartScanRunRequest\x1a/.google.cloud.websecurityscanner.v1beta.ScanRun"?\x82\xd3\xe4\x93\x02\x32"-/v1beta/{name=projects/*/scanConfigs/*}:start:\x01*\xda\x41\x04name\x12\xbb\x01\n\nGetScanRun\x12\x39.google.cloud.websecurityscanner.v1beta.GetScanRunRequest\x1a/.google.cloud.websecurityscanner.v1beta.ScanRun"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*}\xda\x41\x04name\x12\xce\x01\n\x0cListScanRuns\x12;.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest\x1a<.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta/{parent=projects/*/scanConfigs/*}/scanRuns\xda\x41\x06parent\x12\xc5\x01\n\x0bStopScanRun\x12:.google.cloud.websecurityscanner.v1beta.StopScanRunRequest\x1a/.google.cloud.websecurityscanner.v1beta.ScanRun"I\x82\xd3\xe4\x93\x02<"7/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*}:stop:\x01*\xda\x41\x04name\x12\xe5\x01\n\x0fListCrawledUrls\x12>.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest\x1a?.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse"Q\x82\xd3\xe4\x93\x02\x42\x12@/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls\xda\x41\x06parent\x12\xc6\x01\n\nGetFinding\x12\x39.google.cloud.websecurityscanner.v1beta.GetFindingRequest\x1a/.google.cloud.websecurityscanner.v1beta.Finding"L\x82\xd3\xe4\x93\x02?\x12=/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\xda\x41\x04name\x12\xe0\x01\n\x0cListFindings\x12;.google.cloud.websecurityscanner.v1beta.ListFindingsRequest\x1a<.google.cloud.websecurityscanner.v1beta.ListFindingsResponse"U\x82\xd3\xe4\x93\x02?\x12=/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\xda\x41\rparent,filter\x12\xf9\x01\n\x14ListFindingTypeStats\x12\x43.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest\x1a\x44.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse"V\x82\xd3\xe4\x93\x02G\x12\x45/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats\xda\x41\x06parent\x1aU\xca\x41!websecurityscanner.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xca\x01\n*com.google.cloud.websecurityscanner.v1betaB\x17WebSecurityScannerProtoP\x01ZXgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner\xca\x02&Google\\Cloud\\WebSecurityScanner\\V1betab\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -80,15 +73,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -106,7 +97,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -139,15 +130,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig" - ), + serialized_options=b"\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig", file=DESCRIPTOR, ) ], @@ -180,15 +169,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig" - ), + serialized_options=b"\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig", file=DESCRIPTOR, ) ], @@ -221,15 +208,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -241,7 +226,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -304,7 +289,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -322,7 +307,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -373,7 +358,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -412,15 +397,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig" - ), + serialized_options=b"\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig", file=DESCRIPTOR, ) ], @@ -453,15 +436,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun", file=DESCRIPTOR, ) ], @@ -494,15 +475,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig" - ), + serialized_options=b"\340A\002\372A.\n,websecurityscanner.googleapis.com/ScanConfig", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -514,7 +493,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -589,7 +568,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -628,15 +607,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun", file=DESCRIPTOR, ) ], @@ -669,15 +646,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -689,7 +664,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -764,7 +739,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -803,15 +778,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/Finding" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/Finding", file=DESCRIPTOR, ) ], @@ -844,15 +817,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -864,13 +835,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -882,7 +853,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -957,7 +928,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -996,15 +967,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun" - ), + serialized_options=b"\340A\002\372A+\n)websecurityscanner.googleapis.com/ScanRun", file=DESCRIPTOR, ) ], @@ -1124,78 +1093,78 @@ CreateScanConfigRequest = _reflection.GeneratedProtocolMessageType( "CreateScanConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATESCANCONFIGREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``CreateScanConfig`` method. + { + "DESCRIPTOR": _CREATESCANCONFIGREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``CreateScanConfig`` method. Attributes: parent: Required. The parent resource name where the scan is created, which should be a project resource name in the format - 'projects/{projectId}'. + ‘projects/{projectId}’. scan_config: Required. The ScanConfig to be created. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) - ), + }, ) _sym_db.RegisterMessage(CreateScanConfigRequest) DeleteScanConfigRequest = _reflection.GeneratedProtocolMessageType( "DeleteScanConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETESCANCONFIGREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``DeleteScanConfig`` method. + { + "DESCRIPTOR": _DELETESCANCONFIGREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``DeleteScanConfig`` method. Attributes: name: Required. The resource name of the ScanConfig to be deleted. The name follows the format of - 'projects/{projectId}/scanConfigs/{scanConfigId}'. + ‘projects/{projectId}/scanConfigs/{scanConfigId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteScanConfigRequest) GetScanConfigRequest = _reflection.GeneratedProtocolMessageType( "GetScanConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETSCANCONFIGREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``GetScanConfig`` method. + { + "DESCRIPTOR": _GETSCANCONFIGREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``GetScanConfig`` method. Attributes: name: Required. The resource name of the ScanConfig to be returned. The name follows the format of - 'projects/{projectId}/scanConfigs/{scanConfigId}'. + ‘projects/{projectId}/scanConfigs/{scanConfigId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) - ), + }, ) _sym_db.RegisterMessage(GetScanConfigRequest) ListScanConfigsRequest = _reflection.GeneratedProtocolMessageType( "ListScanConfigsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTSCANCONFIGSREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``ListScanConfigs`` method. + { + "DESCRIPTOR": _LISTSCANCONFIGSREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``ListScanConfigs`` method. Attributes: parent: Required. The parent resource name, which should be a project - resource name in the format 'projects/{projectId}'. + resource name in the format ‘projects/{projectId}’. page_token: A token identifying a page of results to be returned. This should be a ``next_page_token`` value returned from a previous @@ -1207,17 +1176,17 @@ will select a reasonable value. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) - ), + }, ) _sym_db.RegisterMessage(ListScanConfigsRequest) UpdateScanConfigRequest = _reflection.GeneratedProtocolMessageType( "UpdateScanConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATESCANCONFIGREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``UpdateScanConfigRequest`` method. + { + "DESCRIPTOR": _UPDATESCANCONFIGREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``UpdateScanConfigRequest`` method. Attributes: @@ -1232,17 +1201,17 @@ buffers/docs/reference/google.protobuf#fieldmask """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateScanConfigRequest) ListScanConfigsResponse = _reflection.GeneratedProtocolMessageType( "ListScanConfigsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTSCANCONFIGSRESPONSE, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Response for the ``ListScanConfigs`` method. + { + "DESCRIPTOR": _LISTSCANCONFIGSRESPONSE, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Response for the ``ListScanConfigs`` method. Attributes: @@ -1253,64 +1222,64 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) - ), + }, ) _sym_db.RegisterMessage(ListScanConfigsResponse) StartScanRunRequest = _reflection.GeneratedProtocolMessageType( "StartScanRunRequest", (_message.Message,), - dict( - DESCRIPTOR=_STARTSCANRUNREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``StartScanRun`` method. + { + "DESCRIPTOR": _STARTSCANRUNREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``StartScanRun`` method. Attributes: name: Required. The resource name of the ScanConfig to be used. The name follows the format of - 'projects/{projectId}/scanConfigs/{scanConfigId}'. + ‘projects/{projectId}/scanConfigs/{scanConfigId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) - ), + }, ) _sym_db.RegisterMessage(StartScanRunRequest) GetScanRunRequest = _reflection.GeneratedProtocolMessageType( "GetScanRunRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETSCANRUNREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``GetScanRun`` method. + { + "DESCRIPTOR": _GETSCANRUNREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``GetScanRun`` method. Attributes: name: Required. The resource name of the ScanRun to be returned. The - name follows the format of 'projects/{projectId}/scanConfigs/{ - scanConfigId}/scanRuns/{scanRunId}'. + name follows the format of ‘projects/{projectId}/scanConfigs/{ + scanConfigId}/scanRuns/{scanRunId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) - ), + }, ) _sym_db.RegisterMessage(GetScanRunRequest) ListScanRunsRequest = _reflection.GeneratedProtocolMessageType( "ListScanRunsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTSCANRUNSREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``ListScanRuns`` method. + { + "DESCRIPTOR": _LISTSCANRUNSREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``ListScanRuns`` method. Attributes: parent: Required. The parent resource name, which should be a scan resource name in the format - 'projects/{projectId}/scanConfigs/{scanConfigId}'. + ‘projects/{projectId}/scanConfigs/{scanConfigId}’. page_token: A token identifying a page of results to be returned. This should be a ``next_page_token`` value returned from a previous @@ -1322,17 +1291,17 @@ will select a reasonable value. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) - ), + }, ) _sym_db.RegisterMessage(ListScanRunsRequest) ListScanRunsResponse = _reflection.GeneratedProtocolMessageType( "ListScanRunsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTSCANRUNSRESPONSE, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Response for the ``ListScanRuns`` method. + { + "DESCRIPTOR": _LISTSCANRUNSRESPONSE, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Response for the ``ListScanRuns`` method. Attributes: @@ -1343,44 +1312,44 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) - ), + }, ) _sym_db.RegisterMessage(ListScanRunsResponse) StopScanRunRequest = _reflection.GeneratedProtocolMessageType( "StopScanRunRequest", (_message.Message,), - dict( - DESCRIPTOR=_STOPSCANRUNREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``StopScanRun`` method. + { + "DESCRIPTOR": _STOPSCANRUNREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``StopScanRun`` method. Attributes: name: Required. The resource name of the ScanRun to be stopped. The - name follows the format of 'projects/{projectId}/scanConfigs/{ - scanConfigId}/scanRuns/{scanRunId}'. + name follows the format of ‘projects/{projectId}/scanConfigs/{ + scanConfigId}/scanRuns/{scanRunId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) - ), + }, ) _sym_db.RegisterMessage(StopScanRunRequest) ListCrawledUrlsRequest = _reflection.GeneratedProtocolMessageType( "ListCrawledUrlsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTCRAWLEDURLSREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``ListCrawledUrls`` method. + { + "DESCRIPTOR": _LISTCRAWLEDURLSREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``ListCrawledUrls`` method. Attributes: parent: Required. The parent resource name, which should be a scan run - resource name in the format 'projects/{projectId}/scanConfigs/ - {scanConfigId}/scanRuns/{scanRunId}'. + resource name in the format ‘projects/{projectId}/scanConfigs/ + {scanConfigId}/scanRuns/{scanRunId}’. page_token: A token identifying a page of results to be returned. This should be a ``next_page_token`` value returned from a previous @@ -1392,17 +1361,17 @@ will select a reasonable value. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) - ), + }, ) _sym_db.RegisterMessage(ListCrawledUrlsRequest) ListCrawledUrlsResponse = _reflection.GeneratedProtocolMessageType( "ListCrawledUrlsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTCRAWLEDURLSRESPONSE, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Response for the ``ListCrawledUrls`` method. + { + "DESCRIPTOR": _LISTCRAWLEDURLSRESPONSE, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Response for the ``ListCrawledUrls`` method. Attributes: @@ -1413,48 +1382,48 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) - ), + }, ) _sym_db.RegisterMessage(ListCrawledUrlsResponse) GetFindingRequest = _reflection.GeneratedProtocolMessageType( "GetFindingRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETFINDINGREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``GetFinding`` method. + { + "DESCRIPTOR": _GETFINDINGREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``GetFinding`` method. Attributes: name: Required. The resource name of the Finding to be returned. The - name follows the format of 'projects/{projectId}/scanConfigs/{ - scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. + name follows the format of ‘projects/{projectId}/scanConfigs/{ + scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetFindingRequest) - ), + }, ) _sym_db.RegisterMessage(GetFindingRequest) ListFindingsRequest = _reflection.GeneratedProtocolMessageType( "ListFindingsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTFINDINGSREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``ListFindings`` method. + { + "DESCRIPTOR": _LISTFINDINGSREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``ListFindings`` method. Attributes: parent: Required. The parent resource name, which should be a scan run - resource name in the format 'projects/{projectId}/scanConfigs/ - {scanConfigId}/scanRuns/{scanRunId}'. + resource name in the format ‘projects/{projectId}/scanConfigs/ + {scanConfigId}/scanRuns/{scanRunId}’. filter: Required. The filter expression. The expression must be in the - format: . Supported field: 'finding\_type'. Supported - operator: '='. + format: . Supported field: ‘finding_type’. Supported operator: + ‘=’. page_token: A token identifying a page of results to be returned. This should be a ``next_page_token`` value returned from a previous @@ -1466,17 +1435,17 @@ will select a reasonable value. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) - ), + }, ) _sym_db.RegisterMessage(ListFindingsRequest) ListFindingsResponse = _reflection.GeneratedProtocolMessageType( "ListFindingsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTFINDINGSRESPONSE, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Response for the ``ListFindings`` method. + { + "DESCRIPTOR": _LISTFINDINGSRESPONSE, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Response for the ``ListFindings`` method. Attributes: @@ -1487,37 +1456,37 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) - ), + }, ) _sym_db.RegisterMessage(ListFindingsResponse) ListFindingTypeStatsRequest = _reflection.GeneratedProtocolMessageType( "ListFindingTypeStatsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTFINDINGTYPESTATSREQUEST, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Request for the ``ListFindingTypeStats`` method. + { + "DESCRIPTOR": _LISTFINDINGTYPESTATSREQUEST, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Request for the ``ListFindingTypeStats`` method. Attributes: parent: Required. The parent resource name, which should be a scan run - resource name in the format 'projects/{projectId}/scanConfigs/ - {scanConfigId}/scanRuns/{scanRunId}'. + resource name in the format ‘projects/{projectId}/scanConfigs/ + {scanConfigId}/scanRuns/{scanRunId}’. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) - ), + }, ) _sym_db.RegisterMessage(ListFindingTypeStatsRequest) ListFindingTypeStatsResponse = _reflection.GeneratedProtocolMessageType( "ListFindingTypeStatsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTFINDINGTYPESTATSRESPONSE, - __module__="google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", - __doc__="""Response for the ``ListFindingTypeStats`` method. + { + "DESCRIPTOR": _LISTFINDINGTYPESTATSRESPONSE, + "__module__": "google.cloud.websecurityscanner_v1beta.proto.web_security_scanner_pb2", + "__doc__": """Response for the ``ListFindingTypeStats`` method. Attributes: @@ -1525,7 +1494,7 @@ The list of FindingTypeStats returned. """, # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) - ), + }, ) _sym_db.RegisterMessage(ListFindingTypeStatsResponse) @@ -1553,9 +1522,7 @@ full_name="google.cloud.websecurityscanner.v1beta.WebSecurityScanner", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A!websecurityscanner.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platform" - ), + serialized_options=b"\312A!websecurityscanner.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platform", serialized_start=2739, serialized_end=5569, methods=[ @@ -1566,9 +1533,7 @@ containing_service=None, input_type=_CREATESCANCONFIGREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1beta_dot_proto_dot_scan__config__pb2._SCANCONFIG, - serialized_options=_b( - "\202\323\344\223\0026\"'/v1beta/{parent=projects/*}/scanConfigs:\013scan_config\332A\022parent,scan_config" - ), + serialized_options=b"\202\323\344\223\0026\"'/v1beta/{parent=projects/*}/scanConfigs:\013scan_config\332A\022parent,scan_config", ), _descriptor.MethodDescriptor( name="DeleteScanConfig", @@ -1577,9 +1542,7 @@ containing_service=None, input_type=_DELETESCANCONFIGREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002)*'/v1beta/{name=projects/*/scanConfigs/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002)*'/v1beta/{name=projects/*/scanConfigs/*}\332A\004name", ), _descriptor.MethodDescriptor( name="GetScanConfig", @@ -1588,9 +1551,7 @@ containing_service=None, input_type=_GETSCANCONFIGREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1beta_dot_proto_dot_scan__config__pb2._SCANCONFIG, - serialized_options=_b( - "\202\323\344\223\002)\022'/v1beta/{name=projects/*/scanConfigs/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002)\022'/v1beta/{name=projects/*/scanConfigs/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListScanConfigs", @@ -1599,9 +1560,7 @@ containing_service=None, input_type=_LISTSCANCONFIGSREQUEST, output_type=_LISTSCANCONFIGSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002)\022'/v1beta/{parent=projects/*}/scanConfigs\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002)\022'/v1beta/{parent=projects/*}/scanConfigs\332A\006parent", ), _descriptor.MethodDescriptor( name="UpdateScanConfig", @@ -1610,9 +1569,7 @@ containing_service=None, input_type=_UPDATESCANCONFIGREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1beta_dot_proto_dot_scan__config__pb2._SCANCONFIG, - serialized_options=_b( - "\202\323\344\223\002B23/v1beta/{scan_config.name=projects/*/scanConfigs/*}:\013scan_config\332A\027scan_config,update_mask" - ), + serialized_options=b"\202\323\344\223\002B23/v1beta/{scan_config.name=projects/*/scanConfigs/*}:\013scan_config\332A\027scan_config,update_mask", ), _descriptor.MethodDescriptor( name="StartScanRun", @@ -1621,9 +1578,7 @@ containing_service=None, input_type=_STARTSCANRUNREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1beta_dot_proto_dot_scan__run__pb2._SCANRUN, - serialized_options=_b( - '\202\323\344\223\0022"-/v1beta/{name=projects/*/scanConfigs/*}:start:\001*\332A\004name' - ), + serialized_options=b'\202\323\344\223\0022"-/v1beta/{name=projects/*/scanConfigs/*}:start:\001*\332A\004name', ), _descriptor.MethodDescriptor( name="GetScanRun", @@ -1632,9 +1587,7 @@ containing_service=None, input_type=_GETSCANRUNREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1beta_dot_proto_dot_scan__run__pb2._SCANRUN, - serialized_options=_b( - "\202\323\344\223\0024\0222/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0024\0222/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListScanRuns", @@ -1643,9 +1596,7 @@ containing_service=None, input_type=_LISTSCANRUNSREQUEST, output_type=_LISTSCANRUNSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0024\0222/v1beta/{parent=projects/*/scanConfigs/*}/scanRuns\332A\006parent" - ), + serialized_options=b"\202\323\344\223\0024\0222/v1beta/{parent=projects/*/scanConfigs/*}/scanRuns\332A\006parent", ), _descriptor.MethodDescriptor( name="StopScanRun", @@ -1654,9 +1605,7 @@ containing_service=None, input_type=_STOPSCANRUNREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1beta_dot_proto_dot_scan__run__pb2._SCANRUN, - serialized_options=_b( - '\202\323\344\223\002<"7/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*}:stop:\001*\332A\004name' - ), + serialized_options=b'\202\323\344\223\002<"7/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*}:stop:\001*\332A\004name', ), _descriptor.MethodDescriptor( name="ListCrawledUrls", @@ -1665,9 +1614,7 @@ containing_service=None, input_type=_LISTCRAWLEDURLSREQUEST, output_type=_LISTCRAWLEDURLSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002B\022@/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002B\022@/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls\332A\006parent", ), _descriptor.MethodDescriptor( name="GetFinding", @@ -1676,9 +1623,7 @@ containing_service=None, input_type=_GETFINDINGREQUEST, output_type=google_dot_cloud_dot_websecurityscanner__v1beta_dot_proto_dot_finding__pb2._FINDING, - serialized_options=_b( - "\202\323\344\223\002?\022=/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002?\022=/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListFindings", @@ -1687,9 +1632,7 @@ containing_service=None, input_type=_LISTFINDINGSREQUEST, output_type=_LISTFINDINGSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002?\022=/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\002?\022=/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\332A\rparent,filter", ), _descriptor.MethodDescriptor( name="ListFindingTypeStats", @@ -1698,9 +1641,7 @@ containing_service=None, input_type=_LISTFINDINGTYPESTATSREQUEST, output_type=_LISTFINDINGTYPESTATSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002G\022E/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002G\022E/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats\332A\006parent", ), ], ) diff --git a/synth.metadata b/synth.metadata index c4e0179..c84dfcc 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,25 +1,18 @@ { "sources": [ - { - "generator": { - "name": "artman", - "version": "2.0.0", - "dockerImage": "googleapis/artman@sha256:b3b47805231a305d0f40c4bf069df20f6a2635574e6d4259fac651d3f9f6e098" - } - }, { "git": { "name": ".", - "remote": "git@github.com:googleapis/python-websecurityscanner", - "sha": "709cf0f7b76482113374b922070881efd4171975" + "remote": "https://github.com/googleapis/python-websecurityscanner.git", + "sha": "429103785469bf32cccd351f942a46d85ebf47c1" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "ee9e8e4e67f06aba881392a1a2956fbe7a42d216", - "internalRef": "309481123" + "sha": "e0f9d9e1f9de890db765be46f45ca8490723e3eb", + "internalRef": "309824146" } }, { @@ -37,8 +30,7 @@ "apiName": "websecurityscanner", "apiVersion": "v1alpha", "language": "python", - "generator": "gapic", - "config": "google/cloud/websecurityscanner/artman_websecurityscanner_v1alpha.yaml" + "generator": "bazel" } }, { @@ -47,8 +39,7 @@ "apiName": "websecurityscanner", "apiVersion": "v1beta", "language": "python", - "generator": "gapic", - "config": "google/cloud/websecurityscanner/artman_websecurityscanner_v1beta.yaml" + "generator": "bazel" } } ] diff --git a/tests/unit/gapic/v1alpha/test_web_security_scanner_client_v1alpha.py b/tests/unit/gapic/v1alpha/test_web_security_scanner_client_v1alpha.py index e123b29..11a6728 100644 --- a/tests/unit/gapic/v1alpha/test_web_security_scanner_client_v1alpha.py +++ b/tests/unit/gapic/v1alpha/test_web_security_scanner_client_v1alpha.py @@ -66,6 +66,37 @@ class CustomException(Exception): class TestWebSecurityScannerClient(object): + def test_delete_scan_config(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = websecurityscanner_v1alpha.WebSecurityScannerClient() + + # Setup Request + name = client.scan_config_path("[PROJECT]", "[SCAN_CONFIG]") + + client.delete_scan_config(name) + + assert len(channel.requests) == 1 + expected_request = web_security_scanner_pb2.DeleteScanConfigRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_scan_config_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = websecurityscanner_v1alpha.WebSecurityScannerClient() + + # Setup request + name = client.scan_config_path("[PROJECT]", "[SCAN_CONFIG]") + + with pytest.raises(CustomException): + client.delete_scan_config(name) + def test_create_scan_config(self): # Setup Expected Response name = "name3373707" @@ -114,37 +145,6 @@ def test_create_scan_config_exception(self): with pytest.raises(CustomException): client.create_scan_config(parent, scan_config) - def test_delete_scan_config(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = websecurityscanner_v1alpha.WebSecurityScannerClient() - - # Setup Request - name = client.scan_config_path("[PROJECT]", "[SCAN_CONFIG]") - - client.delete_scan_config(name) - - assert len(channel.requests) == 1 - expected_request = web_security_scanner_pb2.DeleteScanConfigRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_scan_config_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = websecurityscanner_v1alpha.WebSecurityScannerClient() - - # Setup request - name = client.scan_config_path("[PROJECT]", "[SCAN_CONFIG]") - - with pytest.raises(CustomException): - client.delete_scan_config(name) - def test_get_scan_config(self): # Setup Expected Response name_2 = "name2-1052831874"