google-cloud-modelarmor 0.2.4__tar.gz → 0.2.6__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.
Files changed (56) hide show
  1. {google_cloud_modelarmor-0.2.4/google_cloud_modelarmor.egg-info → google_cloud_modelarmor-0.2.6}/PKG-INFO +13 -2
  2. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor/__init__.py +2 -0
  3. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor/gapic_version.py +1 -1
  4. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/__init__.py +2 -0
  5. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/gapic_version.py +1 -1
  6. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/types/__init__.py +2 -0
  7. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/types/service.py +72 -0
  8. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/__init__.py +116 -0
  9. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/gapic_metadata.json +163 -0
  10. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/gapic_version.py +16 -0
  11. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/py.typed +2 -0
  12. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/services/model_armor/__init__.py +22 -0
  13. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/services/model_armor/async_client.py +1402 -0
  14. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/services/model_armor/client.py +1833 -0
  15. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/services/model_armor/pagers.py +197 -0
  16. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/services/model_armor/transports/__init__.py +36 -0
  17. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/services/model_armor/transports/base.py +361 -0
  18. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/services/model_armor/transports/grpc.py +606 -0
  19. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/services/model_armor/transports/grpc_asyncio.py +730 -0
  20. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/services/model_armor/transports/rest.py +2367 -0
  21. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/services/model_armor/transports/rest_base.py +638 -0
  22. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/types/__init__.py +108 -0
  23. google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/types/service.py +1931 -0
  24. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6/google_cloud_modelarmor.egg-info}/PKG-INFO +13 -2
  25. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google_cloud_modelarmor.egg-info/SOURCES.txt +20 -1
  26. google_cloud_modelarmor-0.2.6/tests/unit/gapic/modelarmor_v1/__init__.py +15 -0
  27. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/tests/unit/gapic/modelarmor_v1/test_model_armor.py +2 -0
  28. google_cloud_modelarmor-0.2.6/tests/unit/gapic/modelarmor_v1beta/__init__.py +15 -0
  29. google_cloud_modelarmor-0.2.6/tests/unit/gapic/modelarmor_v1beta/test_model_armor.py +9037 -0
  30. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/LICENSE +0 -0
  31. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/MANIFEST.in +0 -0
  32. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/README.rst +0 -0
  33. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor/py.typed +0 -0
  34. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/gapic_metadata.json +0 -0
  35. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/py.typed +0 -0
  36. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/services/__init__.py +0 -0
  37. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/services/model_armor/__init__.py +0 -0
  38. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/services/model_armor/async_client.py +0 -0
  39. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/services/model_armor/client.py +0 -0
  40. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/services/model_armor/pagers.py +0 -0
  41. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/services/model_armor/transports/__init__.py +0 -0
  42. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/services/model_armor/transports/base.py +0 -0
  43. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/services/model_armor/transports/grpc.py +0 -0
  44. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/services/model_armor/transports/grpc_asyncio.py +0 -0
  45. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/services/model_armor/transports/rest.py +0 -0
  46. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google/cloud/modelarmor_v1/services/model_armor/transports/rest_base.py +0 -0
  47. {google_cloud_modelarmor-0.2.4/tests → google_cloud_modelarmor-0.2.6/google/cloud/modelarmor_v1beta/services}/__init__.py +0 -0
  48. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google_cloud_modelarmor.egg-info/dependency_links.txt +0 -0
  49. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google_cloud_modelarmor.egg-info/not-zip-safe +0 -0
  50. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google_cloud_modelarmor.egg-info/requires.txt +0 -0
  51. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/google_cloud_modelarmor.egg-info/top_level.txt +0 -0
  52. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/setup.cfg +0 -0
  53. {google_cloud_modelarmor-0.2.4 → google_cloud_modelarmor-0.2.6}/setup.py +0 -0
  54. {google_cloud_modelarmor-0.2.4/tests/unit → google_cloud_modelarmor-0.2.6/tests}/__init__.py +0 -0
  55. {google_cloud_modelarmor-0.2.4/tests/unit/gapic → google_cloud_modelarmor-0.2.6/tests/unit}/__init__.py +0 -0
  56. {google_cloud_modelarmor-0.2.4/tests/unit/gapic/modelarmor_v1 → google_cloud_modelarmor-0.2.6/tests/unit/gapic}/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: google-cloud-modelarmor
3
- Version: 0.2.4
3
+ Version: 0.2.6
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
@@ -28,6 +28,17 @@ Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
28
28
  Requires-Dist: proto-plus<2.0.0,>=1.22.3
29
29
  Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
30
30
  Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<7.0.0,>=3.20.2
31
+ Dynamic: author
32
+ Dynamic: author-email
33
+ Dynamic: classifier
34
+ Dynamic: description
35
+ Dynamic: home-page
36
+ Dynamic: license
37
+ Dynamic: license-file
38
+ Dynamic: platform
39
+ Dynamic: requires-dist
40
+ Dynamic: requires-python
41
+ Dynamic: summary
31
42
 
32
43
  Python Client for Model Armor API
33
44
  =================================
@@ -42,6 +42,7 @@ from google.cloud.modelarmor_v1.types.service import (
42
42
  MaliciousUriFilterResult,
43
43
  MaliciousUriFilterSettings,
44
44
  MessageItem,
45
+ MultiLanguageDetectionMetadata,
45
46
  PiAndJailbreakFilterResult,
46
47
  PiAndJailbreakFilterSettings,
47
48
  RaiFilterResult,
@@ -86,6 +87,7 @@ __all__ = (
86
87
  "MaliciousUriFilterResult",
87
88
  "MaliciousUriFilterSettings",
88
89
  "MessageItem",
90
+ "MultiLanguageDetectionMetadata",
89
91
  "PiAndJailbreakFilterResult",
90
92
  "PiAndJailbreakFilterSettings",
91
93
  "RaiFilterResult",
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.2.4" # {x-release-please-version}
16
+ __version__ = "0.2.6" # {x-release-please-version}
@@ -39,6 +39,7 @@ from .types.service import (
39
39
  MaliciousUriFilterResult,
40
40
  MaliciousUriFilterSettings,
41
41
  MessageItem,
42
+ MultiLanguageDetectionMetadata,
42
43
  PiAndJailbreakFilterResult,
43
44
  PiAndJailbreakFilterSettings,
44
45
  RaiFilterResult,
@@ -87,6 +88,7 @@ __all__ = (
87
88
  "MaliciousUriFilterSettings",
88
89
  "MessageItem",
89
90
  "ModelArmorClient",
91
+ "MultiLanguageDetectionMetadata",
90
92
  "PiAndJailbreakFilterResult",
91
93
  "PiAndJailbreakFilterSettings",
92
94
  "RaiFilterResult",
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.2.4" # {x-release-please-version}
16
+ __version__ = "0.2.6" # {x-release-please-version}
@@ -33,6 +33,7 @@ from .service import (
33
33
  MaliciousUriFilterResult,
34
34
  MaliciousUriFilterSettings,
35
35
  MessageItem,
36
+ MultiLanguageDetectionMetadata,
36
37
  PiAndJailbreakFilterResult,
37
38
  PiAndJailbreakFilterSettings,
38
39
  RaiFilterResult,
@@ -75,6 +76,7 @@ __all__ = (
75
76
  "MaliciousUriFilterResult",
76
77
  "MaliciousUriFilterSettings",
77
78
  "MessageItem",
79
+ "MultiLanguageDetectionMetadata",
78
80
  "PiAndJailbreakFilterResult",
79
81
  "PiAndJailbreakFilterSettings",
80
82
  "RaiFilterResult",
@@ -52,6 +52,7 @@ __protobuf__ = proto.module(
52
52
  "SanitizeUserPromptResponse",
53
53
  "SanitizeModelResponseResponse",
54
54
  "SanitizationResult",
55
+ "MultiLanguageDetectionMetadata",
55
56
  "FilterResult",
56
57
  "RaiFilterResult",
57
58
  "SdpFilterResult",
@@ -245,8 +246,25 @@ class Template(proto.Message):
245
246
  operations.
246
247
  log_sanitize_operations (bool):
247
248
  Optional. If true, log sanitize operations.
249
+ multi_language_detection (google.cloud.modelarmor_v1.types.Template.TemplateMetadata.MultiLanguageDetection):
250
+ Optional. Metadata for multi language
251
+ detection.
248
252
  """
249
253
 
254
+ class MultiLanguageDetection(proto.Message):
255
+ r"""Metadata to enable multi language detection via template.
256
+
257
+ Attributes:
258
+ enable_multi_language_detection (bool):
259
+ Required. If true, multi language detection
260
+ will be enabled.
261
+ """
262
+
263
+ enable_multi_language_detection: bool = proto.Field(
264
+ proto.BOOL,
265
+ number=1,
266
+ )
267
+
250
268
  ignore_partial_invocation_failures: bool = proto.Field(
251
269
  proto.BOOL,
252
270
  number=1,
@@ -275,6 +293,13 @@ class Template(proto.Message):
275
293
  proto.BOOL,
276
294
  number=7,
277
295
  )
296
+ multi_language_detection: "Template.TemplateMetadata.MultiLanguageDetection" = (
297
+ proto.Field(
298
+ proto.MESSAGE,
299
+ number=9,
300
+ message="Template.TemplateMetadata.MultiLanguageDetection",
301
+ )
302
+ )
278
303
 
279
304
  name: str = proto.Field(
280
305
  proto.STRING,
@@ -909,6 +934,9 @@ class SanitizeUserPromptRequest(proto.Message):
909
934
  name=projects/sample-project/locations/us-central1/templates/templ01
910
935
  user_prompt_data (google.cloud.modelarmor_v1.types.DataItem):
911
936
  Required. User prompt data to sanitize.
937
+ multi_language_detection_metadata (google.cloud.modelarmor_v1.types.MultiLanguageDetectionMetadata):
938
+ Optional. Metadata related to Multi Language
939
+ Detection.
912
940
  """
913
941
 
914
942
  name: str = proto.Field(
@@ -920,6 +948,11 @@ class SanitizeUserPromptRequest(proto.Message):
920
948
  number=2,
921
949
  message="DataItem",
922
950
  )
951
+ multi_language_detection_metadata: "MultiLanguageDetectionMetadata" = proto.Field(
952
+ proto.MESSAGE,
953
+ number=6,
954
+ message="MultiLanguageDetectionMetadata",
955
+ )
923
956
 
924
957
 
925
958
  class SanitizeModelResponseRequest(proto.Message):
@@ -935,6 +968,9 @@ class SanitizeModelResponseRequest(proto.Message):
935
968
  user_prompt (str):
936
969
  Optional. User Prompt associated with Model
937
970
  response.
971
+ multi_language_detection_metadata (google.cloud.modelarmor_v1.types.MultiLanguageDetectionMetadata):
972
+ Optional. Metadata related for multi language
973
+ detection.
938
974
  """
939
975
 
940
976
  name: str = proto.Field(
@@ -950,6 +986,11 @@ class SanitizeModelResponseRequest(proto.Message):
950
986
  proto.STRING,
951
987
  number=4,
952
988
  )
989
+ multi_language_detection_metadata: "MultiLanguageDetectionMetadata" = proto.Field(
990
+ proto.MESSAGE,
991
+ number=7,
992
+ message="MultiLanguageDetectionMetadata",
993
+ )
953
994
 
954
995
 
955
996
  class SanitizeUserPromptResponse(proto.Message):
@@ -1065,6 +1106,31 @@ class SanitizationResult(proto.Message):
1065
1106
  )
1066
1107
 
1067
1108
 
1109
+ class MultiLanguageDetectionMetadata(proto.Message):
1110
+ r"""Message for Enabling Multi Language Detection.
1111
+
1112
+ Attributes:
1113
+ source_language (str):
1114
+ Optional. Optional Source language of the
1115
+ user prompt.
1116
+ If multi-language detection is enabled but
1117
+ language is not set in that case we would
1118
+ automatically detect the source language.
1119
+ enable_multi_language_detection (bool):
1120
+ Optional. Enable detection of multi-language
1121
+ prompts and responses.
1122
+ """
1123
+
1124
+ source_language: str = proto.Field(
1125
+ proto.STRING,
1126
+ number=1,
1127
+ )
1128
+ enable_multi_language_detection: bool = proto.Field(
1129
+ proto.BOOL,
1130
+ number=2,
1131
+ )
1132
+
1133
+
1068
1134
  class FilterResult(proto.Message):
1069
1135
  r"""Filter Result obtained after Sanitization operations.
1070
1136
 
@@ -1371,6 +1437,10 @@ class ByteDataItem(proto.Message):
1371
1437
  XLSX, XLSM, XLTX, XLYM
1372
1438
  POWERPOINT_DOCUMENT (5):
1373
1439
  PPTX, PPTM, POTX, POTM, POT
1440
+ TXT (6):
1441
+ TXT
1442
+ CSV (7):
1443
+ CSV
1374
1444
  """
1375
1445
  BYTE_ITEM_TYPE_UNSPECIFIED = 0
1376
1446
  PLAINTEXT_UTF8 = 1
@@ -1378,6 +1448,8 @@ class ByteDataItem(proto.Message):
1378
1448
  WORD_DOCUMENT = 3
1379
1449
  EXCEL_DOCUMENT = 4
1380
1450
  POWERPOINT_DOCUMENT = 5
1451
+ TXT = 6
1452
+ CSV = 7
1381
1453
 
1382
1454
  byte_data_type: ByteItemType = proto.Field(
1383
1455
  proto.ENUM,
@@ -0,0 +1,116 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from google.cloud.modelarmor_v1beta import gapic_version as package_version
17
+
18
+ __version__ = package_version.__version__
19
+
20
+
21
+ from .services.model_armor import ModelArmorAsyncClient, ModelArmorClient
22
+ from .types.service import (
23
+ ByteDataItem,
24
+ CreateTemplateRequest,
25
+ CsamFilterResult,
26
+ DataItem,
27
+ DeleteTemplateRequest,
28
+ DetectionConfidenceLevel,
29
+ FilterConfig,
30
+ FilterExecutionState,
31
+ FilterMatchState,
32
+ FilterResult,
33
+ FloorSetting,
34
+ GetFloorSettingRequest,
35
+ GetTemplateRequest,
36
+ InvocationResult,
37
+ ListTemplatesRequest,
38
+ ListTemplatesResponse,
39
+ MaliciousUriFilterResult,
40
+ MaliciousUriFilterSettings,
41
+ MessageItem,
42
+ MultiLanguageDetectionMetadata,
43
+ PiAndJailbreakFilterResult,
44
+ PiAndJailbreakFilterSettings,
45
+ RaiFilterResult,
46
+ RaiFilterSettings,
47
+ RaiFilterType,
48
+ RangeInfo,
49
+ SanitizationResult,
50
+ SanitizeModelResponseRequest,
51
+ SanitizeModelResponseResponse,
52
+ SanitizeUserPromptRequest,
53
+ SanitizeUserPromptResponse,
54
+ SdpAdvancedConfig,
55
+ SdpBasicConfig,
56
+ SdpDeidentifyResult,
57
+ SdpFilterResult,
58
+ SdpFilterSettings,
59
+ SdpFinding,
60
+ SdpFindingLikelihood,
61
+ SdpInspectResult,
62
+ Template,
63
+ UpdateFloorSettingRequest,
64
+ UpdateTemplateRequest,
65
+ VirusDetail,
66
+ VirusScanFilterResult,
67
+ )
68
+
69
+ __all__ = (
70
+ "ModelArmorAsyncClient",
71
+ "ByteDataItem",
72
+ "CreateTemplateRequest",
73
+ "CsamFilterResult",
74
+ "DataItem",
75
+ "DeleteTemplateRequest",
76
+ "DetectionConfidenceLevel",
77
+ "FilterConfig",
78
+ "FilterExecutionState",
79
+ "FilterMatchState",
80
+ "FilterResult",
81
+ "FloorSetting",
82
+ "GetFloorSettingRequest",
83
+ "GetTemplateRequest",
84
+ "InvocationResult",
85
+ "ListTemplatesRequest",
86
+ "ListTemplatesResponse",
87
+ "MaliciousUriFilterResult",
88
+ "MaliciousUriFilterSettings",
89
+ "MessageItem",
90
+ "ModelArmorClient",
91
+ "MultiLanguageDetectionMetadata",
92
+ "PiAndJailbreakFilterResult",
93
+ "PiAndJailbreakFilterSettings",
94
+ "RaiFilterResult",
95
+ "RaiFilterSettings",
96
+ "RaiFilterType",
97
+ "RangeInfo",
98
+ "SanitizationResult",
99
+ "SanitizeModelResponseRequest",
100
+ "SanitizeModelResponseResponse",
101
+ "SanitizeUserPromptRequest",
102
+ "SanitizeUserPromptResponse",
103
+ "SdpAdvancedConfig",
104
+ "SdpBasicConfig",
105
+ "SdpDeidentifyResult",
106
+ "SdpFilterResult",
107
+ "SdpFilterSettings",
108
+ "SdpFinding",
109
+ "SdpFindingLikelihood",
110
+ "SdpInspectResult",
111
+ "Template",
112
+ "UpdateFloorSettingRequest",
113
+ "UpdateTemplateRequest",
114
+ "VirusDetail",
115
+ "VirusScanFilterResult",
116
+ )
@@ -0,0 +1,163 @@
1
+ {
2
+ "comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3
+ "language": "python",
4
+ "libraryPackage": "google.cloud.modelarmor_v1beta",
5
+ "protoPackage": "google.cloud.modelarmor.v1beta",
6
+ "schema": "1.0",
7
+ "services": {
8
+ "ModelArmor": {
9
+ "clients": {
10
+ "grpc": {
11
+ "libraryClient": "ModelArmorClient",
12
+ "rpcs": {
13
+ "CreateTemplate": {
14
+ "methods": [
15
+ "create_template"
16
+ ]
17
+ },
18
+ "DeleteTemplate": {
19
+ "methods": [
20
+ "delete_template"
21
+ ]
22
+ },
23
+ "GetFloorSetting": {
24
+ "methods": [
25
+ "get_floor_setting"
26
+ ]
27
+ },
28
+ "GetTemplate": {
29
+ "methods": [
30
+ "get_template"
31
+ ]
32
+ },
33
+ "ListTemplates": {
34
+ "methods": [
35
+ "list_templates"
36
+ ]
37
+ },
38
+ "SanitizeModelResponse": {
39
+ "methods": [
40
+ "sanitize_model_response"
41
+ ]
42
+ },
43
+ "SanitizeUserPrompt": {
44
+ "methods": [
45
+ "sanitize_user_prompt"
46
+ ]
47
+ },
48
+ "UpdateFloorSetting": {
49
+ "methods": [
50
+ "update_floor_setting"
51
+ ]
52
+ },
53
+ "UpdateTemplate": {
54
+ "methods": [
55
+ "update_template"
56
+ ]
57
+ }
58
+ }
59
+ },
60
+ "grpc-async": {
61
+ "libraryClient": "ModelArmorAsyncClient",
62
+ "rpcs": {
63
+ "CreateTemplate": {
64
+ "methods": [
65
+ "create_template"
66
+ ]
67
+ },
68
+ "DeleteTemplate": {
69
+ "methods": [
70
+ "delete_template"
71
+ ]
72
+ },
73
+ "GetFloorSetting": {
74
+ "methods": [
75
+ "get_floor_setting"
76
+ ]
77
+ },
78
+ "GetTemplate": {
79
+ "methods": [
80
+ "get_template"
81
+ ]
82
+ },
83
+ "ListTemplates": {
84
+ "methods": [
85
+ "list_templates"
86
+ ]
87
+ },
88
+ "SanitizeModelResponse": {
89
+ "methods": [
90
+ "sanitize_model_response"
91
+ ]
92
+ },
93
+ "SanitizeUserPrompt": {
94
+ "methods": [
95
+ "sanitize_user_prompt"
96
+ ]
97
+ },
98
+ "UpdateFloorSetting": {
99
+ "methods": [
100
+ "update_floor_setting"
101
+ ]
102
+ },
103
+ "UpdateTemplate": {
104
+ "methods": [
105
+ "update_template"
106
+ ]
107
+ }
108
+ }
109
+ },
110
+ "rest": {
111
+ "libraryClient": "ModelArmorClient",
112
+ "rpcs": {
113
+ "CreateTemplate": {
114
+ "methods": [
115
+ "create_template"
116
+ ]
117
+ },
118
+ "DeleteTemplate": {
119
+ "methods": [
120
+ "delete_template"
121
+ ]
122
+ },
123
+ "GetFloorSetting": {
124
+ "methods": [
125
+ "get_floor_setting"
126
+ ]
127
+ },
128
+ "GetTemplate": {
129
+ "methods": [
130
+ "get_template"
131
+ ]
132
+ },
133
+ "ListTemplates": {
134
+ "methods": [
135
+ "list_templates"
136
+ ]
137
+ },
138
+ "SanitizeModelResponse": {
139
+ "methods": [
140
+ "sanitize_model_response"
141
+ ]
142
+ },
143
+ "SanitizeUserPrompt": {
144
+ "methods": [
145
+ "sanitize_user_prompt"
146
+ ]
147
+ },
148
+ "UpdateFloorSetting": {
149
+ "methods": [
150
+ "update_floor_setting"
151
+ ]
152
+ },
153
+ "UpdateTemplate": {
154
+ "methods": [
155
+ "update_template"
156
+ ]
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
162
+ }
163
+ }
@@ -0,0 +1,16 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ __version__ = "0.2.6" # {x-release-please-version}
@@ -0,0 +1,2 @@
1
+ # Marker file for PEP 561.
2
+ # The google-cloud-modelarmor package uses inline types.
@@ -0,0 +1,22 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from .async_client import ModelArmorAsyncClient
17
+ from .client import ModelArmorClient
18
+
19
+ __all__ = (
20
+ "ModelArmorClient",
21
+ "ModelArmorAsyncClient",
22
+ )