google-cloud-modelarmor 0.2.3__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google_cloud_modelarmor-0.2.3/google_cloud_modelarmor.egg-info → google_cloud_modelarmor-0.2.4}/PKG-INFO +1 -1
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor/gapic_version.py +1 -1
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/gapic_version.py +1 -1
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/services/model_armor/async_client.py +4 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/services/model_armor/client.py +3 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/services/model_armor/transports/base.py +4 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/services/model_armor/transports/rest.py +4 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/types/service.py +18 -1
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4/google_cloud_modelarmor.egg-info}/PKG-INFO +1 -1
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/LICENSE +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/MANIFEST.in +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/README.rst +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor/__init__.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor/py.typed +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/__init__.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/gapic_metadata.json +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/py.typed +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/services/__init__.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/services/model_armor/__init__.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/services/model_armor/pagers.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/services/model_armor/transports/__init__.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/services/model_armor/transports/grpc.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/services/model_armor/transports/grpc_asyncio.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/services/model_armor/transports/rest_base.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/types/__init__.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google_cloud_modelarmor.egg-info/SOURCES.txt +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google_cloud_modelarmor.egg-info/dependency_links.txt +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google_cloud_modelarmor.egg-info/not-zip-safe +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google_cloud_modelarmor.egg-info/requires.txt +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google_cloud_modelarmor.egg-info/top_level.txt +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/setup.cfg +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/setup.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/tests/__init__.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/tests/unit/__init__.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/tests/unit/gapic/__init__.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/tests/unit/gapic/modelarmor_v1/__init__.py +0 -0
- {google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/tests/unit/gapic/modelarmor_v1/test_model_armor.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-modelarmor
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Google Cloud Modelarmor API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-modelarmor
|
|
6
6
|
Author: Google LLC
|
|
@@ -35,6 +35,7 @@ from google.api_core import retry_async as retries
|
|
|
35
35
|
from google.api_core.client_options import ClientOptions
|
|
36
36
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
37
37
|
from google.oauth2 import service_account # type: ignore
|
|
38
|
+
import google.protobuf
|
|
38
39
|
|
|
39
40
|
from google.cloud.modelarmor_v1 import gapic_version as package_version
|
|
40
41
|
|
|
@@ -1394,5 +1395,8 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
1394
1395
|
gapic_version=package_version.__version__
|
|
1395
1396
|
)
|
|
1396
1397
|
|
|
1398
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
1399
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
1400
|
+
|
|
1397
1401
|
|
|
1398
1402
|
__all__ = ("ModelArmorAsyncClient",)
|
|
@@ -43,6 +43,7 @@ from google.auth.exceptions import MutualTLSChannelError # type: ignore
|
|
|
43
43
|
from google.auth.transport import mtls # type: ignore
|
|
44
44
|
from google.auth.transport.grpc import SslCredentials # type: ignore
|
|
45
45
|
from google.oauth2 import service_account # type: ignore
|
|
46
|
+
import google.protobuf
|
|
46
47
|
|
|
47
48
|
from google.cloud.modelarmor_v1 import gapic_version as package_version
|
|
48
49
|
|
|
@@ -1826,5 +1827,7 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
1826
1827
|
gapic_version=package_version.__version__
|
|
1827
1828
|
)
|
|
1828
1829
|
|
|
1830
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
1831
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
1829
1832
|
|
|
1830
1833
|
__all__ = ("ModelArmorClient",)
|
|
@@ -24,6 +24,7 @@ import google.auth # type: ignore
|
|
|
24
24
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
25
25
|
from google.cloud.location import locations_pb2 # type: ignore
|
|
26
26
|
from google.oauth2 import service_account # type: ignore
|
|
27
|
+
import google.protobuf
|
|
27
28
|
from google.protobuf import empty_pb2 # type: ignore
|
|
28
29
|
|
|
29
30
|
from google.cloud.modelarmor_v1 import gapic_version as package_version
|
|
@@ -33,6 +34,9 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
33
34
|
gapic_version=package_version.__version__
|
|
34
35
|
)
|
|
35
36
|
|
|
37
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
38
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
39
|
+
|
|
36
40
|
|
|
37
41
|
class ModelArmorTransport(abc.ABC):
|
|
38
42
|
"""Abstract transport class for ModelArmor."""
|
|
@@ -25,6 +25,7 @@ from google.api_core import retry as retries
|
|
|
25
25
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
26
26
|
from google.auth.transport.requests import AuthorizedSession # type: ignore
|
|
27
27
|
from google.cloud.location import locations_pb2 # type: ignore
|
|
28
|
+
import google.protobuf
|
|
28
29
|
from google.protobuf import empty_pb2 # type: ignore
|
|
29
30
|
from google.protobuf import json_format
|
|
30
31
|
from requests import __version__ as requests_version
|
|
@@ -54,6 +55,9 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
54
55
|
rest_version=f"requests@{requests_version}",
|
|
55
56
|
)
|
|
56
57
|
|
|
58
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
59
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
60
|
+
|
|
57
61
|
|
|
58
62
|
class ModelArmorRestInterceptor:
|
|
59
63
|
"""Interceptor for ModelArmor.
|
|
@@ -135,7 +135,7 @@ class DetectionConfidenceLevel(proto.Enum):
|
|
|
135
135
|
|
|
136
136
|
Values:
|
|
137
137
|
DETECTION_CONFIDENCE_LEVEL_UNSPECIFIED (0):
|
|
138
|
-
Same as
|
|
138
|
+
Same as LOW_AND_ABOVE.
|
|
139
139
|
LOW_AND_ABOVE (1):
|
|
140
140
|
Highest chance of a false positive.
|
|
141
141
|
MEDIUM_AND_ABOVE (2):
|
|
@@ -1023,6 +1023,10 @@ class SanitizationResult(proto.Message):
|
|
|
1023
1023
|
Error code if any.
|
|
1024
1024
|
error_message (str):
|
|
1025
1025
|
Error message if any.
|
|
1026
|
+
ignore_partial_invocation_failures (bool):
|
|
1027
|
+
Passthrough field defined in TemplateMetadata
|
|
1028
|
+
to indicate whether to ignore partial invocation
|
|
1029
|
+
failures.
|
|
1026
1030
|
"""
|
|
1027
1031
|
|
|
1028
1032
|
error_code: int = proto.Field(
|
|
@@ -1033,6 +1037,10 @@ class SanitizationResult(proto.Message):
|
|
|
1033
1037
|
proto.STRING,
|
|
1034
1038
|
number=2,
|
|
1035
1039
|
)
|
|
1040
|
+
ignore_partial_invocation_failures: bool = proto.Field(
|
|
1041
|
+
proto.BOOL,
|
|
1042
|
+
number=3,
|
|
1043
|
+
)
|
|
1036
1044
|
|
|
1037
1045
|
filter_match_state: "FilterMatchState" = proto.Field(
|
|
1038
1046
|
proto.ENUM,
|
|
@@ -1357,10 +1365,19 @@ class ByteDataItem(proto.Message):
|
|
|
1357
1365
|
plain text
|
|
1358
1366
|
PDF (2):
|
|
1359
1367
|
PDF
|
|
1368
|
+
WORD_DOCUMENT (3):
|
|
1369
|
+
DOCX, DOCM, DOTX, DOTM
|
|
1370
|
+
EXCEL_DOCUMENT (4):
|
|
1371
|
+
XLSX, XLSM, XLTX, XLYM
|
|
1372
|
+
POWERPOINT_DOCUMENT (5):
|
|
1373
|
+
PPTX, PPTM, POTX, POTM, POT
|
|
1360
1374
|
"""
|
|
1361
1375
|
BYTE_ITEM_TYPE_UNSPECIFIED = 0
|
|
1362
1376
|
PLAINTEXT_UTF8 = 1
|
|
1363
1377
|
PDF = 2
|
|
1378
|
+
WORD_DOCUMENT = 3
|
|
1379
|
+
EXCEL_DOCUMENT = 4
|
|
1380
|
+
POWERPOINT_DOCUMENT = 5
|
|
1364
1381
|
|
|
1365
1382
|
byte_data_type: ByteItemType = proto.Field(
|
|
1366
1383
|
proto.ENUM,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-modelarmor
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Google Cloud Modelarmor API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-modelarmor
|
|
6
6
|
Author: Google LLC
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor/__init__.py
RENAMED
|
File without changes
|
{google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/google/cloud/modelarmor_v1/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_cloud_modelarmor-0.2.3 → google_cloud_modelarmor-0.2.4}/tests/unit/gapic/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|