Skip to content

Commit 62a476c

Browse files
docs: Fix formatting of request arg in docstring (#445)
* 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>
1 parent 08de832 commit 62a476c

File tree

9 files changed

+52
-138
lines changed

9 files changed

+52
-138
lines changed

packages/google-cloud-securitycenter/google/cloud/securitycenter_v1/services/security_center/async_client.py

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,11 @@ async def sample_bulk_mute_findings():
342342
The request object. Request message for bulk findings
343343
update.
344344
Note:
345-
1. If multiple bulk update requests match the same
346-
resource, the order in which they get executed is not
347-
defined.
348-
2. Once a bulk operation is started, there is no way to
349-
stop it.
345+
1. If multiple bulk update requests
346+
match the same resource, the order in
347+
which they get executed is not defined.
348+
2. Once a bulk operation is started,
349+
there is no way to stop it.
350350
parent (:class:`str`):
351351
Required. The parent, at which bulk action needs to be
352352
applied. Its format is
@@ -1290,8 +1290,7 @@ async def sample_get_iam_policy():
12901290
12911291
Args:
12921292
request (Optional[Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]]):
1293-
The request object. Request message for `GetIamPolicy`
1294-
method.
1293+
The request object. Request message for ``GetIamPolicy`` method.
12951294
resource (:class:`str`):
12961295
REQUIRED: The resource for which the
12971296
policy is being requested. See the
@@ -1467,8 +1466,8 @@ async def sample_get_mute_config():
14671466
14681467
Args:
14691468
request (Optional[Union[google.cloud.securitycenter_v1.types.GetMuteConfigRequest, dict]]):
1470-
The request object. Request message for retrieving a
1471-
mute config.
1469+
The request object. Request message for retrieving a mute
1470+
config.
14721471
name (:class:`str`):
14731472
Required. Name of the mute config to retrieve. Its
14741473
format is
@@ -1811,8 +1810,7 @@ async def sample_get_source():
18111810
18121811
Args:
18131812
request (Optional[Union[google.cloud.securitycenter_v1.types.GetSourceRequest, dict]]):
1814-
The request object. Request message for getting a
1815-
source.
1813+
The request object. Request message for getting a source.
18161814
name (:class:`str`):
18171815
Required. Relative resource name of the source. Its
18181816
format is
@@ -2306,8 +2304,7 @@ async def sample_list_findings():
23062304
23072305
Args:
23082306
request (Optional[Union[google.cloud.securitycenter_v1.types.ListFindingsRequest, dict]]):
2309-
The request object. Request message for listing
2310-
findings.
2307+
The request object. Request message for listing findings.
23112308
retry (google.api_core.retry.Retry): Designation of what errors, if any,
23122309
should be retried.
23132310
timeout (float): The timeout for this request.
@@ -2413,8 +2410,8 @@ async def sample_list_mute_configs():
24132410
Args:
24142411
request (Optional[Union[google.cloud.securitycenter_v1.types.ListMuteConfigsRequest, dict]]):
24152412
The request object. Request message for listing mute
2416-
configs at a given scope e.g. organization, folder or
2417-
project.
2413+
configs at a given scope e.g.
2414+
organization, folder or project.
24182415
parent (:class:`str`):
24192416
Required. The parent, which owns the collection of mute
24202417
configs. Its format is
@@ -3172,8 +3169,7 @@ async def sample_set_iam_policy():
31723169
31733170
Args:
31743171
request (Optional[Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]]):
3175-
The request object. Request message for `SetIamPolicy`
3176-
method.
3172+
The request object. Request message for ``SetIamPolicy`` method.
31773173
resource (:class:`str`):
31783174
REQUIRED: The resource for which the
31793175
policy is being specified. See the
@@ -3341,8 +3337,7 @@ async def sample_test_iam_permissions():
33413337
33423338
Args:
33433339
request (Optional[Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]]):
3344-
The request object. Request message for
3345-
`TestIamPermissions` method.
3340+
The request object. Request message for ``TestIamPermissions`` method.
33463341
resource (:class:`str`):
33473342
REQUIRED: The resource for which the
33483343
policy detail is being requested. See
@@ -4624,8 +4619,8 @@ async def sample_list_big_query_exports():
46244619
Args:
46254620
request (Optional[Union[google.cloud.securitycenter_v1.types.ListBigQueryExportsRequest, dict]]):
46264621
The request object. Request message for listing BigQuery
4627-
exports at a given scope e.g. organization, folder or
4628-
project.
4622+
exports at a given scope e.g.
4623+
organization, folder or project.
46294624
parent (:class:`str`):
46304625
Required. The parent, which owns the collection of
46314626
BigQuery exports. Its format is

packages/google-cloud-securitycenter/google/cloud/securitycenter_v1/services/security_center/client.py

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -717,11 +717,11 @@ def sample_bulk_mute_findings():
717717
The request object. Request message for bulk findings
718718
update.
719719
Note:
720-
1. If multiple bulk update requests match the same
721-
resource, the order in which they get executed is not
722-
defined.
723-
2. Once a bulk operation is started, there is no way to
724-
stop it.
720+
1. If multiple bulk update requests
721+
match the same resource, the order in
722+
which they get executed is not defined.
723+
2. Once a bulk operation is started,
724+
there is no way to stop it.
725725
parent (str):
726726
Required. The parent, at which bulk action needs to be
727727
applied. Its format is
@@ -1673,8 +1673,7 @@ def sample_get_iam_policy():
16731673
16741674
Args:
16751675
request (Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]):
1676-
The request object. Request message for `GetIamPolicy`
1677-
method.
1676+
The request object. Request message for ``GetIamPolicy`` method.
16781677
resource (str):
16791678
REQUIRED: The resource for which the
16801679
policy is being requested. See the
@@ -1837,8 +1836,8 @@ def sample_get_mute_config():
18371836
18381837
Args:
18391838
request (Union[google.cloud.securitycenter_v1.types.GetMuteConfigRequest, dict]):
1840-
The request object. Request message for retrieving a
1841-
mute config.
1839+
The request object. Request message for retrieving a mute
1840+
config.
18421841
name (str):
18431842
Required. Name of the mute config to retrieve. Its
18441843
format is
@@ -2165,8 +2164,7 @@ def sample_get_source():
21652164
21662165
Args:
21672166
request (Union[google.cloud.securitycenter_v1.types.GetSourceRequest, dict]):
2168-
The request object. Request message for getting a
2169-
source.
2167+
The request object. Request message for getting a source.
21702168
name (str):
21712169
Required. Relative resource name of the source. Its
21722170
format is
@@ -2622,8 +2620,7 @@ def sample_list_findings():
26222620
26232621
Args:
26242622
request (Union[google.cloud.securitycenter_v1.types.ListFindingsRequest, dict]):
2625-
The request object. Request message for listing
2626-
findings.
2623+
The request object. Request message for listing findings.
26272624
retry (google.api_core.retry.Retry): Designation of what errors, if any,
26282625
should be retried.
26292626
timeout (float): The timeout for this request.
@@ -2720,8 +2717,8 @@ def sample_list_mute_configs():
27202717
Args:
27212718
request (Union[google.cloud.securitycenter_v1.types.ListMuteConfigsRequest, dict]):
27222719
The request object. Request message for listing mute
2723-
configs at a given scope e.g. organization, folder or
2724-
project.
2720+
configs at a given scope e.g.
2721+
organization, folder or project.
27252722
parent (str):
27262723
Required. The parent, which owns the collection of mute
27272724
configs. Its format is
@@ -3463,8 +3460,7 @@ def sample_set_iam_policy():
34633460
34643461
Args:
34653462
request (Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]):
3466-
The request object. Request message for `SetIamPolicy`
3467-
method.
3463+
The request object. Request message for ``SetIamPolicy`` method.
34683464
resource (str):
34693465
REQUIRED: The resource for which the
34703466
policy is being specified. See the
@@ -3629,8 +3625,7 @@ def sample_test_iam_permissions():
36293625
36303626
Args:
36313627
request (Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]):
3632-
The request object. Request message for
3633-
`TestIamPermissions` method.
3628+
The request object. Request message for ``TestIamPermissions`` method.
36343629
resource (str):
36353630
REQUIRED: The resource for which the
36363631
policy detail is being requested. See
@@ -4908,8 +4903,8 @@ def sample_list_big_query_exports():
49084903
Args:
49094904
request (Union[google.cloud.securitycenter_v1.types.ListBigQueryExportsRequest, dict]):
49104905
The request object. Request message for listing BigQuery
4911-
exports at a given scope e.g. organization, folder or
4912-
project.
4906+
exports at a given scope e.g.
4907+
organization, folder or project.
49134908
parent (str):
49144909
Required. The parent, which owns the collection of
49154910
BigQuery exports. Its format is

0 commit comments

Comments
 (0)