Skip to content

Commit 61682bf

Browse files
feat: add kernel_rootkit field to finding's list of attributes (#413)
* feat: add kernel_rootkit field to finding's list of attributes docs: miscellaneous style improvements PiperOrigin-RevId: 493119809 Source-Link: googleapis/googleapis@6aff678 Source-Link: googleapis/googleapis-gen@ee52194 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWU1MjE5NDBhMDE3ZjM5M2ZjZTc3MzFlNGMyMmE0M2FmZjZiMDAwZSJ9 * 🦉 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 b246140 commit 61682bf

File tree

14 files changed

+250
-102
lines changed

14 files changed

+250
-102
lines changed

packages/google-cloud-securitycenter/google/cloud/securitycenter/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
from google.cloud.securitycenter_v1.types.folder import Folder
4747
from google.cloud.securitycenter_v1.types.iam_binding import IamBinding
4848
from google.cloud.securitycenter_v1.types.indicator import Indicator
49+
from google.cloud.securitycenter_v1.types.kernel_rootkit import KernelRootkit
4950
from google.cloud.securitycenter_v1.types.kubernetes import Kubernetes
5051
from google.cloud.securitycenter_v1.types.label import Label
5152
from google.cloud.securitycenter_v1.types.mitre_attack import MitreAttack
@@ -138,6 +139,7 @@
138139
"Folder",
139140
"IamBinding",
140141
"Indicator",
142+
"KernelRootkit",
141143
"Kubernetes",
142144
"Label",
143145
"MitreAttack",

packages/google-cloud-securitycenter/google/cloud/securitycenter_v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from .types.folder import Folder
3535
from .types.iam_binding import IamBinding
3636
from .types.indicator import Indicator
37+
from .types.kernel_rootkit import KernelRootkit
3738
from .types.kubernetes import Kubernetes
3839
from .types.label import Label
3940
from .types.mitre_attack import MitreAttack
@@ -136,6 +137,7 @@
136137
"GroupResult",
137138
"IamBinding",
138139
"Indicator",
140+
"KernelRootkit",
139141
"Kubernetes",
140142
"Label",
141143
"ListAssetsRequest",

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

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
from google.cloud.securitycenter_v1.types import (
6363
iam_binding,
6464
indicator,
65+
kernel_rootkit,
6566
kubernetes,
6667
mitre_attack,
6768
)
@@ -871,9 +872,9 @@ async def sample_create_notification_config():
871872
Required.
872873
Unique identifier provided by the client
873874
within the parent scope. It must be
874-
between 1 and 128 characters, and
875-
contains alphanumeric characters,
876-
underscores or hyphens only.
875+
between 1 and 128 characters and contain
876+
alphanumeric characters, underscores, or
877+
hyphens only.
877878
878879
This corresponds to the ``config_id`` field
879880
on the ``request`` instance; if ``request`` is provided, this
@@ -1086,7 +1087,10 @@ async def sample_delete_notification_config():
10861087
name (:class:`str`):
10871088
Required. Name of the notification config to delete. Its
10881089
format is
1089-
"organizations/[organization_id]/notificationConfigs/[config_id]".
1090+
"organizations/[organization_id]/notificationConfigs/[config_id]",
1091+
"folders/[folder_id]/notificationConfigs/[config_id]",
1092+
or
1093+
"projects/[project_id]/notificationConfigs/[config_id]".
10901094
10911095
This corresponds to the ``name`` field
10921096
on the ``request`` instance; if ``request`` is provided, this
@@ -1147,7 +1151,7 @@ async def get_big_query_export(
11471151
timeout: Optional[float] = None,
11481152
metadata: Sequence[Tuple[str, str]] = (),
11491153
) -> bigquery_export.BigQueryExport:
1150-
r"""Gets a big query export.
1154+
r"""Gets a BigQuery export.
11511155
11521156
.. code-block:: python
11531157
@@ -1177,10 +1181,10 @@ async def sample_get_big_query_export():
11771181
11781182
Args:
11791183
request (Optional[Union[google.cloud.securitycenter_v1.types.GetBigQueryExportRequest, dict]]):
1180-
The request object. Request message for retrieving a big
1181-
query export.
1184+
The request object. Request message for retrieving a
1185+
BigQuery export.
11821186
name (:class:`str`):
1183-
Required. Name of the big query export to retrieve. Its
1187+
Required. Name of the BigQuery export to retrieve. Its
11841188
format is
11851189
organizations/{organization}/bigQueryExports/{export_id},
11861190
folders/{folder}/bigQueryExports/{export_id}, or
@@ -1574,7 +1578,10 @@ async def sample_get_notification_config():
15741578
name (:class:`str`):
15751579
Required. Name of the notification config to get. Its
15761580
format is
1577-
"organizations/[organization_id]/notificationConfigs/[config_id]".
1581+
"organizations/[organization_id]/notificationConfigs/[config_id]",
1582+
"folders/[folder_id]/notificationConfigs/[config_id]",
1583+
or
1584+
"projects/[project_id]/notificationConfigs/[config_id]".
15781585
15791586
This corresponds to the ``name`` field
15801587
on the ``request`` instance; if ``request`` is provided, this
@@ -2526,8 +2533,8 @@ async def sample_list_notification_configs():
25262533
The request object. Request message for listing
25272534
notification configs.
25282535
parent (:class:`str`):
2529-
Required. Name of the organization to list notification
2530-
configs. Its format is
2536+
Required. The name of the parent in which to list the
2537+
notification configurations. Its format is
25312538
"organizations/[organization_id]",
25322539
"folders/[folder_id]", or "projects/[project_id]".
25332540
@@ -2909,11 +2916,12 @@ async def sample_set_finding_state():
29092916
The request object. Request message for updating a
29102917
finding's state.
29112918
name (:class:`str`):
2912-
Required. The relative resource name of the finding.
2913-
See:
2914-
https://cloud.google.com/apis/design/resource_names#relative_resource_name
2915-
Example:
2916-
"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}".
2919+
Required. The `relative resource
2920+
name <https://cloud.google.com/apis/design/resource_names#relative_resource_name>`__
2921+
of the finding. Example:
2922+
"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
2923+
"folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
2924+
"projects/{project_id}/sources/{source_id}/findings/{finding_id}".
29172925
29182926
This corresponds to the ``name`` field
29192927
on the ``request`` instance; if ``request`` is provided, this
@@ -3041,10 +3049,9 @@ async def sample_set_mute():
30413049
The request object. Request message for updating a
30423050
finding's mute status.
30433051
name (:class:`str`):
3044-
Required. The relative resource name of the finding.
3045-
See:
3046-
https://cloud.google.com/apis/design/resource_names#relative_resource_name
3047-
Example:
3052+
Required. The `relative resource
3053+
name <https://cloud.google.com/apis/design/resource_names#relative_resource_name>`__
3054+
of the finding. Example:
30483055
"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
30493056
"folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
30503057
"projects/{project_id}/sources/{source_id}/findings/{finding_id}".
@@ -4238,7 +4245,7 @@ async def create_big_query_export(
42384245
timeout: Optional[float] = None,
42394246
metadata: Sequence[Tuple[str, str]] = (),
42404247
) -> bigquery_export.BigQueryExport:
4241-
r"""Creates a big query export.
4248+
r"""Creates a BigQuery export.
42424249
42434250
.. code-block:: python
42444251
@@ -4269,18 +4276,19 @@ async def sample_create_big_query_export():
42694276
42704277
Args:
42714278
request (Optional[Union[google.cloud.securitycenter_v1.types.CreateBigQueryExportRequest, dict]]):
4272-
The request object. Request message for creating a big
4273-
query export.
4279+
The request object. Request message for creating a
4280+
BigQuery export.
42744281
parent (:class:`str`):
4275-
Required. Resource name of the new big query export's
4276-
parent. Its format is "organizations/[organization_id]",
4282+
Required. The name of the parent resource of the new
4283+
BigQuery export. Its format is
4284+
"organizations/[organization_id]",
42774285
"folders/[folder_id]", or "projects/[project_id]".
42784286
42794287
This corresponds to the ``parent`` field
42804288
on the ``request`` instance; if ``request`` is provided, this
42814289
should not be set.
42824290
big_query_export (:class:`google.cloud.securitycenter_v1.types.BigQueryExport`):
4283-
Required. The big query export being
4291+
Required. The BigQuery export being
42844292
created.
42854293
42864294
This corresponds to the ``big_query_export`` field
@@ -4366,7 +4374,7 @@ async def delete_big_query_export(
43664374
timeout: Optional[float] = None,
43674375
metadata: Sequence[Tuple[str, str]] = (),
43684376
) -> None:
4369-
r"""Deletes an existing big query export.
4377+
r"""Deletes an existing BigQuery export.
43704378
43714379
.. code-block:: python
43724380
@@ -4393,10 +4401,10 @@ async def sample_delete_big_query_export():
43934401
43944402
Args:
43954403
request (Optional[Union[google.cloud.securitycenter_v1.types.DeleteBigQueryExportRequest, dict]]):
4396-
The request object. Request message for deleting a big
4397-
query export.
4404+
The request object. Request message for deleting a
4405+
BigQuery export.
43984406
name (:class:`str`):
4399-
Required. Name of the big query export to delete. Its
4407+
Required. The name of the BigQuery export to delete. Its
44004408
format is
44014409
organizations/{organization}/bigQueryExports/{export_id},
44024410
folders/{folder}/bigQueryExports/{export_id}, or

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

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
from google.cloud.securitycenter_v1.types import (
6767
iam_binding,
6868
indicator,
69+
kernel_rootkit,
6970
kubernetes,
7071
mitre_attack,
7172
)
@@ -1244,9 +1245,9 @@ def sample_create_notification_config():
12441245
Required.
12451246
Unique identifier provided by the client
12461247
within the parent scope. It must be
1247-
between 1 and 128 characters, and
1248-
contains alphanumeric characters,
1249-
underscores or hyphens only.
1248+
between 1 and 128 characters and contain
1249+
alphanumeric characters, underscores, or
1250+
hyphens only.
12501251
12511252
This corresponds to the ``config_id`` field
12521253
on the ``request`` instance; if ``request`` is provided, this
@@ -1463,7 +1464,10 @@ def sample_delete_notification_config():
14631464
name (str):
14641465
Required. Name of the notification config to delete. Its
14651466
format is
1466-
"organizations/[organization_id]/notificationConfigs/[config_id]".
1467+
"organizations/[organization_id]/notificationConfigs/[config_id]",
1468+
"folders/[folder_id]/notificationConfigs/[config_id]",
1469+
or
1470+
"projects/[project_id]/notificationConfigs/[config_id]".
14671471
14681472
This corresponds to the ``name`` field
14691473
on the ``request`` instance; if ``request`` is provided, this
@@ -1528,7 +1532,7 @@ def get_big_query_export(
15281532
timeout: Optional[float] = None,
15291533
metadata: Sequence[Tuple[str, str]] = (),
15301534
) -> bigquery_export.BigQueryExport:
1531-
r"""Gets a big query export.
1535+
r"""Gets a BigQuery export.
15321536
15331537
.. code-block:: python
15341538
@@ -1558,10 +1562,10 @@ def sample_get_big_query_export():
15581562
15591563
Args:
15601564
request (Union[google.cloud.securitycenter_v1.types.GetBigQueryExportRequest, dict]):
1561-
The request object. Request message for retrieving a big
1562-
query export.
1565+
The request object. Request message for retrieving a
1566+
BigQuery export.
15631567
name (str):
1564-
Required. Name of the big query export to retrieve. Its
1568+
Required. Name of the BigQuery export to retrieve. Its
15651569
format is
15661570
organizations/{organization}/bigQueryExports/{export_id},
15671571
folders/{folder}/bigQueryExports/{export_id}, or
@@ -1942,7 +1946,10 @@ def sample_get_notification_config():
19421946
name (str):
19431947
Required. Name of the notification config to get. Its
19441948
format is
1945-
"organizations/[organization_id]/notificationConfigs/[config_id]".
1949+
"organizations/[organization_id]/notificationConfigs/[config_id]",
1950+
"folders/[folder_id]/notificationConfigs/[config_id]",
1951+
or
1952+
"projects/[project_id]/notificationConfigs/[config_id]".
19461953
19471954
This corresponds to the ``name`` field
19481955
on the ``request`` instance; if ``request`` is provided, this
@@ -2831,8 +2838,8 @@ def sample_list_notification_configs():
28312838
The request object. Request message for listing
28322839
notification configs.
28332840
parent (str):
2834-
Required. Name of the organization to list notification
2835-
configs. Its format is
2841+
Required. The name of the parent in which to list the
2842+
notification configurations. Its format is
28362843
"organizations/[organization_id]",
28372844
"folders/[folder_id]", or "projects/[project_id]".
28382845
@@ -3198,11 +3205,12 @@ def sample_set_finding_state():
31983205
The request object. Request message for updating a
31993206
finding's state.
32003207
name (str):
3201-
Required. The relative resource name of the finding.
3202-
See:
3203-
https://cloud.google.com/apis/design/resource_names#relative_resource_name
3204-
Example:
3205-
"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}".
3208+
Required. The `relative resource
3209+
name <https://cloud.google.com/apis/design/resource_names#relative_resource_name>`__
3210+
of the finding. Example:
3211+
"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
3212+
"folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
3213+
"projects/{project_id}/sources/{source_id}/findings/{finding_id}".
32063214
32073215
This corresponds to the ``name`` field
32083216
on the ``request`` instance; if ``request`` is provided, this
@@ -3330,10 +3338,9 @@ def sample_set_mute():
33303338
The request object. Request message for updating a
33313339
finding's mute status.
33323340
name (str):
3333-
Required. The relative resource name of the finding.
3334-
See:
3335-
https://cloud.google.com/apis/design/resource_names#relative_resource_name
3336-
Example:
3341+
Required. The `relative resource
3342+
name <https://cloud.google.com/apis/design/resource_names#relative_resource_name>`__
3343+
of the finding. Example:
33373344
"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
33383345
"folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
33393346
"projects/{project_id}/sources/{source_id}/findings/{finding_id}".
@@ -4520,7 +4527,7 @@ def create_big_query_export(
45204527
timeout: Optional[float] = None,
45214528
metadata: Sequence[Tuple[str, str]] = (),
45224529
) -> bigquery_export.BigQueryExport:
4523-
r"""Creates a big query export.
4530+
r"""Creates a BigQuery export.
45244531
45254532
.. code-block:: python
45264533
@@ -4551,18 +4558,19 @@ def sample_create_big_query_export():
45514558
45524559
Args:
45534560
request (Union[google.cloud.securitycenter_v1.types.CreateBigQueryExportRequest, dict]):
4554-
The request object. Request message for creating a big
4555-
query export.
4561+
The request object. Request message for creating a
4562+
BigQuery export.
45564563
parent (str):
4557-
Required. Resource name of the new big query export's
4558-
parent. Its format is "organizations/[organization_id]",
4564+
Required. The name of the parent resource of the new
4565+
BigQuery export. Its format is
4566+
"organizations/[organization_id]",
45594567
"folders/[folder_id]", or "projects/[project_id]".
45604568
45614569
This corresponds to the ``parent`` field
45624570
on the ``request`` instance; if ``request`` is provided, this
45634571
should not be set.
45644572
big_query_export (google.cloud.securitycenter_v1.types.BigQueryExport):
4565-
Required. The big query export being
4573+
Required. The BigQuery export being
45664574
created.
45674575
45684576
This corresponds to the ``big_query_export`` field
@@ -4648,7 +4656,7 @@ def delete_big_query_export(
46484656
timeout: Optional[float] = None,
46494657
metadata: Sequence[Tuple[str, str]] = (),
46504658
) -> None:
4651-
r"""Deletes an existing big query export.
4659+
r"""Deletes an existing BigQuery export.
46524660
46534661
.. code-block:: python
46544662
@@ -4675,10 +4683,10 @@ def sample_delete_big_query_export():
46754683
46764684
Args:
46774685
request (Union[google.cloud.securitycenter_v1.types.DeleteBigQueryExportRequest, dict]):
4678-
The request object. Request message for deleting a big
4679-
query export.
4686+
The request object. Request message for deleting a
4687+
BigQuery export.
46804688
name (str):
4681-
Required. Name of the big query export to delete. Its
4689+
Required. The name of the BigQuery export to delete. Its
46824690
format is
46834691
organizations/{organization}/bigQueryExports/{export_id},
46844692
folders/{folder}/bigQueryExports/{export_id}, or

packages/google-cloud-securitycenter/google/cloud/securitycenter_v1/services/security_center/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def get_big_query_export(
468468
]:
469469
r"""Return a callable for the get big query export method over gRPC.
470470
471-
Gets a big query export.
471+
Gets a BigQuery export.
472472
473473
Returns:
474474
Callable[[~.GetBigQueryExportRequest],
@@ -1189,7 +1189,7 @@ def create_big_query_export(
11891189
]:
11901190
r"""Return a callable for the create big query export method over gRPC.
11911191
1192-
Creates a big query export.
1192+
Creates a BigQuery export.
11931193
11941194
Returns:
11951195
Callable[[~.CreateBigQueryExportRequest],
@@ -1217,7 +1217,7 @@ def delete_big_query_export(
12171217
]:
12181218
r"""Return a callable for the delete big query export method over gRPC.
12191219
1220-
Deletes an existing big query export.
1220+
Deletes an existing BigQuery export.
12211221
12221222
Returns:
12231223
Callable[[~.DeleteBigQueryExportRequest],

0 commit comments

Comments
 (0)