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

Commit

Permalink
Integrate Python GAPIC Microgenerator in googleapis. This PR uses usi…
Browse files Browse the repository at this point in the history
…ng documentai as an example. Depends on googleapis/gapic-generator-python#402

PiperOrigin-RevId: 309824146

Source-Author: Google APIs <[email protected]>
Source-Date: Mon May 4 15:06:44 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: e0f9d9e1f9de890db765be46f45ca8490723e3eb
Source-Link: googleapis/googleapis@e0f9d9e
  • Loading branch information
yoshi-automation committed Jun 24, 2020
1 parent 2645a4a commit 62691ab
Show file tree
Hide file tree
Showing 36 changed files with 2,630 additions and 2,823 deletions.
18 changes: 9 additions & 9 deletions google/cloud/securitycenter_v1/gapic/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

class NullValue(enum.IntEnum):
"""
``NullValue`` is a singleton enumeration to represent the null value for
the ``Value`` type union.
``NullValue`` is a singleton enumeration to represent the null value
for the ``Value`` type union.
The JSON representation for ``NullValue`` is JSON ``null``.
Expand Down Expand Up @@ -58,7 +58,7 @@ class StateChange(enum.IntEnum):
When querying across two points in time this describes the change
between the two points: ADDED, REMOVED, or ACTIVE. If there was no
compare\_duration supplied in the request the state change will be:
compare_duration supplied in the request the state change will be:
UNUSED
Attributes:
Expand All @@ -84,7 +84,7 @@ class StateChange(enum.IntEnum):
finding between the two points: CHANGED, UNCHANGED, ADDED, or REMOVED.
Findings can not be deleted, so REMOVED implies that the finding at
timestamp does not match the filter specified, but it did at timestamp -
compare\_duration. If there was no compare\_duration supplied in the
compare_duration. If there was no compare_duration supplied in the
request the state change will be: UNUSED
Attributes:
Expand All @@ -94,8 +94,8 @@ class StateChange(enum.IntEnum):
UNCHANGED (int): The finding has not changed state between the points in time and
existed at both points.
ADDED (int): The finding was created between the points in time.
REMOVED (int): The finding at timestamp does not match the filter specified, but it did
at timestamp - compare\_duration.
REMOVED (int): The finding at timestamp does not match the filter specified, but it
did at timestamp - compare_duration.
"""

UNUSED = 0
Expand All @@ -109,9 +109,9 @@ class OrganizationSettings(object):
class AssetDiscoveryConfig(object):
class InclusionMode(enum.IntEnum):
"""
The mode of inclusion when running Asset Discovery. Asset discovery can
be limited by explicitly identifying projects to be included or
excluded. If INCLUDE\_ONLY is set, then only those projects within the
The mode of inclusion when running Asset Discovery. Asset discovery
can be limited by explicitly identifying projects to be included or
excluded. If INCLUDE_ONLY is set, then only those projects within the
organization and their children are discovered during asset discovery.
If EXCLUDE is set, then projects that don't match those projects are
discovered during asset discovery. If neither are set, then all projects
Expand Down
405 changes: 200 additions & 205 deletions google/cloud/securitycenter_v1/gapic/security_center_client.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ def group_assets(self):
def group_findings(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.group_findings`.
Filters an organization or source's findings and groups them by their
specified properties.
Filters an organization or source's findings and groups them by
their specified properties.
To group across all sources provide a ``-`` as the source id. Example:
/v1/organizations/{organization\_id}/sources/-/findings
/v1/organizations/{organization_id}/sources/-/findings
Returns:
Callable: A callable which accepts the appropriate
Expand Down Expand Up @@ -289,7 +289,7 @@ def list_findings(self):
Lists an organization or source's findings.
To list across all sources provide a ``-`` as the source id. Example:
/v1/organizations/{organization\_id}/sources/-/findings
/v1/organizations/{organization_id}/sources/-/findings
Returns:
Callable: A callable which accepts the appropriate
Expand Down Expand Up @@ -333,7 +333,7 @@ def run_asset_discovery(self):
This API can only be called with limited frequency for an organization.
If it is called too frequently the caller will receive a
TOO\_MANY\_REQUESTS error.
TOO_MANY_REQUESTS error.
Returns:
Callable: A callable which accepts the appropriate
Expand Down
119 changes: 58 additions & 61 deletions google/cloud/securitycenter_v1/proto/asset_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 62691ab

Please sign in to comment.