Repository: googleapis/google-cloud-python

Issue:
DO NOT MERGE: websecurityscanner synth (enums order only)
This PR was created by autosynth.


Discussion:
Spurious change, due to https://github.com/googleapis/gapic-generator/issues/2319
@crwilcox, @theacodes I'm leaving this PR open, but blocked, to keep @dpebot from opening a new one every day with the same spurious change.  Once a fix for https://github.com/googleapis/gapic-generator/issues/2319 lands, we can close this one and let the bot generate a fresh one.

Resolving patch:
diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/gapic/enums.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/gapic/enums.py
--- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/gapic/enums.py
+++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/gapic/enums.py
@@ -69,7 +69,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.
@@ -85,7 +85,7 @@ class TargetPlatform(enum.IntEnum):
 
         Attributes:
           TARGET_PLATFORM_UNSPECIFIED (int): The target platform is unknown. Requests with this enum value will be
-          rejected with INVALID_ARGUMENT error.
+          rejected with INVALID\_ARGUMENT error.
           APP_ENGINE (int): Google App Engine service.
           COMPUTE (int): Google Compute Engine service.
         """
diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client.py
--- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client.py
+++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/gapic/web_security_scanner_client.py
@@ -185,9 +185,10 @@ def __init__(self,
             )
 
         if client_info is None:
-            client_info = (
-                google.api_core.gapic_v1.client_info.DEFAULT_CLIENT_INFO)
-        client_info.gapic_version = _GAPIC_LIBRARY_VERSION
+            client_info = google.api_core.gapic_v1.client_info.ClientInfo(
+                gapic_version=_GAPIC_LIBRARY_VERSION, )
+        else:
+            client_info.gapic_version = _GAPIC_LIBRARY_VERSION
         self._client_info = client_info
 
         # Parse out the default settings for retry and timeout for each RPC
@@ -220,7 +221,7 @@ def create_scan_config(self,
             >>>
             >>> parent = client.project_path('[PROJECT]')
             >>>
-            >>> # TODO: Initialize ``scan_config``:
+            >>> # TODO: Initialize `scan_config`:
             >>> scan_config = {}
             >>>
             >>> response = client.create_scan_config(parent, scan_config)
@@ -231,6 +232,7 @@ def create_scan_config(self,
                 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
@@ -404,7 +406,7 @@ def list_scan_configs(self,
             >>> # Alternatively:
             >>>
             >>> # Iterate over results one page at a time
-            >>> for page in client.list_scan_configs(parent, options=CallOptions(page_token=INITIAL_PAGE)):
+            >>> for page in client.list_scan_configs(parent).pages:
             ...     for element in page:
             ...         # process element
             ...         pass
@@ -484,10 +486,10 @@ def update_scan_config(self,
             >>>
             >>> client = websecurityscanner_v1alpha.WebSecurityScannerClient()
             >>>
-            >>> # TODO: Initialize ``scan_config``:
+            >>> # TODO: Initialize `scan_config`:
             >>> scan_config = {}
             >>>
-            >>> # TODO: Initialize ``update_mask``:
+            >>> # TODO: Initialize `update_mask`:
             >>> update_mask = {}
             >>>
             >>> response = client.update_scan_config(scan_config, update_mask)
@@ -497,12 +499,13 @@ def update_scan_config(self,
                 The ScanConfig to be updated. The name field must be set to identify the
                 resource to be updated. The values of fields not covered by the mask
                 will be ignored.
+
                 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
                 message :class:`~google.cloud.websecurityscanner_v1alpha.types.FieldMask`
             retry (Optional[google.api_core.retry.Retry]):  A retry object used
@@ -679,7 +682,7 @@ def list_scan_runs(self,
             >>> # Alternatively:
             >>>
             >>> # Iterate over results one page at a time
-            >>> for page in client.list_scan_runs(parent, options=CallOptions(page_token=INITIAL_PAGE)):
+            >>> for page in client.list_scan_runs(parent).pages:
             ...     for element in page:
             ...         # process element
             ...         pass
@@ -825,7 +828,7 @@ def list_crawled_urls(self,
             >>> # Alternatively:
             >>>
             >>> # Iterate over results one page at a time
-            >>> for page in client.list_crawled_urls(parent, options=CallOptions(page_token=INITIAL_PAGE)):
+            >>> for page in client.list_crawled_urls(parent).pages:
             ...     for element in page:
             ...         # process element
             ...         pass
@@ -964,7 +967,7 @@ def list_findings(self,
             >>>
             >>> parent = client.scan_run_path('[PROJECT]', '[SCAN_CONFIG]', '[SCAN_RUN]')
             >>>
-            >>> # TODO: Initialize ``filter_``:
+            >>> # TODO: Initialize `filter_`:
             >>> filter_ = ''
             >>>
             >>> # Iterate over all results
@@ -976,7 +979,7 @@ def list_findings(self,
             >>> # Alternatively:
             >>>
             >>> # Iterate over results one page at a time
-            >>> for page in client.list_findings(parent, filter_, options=CallOptions(page_token=INITIAL_PAGE)):
+            >>> for page in client.list_findings(parent, filter_).pages:
             ...     for element in page:
             ...         # process element
             ...         pass
@@ -986,10 +989,8 @@ def list_findings(self,
                 The parent resource name, which should be a scan run resource name in the
                 format
                 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-            filter_ (str): The filter expression. The expression must be in the format: <field>
-                <operator> <value>.
-                Supported field: 'finding_type'.
-                Supported operator: '='.
+            filter_ (str): 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


Test patch: