Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: [google-cloud-modelarmor] Make enable_floor_setting_enforcement field optional #13557

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ class TemplateMetadata(proto.Message):
class FloorSetting(proto.Message):
r"""Message describing FloorSetting resource

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
name (str):
Identifier. The resource name.
Expand All @@ -321,6 +323,8 @@ class FloorSetting(proto.Message):
Required. ModelArmor filter configuration.
enable_floor_setting_enforcement (bool):
Optional. Floor Settings enforcement status.

This field is a member of `oneof`_ ``_enable_floor_setting_enforcement``.
"""

name: str = proto.Field(
Expand All @@ -345,6 +349,7 @@ class FloorSetting(proto.Message):
enable_floor_setting_enforcement: bool = proto.Field(
proto.BOOL,
number=5,
optional=True,
)


Expand Down Expand Up @@ -866,10 +871,9 @@ class SdpAdvancedConfig(proto.Message):
not provided), then Sensitive Data Protection InspectContent
action is performed during Sanitization. All Sensitive Data
Protection findings identified during inspection will be
returned as SdpFinding in SdpInsepctionResult e.g.
``organizations/{organization}/inspectTemplates/{inspect_template}``,
``projects/{project}/inspectTemplates/{inspect_template}``
``organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}``
returned as SdpFinding in SdpInsepctionResult.

e.g.
``projects/{project}/locations/{location}/inspectTemplates/{inspect_template}``
deidentify_template (str):
Optional. Optional Sensitive Data Protection Deidentify
Expand All @@ -882,9 +886,6 @@ class SdpAdvancedConfig(proto.Message):
deidentify template must be present in inspect template.

e.g.
``organizations/{organization}/deidentifyTemplates/{deidentify_template}``,
``projects/{project}/deidentifyTemplates/{deidentify_template}``
``organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}``
``projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}``
"""

Expand Down Expand Up @@ -1084,7 +1085,7 @@ class FilterResult(proto.Message):
Malicious URI filter results.

This field is a member of `oneof`_ ``filter_result``.
csam_filter_filter_result (google.cloud.modelarmor_v1.types.CsamFilterResult):
csam_filter_result (google.cloud.modelarmor_v1.types.CsamFilterResult):
CSAM filter results.

This field is a member of `oneof`_ ``filter_result``.
Expand Down Expand Up @@ -1118,7 +1119,7 @@ class FilterResult(proto.Message):
oneof="filter_result",
message="MaliciousUriFilterResult",
)
csam_filter_filter_result: "CsamFilterResult" = proto.Field(
csam_filter_result: "CsamFilterResult" = proto.Field(
proto.MESSAGE,
number=5,
oneof="filter_result",
Expand Down Expand Up @@ -1395,6 +1396,9 @@ class SdpDeidentifyResult(proto.Message):
transformed_bytes (int):
Total size in bytes that were transformed
during deidentification.
info_types (MutableSequence[str]):
List of Sensitive Data Protection info-types
that were de-identified.
"""

execution_state: "FilterExecutionState" = proto.Field(
Expand All @@ -1421,6 +1425,10 @@ class SdpDeidentifyResult(proto.Message):
proto.INT64,
number=5,
)
info_types: MutableSequence[str] = proto.RepeatedField(
proto.STRING,
number=6,
)


class SdpFinding(proto.Message):
Expand Down
Loading