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

Commit

Permalink
docs: Fix formatting of request arg in docstring (#445)
Browse files Browse the repository at this point in the history
* docs: Fix formatting of request arg in docstring

chore: Update gapic-generator-python to v1.9.1
PiperOrigin-RevId: 518604533

Source-Link: googleapis/googleapis@8a085ae

Source-Link: googleapis/googleapis-gen@b2ab4b0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJhYjRiMGEwYWUyOTA3ZTgxMmMyMDkxOThhNzRlMDg5OGFmY2IwNCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Mar 23, 2023
1 parent 78f5c4a commit b8e46b7
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,11 @@ async def sample_bulk_mute_findings():
The request object. Request message for bulk findings
update.
Note:
1. If multiple bulk update requests match the same
resource, the order in which they get executed is not
defined.
2. Once a bulk operation is started, there is no way to
stop it.
1. If multiple bulk update requests
match the same resource, the order in
which they get executed is not defined.
2. Once a bulk operation is started,
there is no way to stop it.
parent (:class:`str`):
Required. The parent, at which bulk action needs to be
applied. Its format is
Expand Down Expand Up @@ -1290,8 +1290,7 @@ async def sample_get_iam_policy():
Args:
request (Optional[Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]]):
The request object. Request message for `GetIamPolicy`
method.
The request object. Request message for ``GetIamPolicy`` method.
resource (:class:`str`):
REQUIRED: The resource for which the
policy is being requested. See the
Expand Down Expand Up @@ -1467,8 +1466,8 @@ async def sample_get_mute_config():
Args:
request (Optional[Union[google.cloud.securitycenter_v1.types.GetMuteConfigRequest, dict]]):
The request object. Request message for retrieving a
mute config.
The request object. Request message for retrieving a mute
config.
name (:class:`str`):
Required. Name of the mute config to retrieve. Its
format is
Expand Down Expand Up @@ -1811,8 +1810,7 @@ async def sample_get_source():
Args:
request (Optional[Union[google.cloud.securitycenter_v1.types.GetSourceRequest, dict]]):
The request object. Request message for getting a
source.
The request object. Request message for getting a source.
name (:class:`str`):
Required. Relative resource name of the source. Its
format is
Expand Down Expand Up @@ -2306,8 +2304,7 @@ async def sample_list_findings():
Args:
request (Optional[Union[google.cloud.securitycenter_v1.types.ListFindingsRequest, dict]]):
The request object. Request message for listing
findings.
The request object. Request message for listing findings.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2413,8 +2410,8 @@ async def sample_list_mute_configs():
Args:
request (Optional[Union[google.cloud.securitycenter_v1.types.ListMuteConfigsRequest, dict]]):
The request object. Request message for listing mute
configs at a given scope e.g. organization, folder or
project.
configs at a given scope e.g.
organization, folder or project.
parent (:class:`str`):
Required. The parent, which owns the collection of mute
configs. Its format is
Expand Down Expand Up @@ -3172,8 +3169,7 @@ async def sample_set_iam_policy():
Args:
request (Optional[Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]]):
The request object. Request message for `SetIamPolicy`
method.
The request object. Request message for ``SetIamPolicy`` method.
resource (:class:`str`):
REQUIRED: The resource for which the
policy is being specified. See the
Expand Down Expand Up @@ -3341,8 +3337,7 @@ async def sample_test_iam_permissions():
Args:
request (Optional[Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]]):
The request object. Request message for
`TestIamPermissions` method.
The request object. Request message for ``TestIamPermissions`` method.
resource (:class:`str`):
REQUIRED: The resource for which the
policy detail is being requested. See
Expand Down Expand Up @@ -4624,8 +4619,8 @@ async def sample_list_big_query_exports():
Args:
request (Optional[Union[google.cloud.securitycenter_v1.types.ListBigQueryExportsRequest, dict]]):
The request object. Request message for listing BigQuery
exports at a given scope e.g. organization, folder or
project.
exports at a given scope e.g.
organization, folder or project.
parent (:class:`str`):
Required. The parent, which owns the collection of
BigQuery exports. Its format is
Expand Down
37 changes: 16 additions & 21 deletions google/cloud/securitycenter_v1/services/security_center/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,11 +717,11 @@ def sample_bulk_mute_findings():
The request object. Request message for bulk findings
update.
Note:
1. If multiple bulk update requests match the same
resource, the order in which they get executed is not
defined.
2. Once a bulk operation is started, there is no way to
stop it.
1. If multiple bulk update requests
match the same resource, the order in
which they get executed is not defined.
2. Once a bulk operation is started,
there is no way to stop it.
parent (str):
Required. The parent, at which bulk action needs to be
applied. Its format is
Expand Down Expand Up @@ -1673,8 +1673,7 @@ def sample_get_iam_policy():
Args:
request (Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]):
The request object. Request message for `GetIamPolicy`
method.
The request object. Request message for ``GetIamPolicy`` method.
resource (str):
REQUIRED: The resource for which the
policy is being requested. See the
Expand Down Expand Up @@ -1837,8 +1836,8 @@ def sample_get_mute_config():
Args:
request (Union[google.cloud.securitycenter_v1.types.GetMuteConfigRequest, dict]):
The request object. Request message for retrieving a
mute config.
The request object. Request message for retrieving a mute
config.
name (str):
Required. Name of the mute config to retrieve. Its
format is
Expand Down Expand Up @@ -2165,8 +2164,7 @@ def sample_get_source():
Args:
request (Union[google.cloud.securitycenter_v1.types.GetSourceRequest, dict]):
The request object. Request message for getting a
source.
The request object. Request message for getting a source.
name (str):
Required. Relative resource name of the source. Its
format is
Expand Down Expand Up @@ -2622,8 +2620,7 @@ def sample_list_findings():
Args:
request (Union[google.cloud.securitycenter_v1.types.ListFindingsRequest, dict]):
The request object. Request message for listing
findings.
The request object. Request message for listing findings.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2720,8 +2717,8 @@ def sample_list_mute_configs():
Args:
request (Union[google.cloud.securitycenter_v1.types.ListMuteConfigsRequest, dict]):
The request object. Request message for listing mute
configs at a given scope e.g. organization, folder or
project.
configs at a given scope e.g.
organization, folder or project.
parent (str):
Required. The parent, which owns the collection of mute
configs. Its format is
Expand Down Expand Up @@ -3463,8 +3460,7 @@ def sample_set_iam_policy():
Args:
request (Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]):
The request object. Request message for `SetIamPolicy`
method.
The request object. Request message for ``SetIamPolicy`` method.
resource (str):
REQUIRED: The resource for which the
policy is being specified. See the
Expand Down Expand Up @@ -3629,8 +3625,7 @@ def sample_test_iam_permissions():
Args:
request (Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]):
The request object. Request message for
`TestIamPermissions` method.
The request object. Request message for ``TestIamPermissions`` method.
resource (str):
REQUIRED: The resource for which the
policy detail is being requested. See
Expand Down Expand Up @@ -4908,8 +4903,8 @@ def sample_list_big_query_exports():
Args:
request (Union[google.cloud.securitycenter_v1.types.ListBigQueryExportsRequest, dict]):
The request object. Request message for listing BigQuery
exports at a given scope e.g. organization, folder or
project.
exports at a given scope e.g.
organization, folder or project.
parent (str):
Required. The parent, which owns the collection of
BigQuery exports. Its format is
Expand Down
Loading

0 comments on commit b8e46b7

Please sign in to comment.