-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added container field to findings attributes (#353)
- [ ] Regenerate this pull request now. feat: Added kubernetes field to findings attribute. This field is populated only when the container is a kubernetes cluster explicitly PiperOrigin-RevId: 462248767 Source-Link: googleapis/googleapis@dd2b0d2 Source-Link: googleapis/googleapis-gen@0be13cf Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGJlMTNjZjUzY2E0NTU1NTQ4OWQ3MzQxOWQxMDUzYTcwOWE4ZGVjZCJ9
- Loading branch information
1 parent
31d786d
commit ace624a
Showing
11 changed files
with
492 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
packages/google-cloud-securitycenter/google/cloud/securitycenter_v1/types/container.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
import proto # type: ignore | ||
|
||
from google.cloud.securitycenter_v1.types import label | ||
|
||
__protobuf__ = proto.module( | ||
package="google.cloud.securitycenter.v1", | ||
manifest={ | ||
"Container", | ||
}, | ||
) | ||
|
||
|
||
class Container(proto.Message): | ||
r"""Container associated with the finding. | ||
Attributes: | ||
name (str): | ||
Container name. | ||
uri (str): | ||
Container image URI provided when configuring | ||
a pod/container. May identify a container image | ||
version using mutable tags. | ||
image_id (str): | ||
Optional container image id, when provided by | ||
the container runtime. Uniquely identifies the | ||
container image launched using a container image | ||
digest. | ||
labels (Sequence[google.cloud.securitycenter_v1.types.Label]): | ||
Container labels, as provided by the | ||
container runtime. | ||
""" | ||
|
||
name = proto.Field( | ||
proto.STRING, | ||
number=1, | ||
) | ||
uri = proto.Field( | ||
proto.STRING, | ||
number=2, | ||
) | ||
image_id = proto.Field( | ||
proto.STRING, | ||
number=3, | ||
) | ||
labels = proto.RepeatedField( | ||
proto.MESSAGE, | ||
number=4, | ||
message=label.Label, | ||
) | ||
|
||
|
||
__all__ = tuple(sorted(__protobuf__.manifest)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.