crc-pulp-service-client 20260107.2__py3-none-any.whl
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.
Potentially problematic release.
This version of crc-pulp-service-client might be problematic. Click here for more details.
- crc_pulp_service_client-20260107.2.dist-info/METADATA +2727 -0
- crc_pulp_service_client-20260107.2.dist-info/RECORD +41 -0
- crc_pulp_service_client-20260107.2.dist-info/WHEEL +5 -0
- crc_pulp_service_client-20260107.2.dist-info/top_level.txt +1 -0
- pulpcore/__init__.py +2 -0
- pulpcore/client/__init__.py +2 -0
- pulpcore/client/pulp_service/__init__.py +59 -0
- pulpcore/client/pulp_service/api/__init__.py +13 -0
- pulpcore/client/pulp_service/api/api_create_domain_api.py +335 -0
- pulpcore/client/pulp_service/api/api_debug_auth_header_api.py +329 -0
- pulpcore/client/pulp_service/api/api_debug_database_triggers_api.py +329 -0
- pulpcore/client/pulp_service/api/api_rds_connection_tests_api.py +591 -0
- pulpcore/client/pulp_service/api/api_test_random_lock_tasks_api.py +326 -0
- pulpcore/client/pulp_service/api/api_test_tasks_api.py +326 -0
- pulpcore/client/pulp_service/api/contentguards_feature_api.py +3401 -0
- pulpcore/client/pulp_service/api/tasks_api.py +1469 -0
- pulpcore/client/pulp_service/api/vuln_report_service_api.py +1301 -0
- pulpcore/client/pulp_service/api_client.py +798 -0
- pulpcore/client/pulp_service/api_response.py +21 -0
- pulpcore/client/pulp_service/configuration.py +628 -0
- pulpcore/client/pulp_service/exceptions.py +200 -0
- pulpcore/client/pulp_service/models/__init__.py +34 -0
- pulpcore/client/pulp_service/models/async_operation_response.py +88 -0
- pulpcore/client/pulp_service/models/domain.py +114 -0
- pulpcore/client/pulp_service/models/domain_response.py +131 -0
- pulpcore/client/pulp_service/models/my_permissions_response.py +88 -0
- pulpcore/client/pulp_service/models/nested_role.py +93 -0
- pulpcore/client/pulp_service/models/nested_role_response.py +92 -0
- pulpcore/client/pulp_service/models/object_roles_response.py +96 -0
- pulpcore/client/pulp_service/models/paginated_task_response_list.py +112 -0
- pulpcore/client/pulp_service/models/paginatedservice_feature_content_guard_response_list.py +112 -0
- pulpcore/client/pulp_service/models/paginatedservice_vulnerability_report_response_list.py +112 -0
- pulpcore/client/pulp_service/models/patchedservice_feature_content_guard.py +107 -0
- pulpcore/client/pulp_service/models/progress_report_response.py +115 -0
- pulpcore/client/pulp_service/models/service_feature_content_guard.py +107 -0
- pulpcore/client/pulp_service/models/service_feature_content_guard_response.py +123 -0
- pulpcore/client/pulp_service/models/service_vulnerability_report_response.py +110 -0
- pulpcore/client/pulp_service/models/storage_class_enum.py +40 -0
- pulpcore/client/pulp_service/models/task_response.py +186 -0
- pulpcore/client/pulp_service/py.typed +0 -0
- pulpcore/client/pulp_service/rest.py +258 -0
|
@@ -0,0 +1,3401 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Pulp 3 API
|
|
5
|
+
|
|
6
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3
|
|
9
|
+
Contact: pulp-list@redhat.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictInt, StrictStr, field_validator
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pulpcore.client.pulp_service.models.my_permissions_response import MyPermissionsResponse
|
|
24
|
+
from pulpcore.client.pulp_service.models.nested_role import NestedRole
|
|
25
|
+
from pulpcore.client.pulp_service.models.nested_role_response import NestedRoleResponse
|
|
26
|
+
from pulpcore.client.pulp_service.models.object_roles_response import ObjectRolesResponse
|
|
27
|
+
from pulpcore.client.pulp_service.models.paginatedservice_feature_content_guard_response_list import PaginatedserviceFeatureContentGuardResponseList
|
|
28
|
+
from pulpcore.client.pulp_service.models.patchedservice_feature_content_guard import PatchedserviceFeatureContentGuard
|
|
29
|
+
from pulpcore.client.pulp_service.models.service_feature_content_guard import ServiceFeatureContentGuard
|
|
30
|
+
from pulpcore.client.pulp_service.models.service_feature_content_guard_response import ServiceFeatureContentGuardResponse
|
|
31
|
+
|
|
32
|
+
from pulpcore.client.pulp_service.api_client import ApiClient, RequestSerialized
|
|
33
|
+
from pulpcore.client.pulp_service.api_response import ApiResponse
|
|
34
|
+
from pulpcore.client.pulp_service.rest import RESTResponseType
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class ContentguardsFeatureApi:
|
|
38
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
39
|
+
Ref: https://openapi-generator.tech
|
|
40
|
+
|
|
41
|
+
Do not edit the class manually.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
def __init__(self, api_client=None) -> None:
|
|
45
|
+
if api_client is None:
|
|
46
|
+
api_client = ApiClient.get_default()
|
|
47
|
+
self.api_client = api_client
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@validate_call
|
|
51
|
+
def add_role(
|
|
52
|
+
self,
|
|
53
|
+
service_feature_content_guard_href: StrictStr,
|
|
54
|
+
nested_role: NestedRole,
|
|
55
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
56
|
+
_request_timeout: Union[
|
|
57
|
+
None,
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
59
|
+
Tuple[
|
|
60
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
61
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
62
|
+
]
|
|
63
|
+
] = None,
|
|
64
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
65
|
+
_content_type: Optional[StrictStr] = None,
|
|
66
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
67
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
68
|
+
) -> NestedRoleResponse:
|
|
69
|
+
"""Add a role
|
|
70
|
+
|
|
71
|
+
Add a role for this object to users/groups.
|
|
72
|
+
|
|
73
|
+
:param service_feature_content_guard_href: (required)
|
|
74
|
+
:type service_feature_content_guard_href: str
|
|
75
|
+
:param nested_role: (required)
|
|
76
|
+
:type nested_role: NestedRole
|
|
77
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
78
|
+
:type x_task_diagnostics: List[str]
|
|
79
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
80
|
+
number provided, it will be total request
|
|
81
|
+
timeout. It can also be a pair (tuple) of
|
|
82
|
+
(connection, read) timeouts.
|
|
83
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
84
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
85
|
+
request; this effectively ignores the
|
|
86
|
+
authentication in the spec for a single request.
|
|
87
|
+
:type _request_auth: dict, optional
|
|
88
|
+
:param _content_type: force content-type for the request.
|
|
89
|
+
:type _content_type: str, Optional
|
|
90
|
+
:param _headers: set to override the headers for a single
|
|
91
|
+
request; this effectively ignores the headers
|
|
92
|
+
in the spec for a single request.
|
|
93
|
+
:type _headers: dict, optional
|
|
94
|
+
:param _host_index: set to override the host_index for a single
|
|
95
|
+
request; this effectively ignores the host_index
|
|
96
|
+
in the spec for a single request.
|
|
97
|
+
:type _host_index: int, optional
|
|
98
|
+
:return: Returns the result object.
|
|
99
|
+
""" # noqa: E501
|
|
100
|
+
|
|
101
|
+
_param = self._add_role_serialize(
|
|
102
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
103
|
+
nested_role=nested_role,
|
|
104
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
105
|
+
_request_auth=_request_auth,
|
|
106
|
+
_content_type=_content_type,
|
|
107
|
+
_headers=_headers,
|
|
108
|
+
_host_index=_host_index
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
112
|
+
'201': "NestedRoleResponse",
|
|
113
|
+
}
|
|
114
|
+
response_data = self.api_client.call_api(
|
|
115
|
+
*_param,
|
|
116
|
+
_request_timeout=_request_timeout
|
|
117
|
+
)
|
|
118
|
+
response_data.read()
|
|
119
|
+
return self.api_client.response_deserialize(
|
|
120
|
+
response_data=response_data,
|
|
121
|
+
response_types_map=_response_types_map,
|
|
122
|
+
).data
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
@validate_call
|
|
126
|
+
def add_role_with_http_info(
|
|
127
|
+
self,
|
|
128
|
+
service_feature_content_guard_href: StrictStr,
|
|
129
|
+
nested_role: NestedRole,
|
|
130
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
131
|
+
_request_timeout: Union[
|
|
132
|
+
None,
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
134
|
+
Tuple[
|
|
135
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
136
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
137
|
+
]
|
|
138
|
+
] = None,
|
|
139
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
140
|
+
_content_type: Optional[StrictStr] = None,
|
|
141
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
142
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
143
|
+
) -> ApiResponse[NestedRoleResponse]:
|
|
144
|
+
"""Add a role
|
|
145
|
+
|
|
146
|
+
Add a role for this object to users/groups.
|
|
147
|
+
|
|
148
|
+
:param service_feature_content_guard_href: (required)
|
|
149
|
+
:type service_feature_content_guard_href: str
|
|
150
|
+
:param nested_role: (required)
|
|
151
|
+
:type nested_role: NestedRole
|
|
152
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
153
|
+
:type x_task_diagnostics: List[str]
|
|
154
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
155
|
+
number provided, it will be total request
|
|
156
|
+
timeout. It can also be a pair (tuple) of
|
|
157
|
+
(connection, read) timeouts.
|
|
158
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
159
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
160
|
+
request; this effectively ignores the
|
|
161
|
+
authentication in the spec for a single request.
|
|
162
|
+
:type _request_auth: dict, optional
|
|
163
|
+
:param _content_type: force content-type for the request.
|
|
164
|
+
:type _content_type: str, Optional
|
|
165
|
+
:param _headers: set to override the headers for a single
|
|
166
|
+
request; this effectively ignores the headers
|
|
167
|
+
in the spec for a single request.
|
|
168
|
+
:type _headers: dict, optional
|
|
169
|
+
:param _host_index: set to override the host_index for a single
|
|
170
|
+
request; this effectively ignores the host_index
|
|
171
|
+
in the spec for a single request.
|
|
172
|
+
:type _host_index: int, optional
|
|
173
|
+
:return: Returns the result object.
|
|
174
|
+
""" # noqa: E501
|
|
175
|
+
|
|
176
|
+
_param = self._add_role_serialize(
|
|
177
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
178
|
+
nested_role=nested_role,
|
|
179
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
180
|
+
_request_auth=_request_auth,
|
|
181
|
+
_content_type=_content_type,
|
|
182
|
+
_headers=_headers,
|
|
183
|
+
_host_index=_host_index
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
187
|
+
'201': "NestedRoleResponse",
|
|
188
|
+
}
|
|
189
|
+
response_data = self.api_client.call_api(
|
|
190
|
+
*_param,
|
|
191
|
+
_request_timeout=_request_timeout
|
|
192
|
+
)
|
|
193
|
+
response_data.read()
|
|
194
|
+
return self.api_client.response_deserialize(
|
|
195
|
+
response_data=response_data,
|
|
196
|
+
response_types_map=_response_types_map,
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
@validate_call
|
|
201
|
+
def add_role_without_preload_content(
|
|
202
|
+
self,
|
|
203
|
+
service_feature_content_guard_href: StrictStr,
|
|
204
|
+
nested_role: NestedRole,
|
|
205
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
206
|
+
_request_timeout: Union[
|
|
207
|
+
None,
|
|
208
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
209
|
+
Tuple[
|
|
210
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
211
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
212
|
+
]
|
|
213
|
+
] = None,
|
|
214
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
215
|
+
_content_type: Optional[StrictStr] = None,
|
|
216
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
217
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
218
|
+
) -> RESTResponseType:
|
|
219
|
+
"""Add a role
|
|
220
|
+
|
|
221
|
+
Add a role for this object to users/groups.
|
|
222
|
+
|
|
223
|
+
:param service_feature_content_guard_href: (required)
|
|
224
|
+
:type service_feature_content_guard_href: str
|
|
225
|
+
:param nested_role: (required)
|
|
226
|
+
:type nested_role: NestedRole
|
|
227
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
228
|
+
:type x_task_diagnostics: List[str]
|
|
229
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
230
|
+
number provided, it will be total request
|
|
231
|
+
timeout. It can also be a pair (tuple) of
|
|
232
|
+
(connection, read) timeouts.
|
|
233
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
234
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
235
|
+
request; this effectively ignores the
|
|
236
|
+
authentication in the spec for a single request.
|
|
237
|
+
:type _request_auth: dict, optional
|
|
238
|
+
:param _content_type: force content-type for the request.
|
|
239
|
+
:type _content_type: str, Optional
|
|
240
|
+
:param _headers: set to override the headers for a single
|
|
241
|
+
request; this effectively ignores the headers
|
|
242
|
+
in the spec for a single request.
|
|
243
|
+
:type _headers: dict, optional
|
|
244
|
+
:param _host_index: set to override the host_index for a single
|
|
245
|
+
request; this effectively ignores the host_index
|
|
246
|
+
in the spec for a single request.
|
|
247
|
+
:type _host_index: int, optional
|
|
248
|
+
:return: Returns the result object.
|
|
249
|
+
""" # noqa: E501
|
|
250
|
+
|
|
251
|
+
_param = self._add_role_serialize(
|
|
252
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
253
|
+
nested_role=nested_role,
|
|
254
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
255
|
+
_request_auth=_request_auth,
|
|
256
|
+
_content_type=_content_type,
|
|
257
|
+
_headers=_headers,
|
|
258
|
+
_host_index=_host_index
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
262
|
+
'201': "NestedRoleResponse",
|
|
263
|
+
}
|
|
264
|
+
response_data = self.api_client.call_api(
|
|
265
|
+
*_param,
|
|
266
|
+
_request_timeout=_request_timeout
|
|
267
|
+
)
|
|
268
|
+
return response_data.response
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
def _add_role_serialize(
|
|
272
|
+
self,
|
|
273
|
+
service_feature_content_guard_href,
|
|
274
|
+
nested_role,
|
|
275
|
+
x_task_diagnostics,
|
|
276
|
+
_request_auth,
|
|
277
|
+
_content_type,
|
|
278
|
+
_headers,
|
|
279
|
+
_host_index,
|
|
280
|
+
) -> RequestSerialized:
|
|
281
|
+
|
|
282
|
+
_host = None
|
|
283
|
+
|
|
284
|
+
_collection_formats: Dict[str, str] = {
|
|
285
|
+
'X-Task-Diagnostics': 'csv',
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
_path_params: Dict[str, str] = {}
|
|
289
|
+
_query_params: List[Tuple[str, str]] = []
|
|
290
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
291
|
+
_form_params: List[Tuple[str, str]] = []
|
|
292
|
+
_files: Dict[
|
|
293
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
294
|
+
] = {}
|
|
295
|
+
_body_params: Optional[bytes] = None
|
|
296
|
+
|
|
297
|
+
# process the path parameters
|
|
298
|
+
if service_feature_content_guard_href is not None:
|
|
299
|
+
_path_params['service_feature_content_guard_href'] = service_feature_content_guard_href
|
|
300
|
+
# process the query parameters
|
|
301
|
+
# process the header parameters
|
|
302
|
+
if x_task_diagnostics is not None:
|
|
303
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
304
|
+
# process the form parameters
|
|
305
|
+
# process the body parameter
|
|
306
|
+
if nested_role is not None:
|
|
307
|
+
_body_params = nested_role
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
# set the HTTP header `Accept`
|
|
311
|
+
if 'Accept' not in _header_params:
|
|
312
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
313
|
+
[
|
|
314
|
+
'application/json'
|
|
315
|
+
]
|
|
316
|
+
)
|
|
317
|
+
|
|
318
|
+
# set the HTTP header `Content-Type`
|
|
319
|
+
if _content_type:
|
|
320
|
+
_header_params['Content-Type'] = _content_type
|
|
321
|
+
else:
|
|
322
|
+
_default_content_type = (
|
|
323
|
+
self.api_client.select_header_content_type(
|
|
324
|
+
[
|
|
325
|
+
'application/json',
|
|
326
|
+
'application/x-www-form-urlencoded',
|
|
327
|
+
'multipart/form-data'
|
|
328
|
+
]
|
|
329
|
+
)
|
|
330
|
+
)
|
|
331
|
+
if _default_content_type is not None:
|
|
332
|
+
_header_params['Content-Type'] = _default_content_type
|
|
333
|
+
|
|
334
|
+
# authentication setting
|
|
335
|
+
_auth_settings: List[str] = [
|
|
336
|
+
'json_header_remote_authentication',
|
|
337
|
+
'basicAuth',
|
|
338
|
+
'cookieAuth'
|
|
339
|
+
]
|
|
340
|
+
|
|
341
|
+
return self.api_client.param_serialize(
|
|
342
|
+
method='POST',
|
|
343
|
+
resource_path='{service_feature_content_guard_href}add_role/',
|
|
344
|
+
path_params=_path_params,
|
|
345
|
+
query_params=_query_params,
|
|
346
|
+
header_params=_header_params,
|
|
347
|
+
body=_body_params,
|
|
348
|
+
post_params=_form_params,
|
|
349
|
+
files=_files,
|
|
350
|
+
auth_settings=_auth_settings,
|
|
351
|
+
collection_formats=_collection_formats,
|
|
352
|
+
_host=_host,
|
|
353
|
+
_request_auth=_request_auth
|
|
354
|
+
)
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
@validate_call
|
|
360
|
+
def create(
|
|
361
|
+
self,
|
|
362
|
+
service_feature_content_guard: ServiceFeatureContentGuard,
|
|
363
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
364
|
+
pulp_domain: StrictStr = "default",
|
|
365
|
+
_request_timeout: Union[
|
|
366
|
+
None,
|
|
367
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
368
|
+
Tuple[
|
|
369
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
370
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
371
|
+
]
|
|
372
|
+
] = None,
|
|
373
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
374
|
+
_content_type: Optional[StrictStr] = None,
|
|
375
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
376
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
377
|
+
) -> ServiceFeatureContentGuardResponse:
|
|
378
|
+
"""Create a feature content guard
|
|
379
|
+
|
|
380
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
381
|
+
|
|
382
|
+
:param pulp_domain: (required)
|
|
383
|
+
:type pulp_domain: str
|
|
384
|
+
:param service_feature_content_guard: (required)
|
|
385
|
+
:type service_feature_content_guard: ServiceFeatureContentGuard
|
|
386
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
387
|
+
:type x_task_diagnostics: List[str]
|
|
388
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
389
|
+
number provided, it will be total request
|
|
390
|
+
timeout. It can also be a pair (tuple) of
|
|
391
|
+
(connection, read) timeouts.
|
|
392
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
393
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
394
|
+
request; this effectively ignores the
|
|
395
|
+
authentication in the spec for a single request.
|
|
396
|
+
:type _request_auth: dict, optional
|
|
397
|
+
:param _content_type: force content-type for the request.
|
|
398
|
+
:type _content_type: str, Optional
|
|
399
|
+
:param _headers: set to override the headers for a single
|
|
400
|
+
request; this effectively ignores the headers
|
|
401
|
+
in the spec for a single request.
|
|
402
|
+
:type _headers: dict, optional
|
|
403
|
+
:param _host_index: set to override the host_index for a single
|
|
404
|
+
request; this effectively ignores the host_index
|
|
405
|
+
in the spec for a single request.
|
|
406
|
+
:type _host_index: int, optional
|
|
407
|
+
:return: Returns the result object.
|
|
408
|
+
""" # noqa: E501
|
|
409
|
+
|
|
410
|
+
_param = self._create_serialize(
|
|
411
|
+
pulp_domain=pulp_domain,
|
|
412
|
+
service_feature_content_guard=service_feature_content_guard,
|
|
413
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
414
|
+
_request_auth=_request_auth,
|
|
415
|
+
_content_type=_content_type,
|
|
416
|
+
_headers=_headers,
|
|
417
|
+
_host_index=_host_index
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
421
|
+
'201': "ServiceFeatureContentGuardResponse",
|
|
422
|
+
}
|
|
423
|
+
response_data = self.api_client.call_api(
|
|
424
|
+
*_param,
|
|
425
|
+
_request_timeout=_request_timeout
|
|
426
|
+
)
|
|
427
|
+
response_data.read()
|
|
428
|
+
return self.api_client.response_deserialize(
|
|
429
|
+
response_data=response_data,
|
|
430
|
+
response_types_map=_response_types_map,
|
|
431
|
+
).data
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
@validate_call
|
|
435
|
+
def create_with_http_info(
|
|
436
|
+
self,
|
|
437
|
+
service_feature_content_guard: ServiceFeatureContentGuard,
|
|
438
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
439
|
+
pulp_domain: StrictStr = "default",
|
|
440
|
+
_request_timeout: Union[
|
|
441
|
+
None,
|
|
442
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
443
|
+
Tuple[
|
|
444
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
445
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
446
|
+
]
|
|
447
|
+
] = None,
|
|
448
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
449
|
+
_content_type: Optional[StrictStr] = None,
|
|
450
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
451
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
452
|
+
) -> ApiResponse[ServiceFeatureContentGuardResponse]:
|
|
453
|
+
"""Create a feature content guard
|
|
454
|
+
|
|
455
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
456
|
+
|
|
457
|
+
:param pulp_domain: (required)
|
|
458
|
+
:type pulp_domain: str
|
|
459
|
+
:param service_feature_content_guard: (required)
|
|
460
|
+
:type service_feature_content_guard: ServiceFeatureContentGuard
|
|
461
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
462
|
+
:type x_task_diagnostics: List[str]
|
|
463
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
464
|
+
number provided, it will be total request
|
|
465
|
+
timeout. It can also be a pair (tuple) of
|
|
466
|
+
(connection, read) timeouts.
|
|
467
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
468
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
469
|
+
request; this effectively ignores the
|
|
470
|
+
authentication in the spec for a single request.
|
|
471
|
+
:type _request_auth: dict, optional
|
|
472
|
+
:param _content_type: force content-type for the request.
|
|
473
|
+
:type _content_type: str, Optional
|
|
474
|
+
:param _headers: set to override the headers for a single
|
|
475
|
+
request; this effectively ignores the headers
|
|
476
|
+
in the spec for a single request.
|
|
477
|
+
:type _headers: dict, optional
|
|
478
|
+
:param _host_index: set to override the host_index for a single
|
|
479
|
+
request; this effectively ignores the host_index
|
|
480
|
+
in the spec for a single request.
|
|
481
|
+
:type _host_index: int, optional
|
|
482
|
+
:return: Returns the result object.
|
|
483
|
+
""" # noqa: E501
|
|
484
|
+
|
|
485
|
+
_param = self._create_serialize(
|
|
486
|
+
pulp_domain=pulp_domain,
|
|
487
|
+
service_feature_content_guard=service_feature_content_guard,
|
|
488
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
489
|
+
_request_auth=_request_auth,
|
|
490
|
+
_content_type=_content_type,
|
|
491
|
+
_headers=_headers,
|
|
492
|
+
_host_index=_host_index
|
|
493
|
+
)
|
|
494
|
+
|
|
495
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
496
|
+
'201': "ServiceFeatureContentGuardResponse",
|
|
497
|
+
}
|
|
498
|
+
response_data = self.api_client.call_api(
|
|
499
|
+
*_param,
|
|
500
|
+
_request_timeout=_request_timeout
|
|
501
|
+
)
|
|
502
|
+
response_data.read()
|
|
503
|
+
return self.api_client.response_deserialize(
|
|
504
|
+
response_data=response_data,
|
|
505
|
+
response_types_map=_response_types_map,
|
|
506
|
+
)
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
@validate_call
|
|
510
|
+
def create_without_preload_content(
|
|
511
|
+
self,
|
|
512
|
+
service_feature_content_guard: ServiceFeatureContentGuard,
|
|
513
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
514
|
+
pulp_domain: StrictStr = "default",
|
|
515
|
+
_request_timeout: Union[
|
|
516
|
+
None,
|
|
517
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
518
|
+
Tuple[
|
|
519
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
520
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
521
|
+
]
|
|
522
|
+
] = None,
|
|
523
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
524
|
+
_content_type: Optional[StrictStr] = None,
|
|
525
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
526
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
527
|
+
) -> RESTResponseType:
|
|
528
|
+
"""Create a feature content guard
|
|
529
|
+
|
|
530
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
531
|
+
|
|
532
|
+
:param pulp_domain: (required)
|
|
533
|
+
:type pulp_domain: str
|
|
534
|
+
:param service_feature_content_guard: (required)
|
|
535
|
+
:type service_feature_content_guard: ServiceFeatureContentGuard
|
|
536
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
537
|
+
:type x_task_diagnostics: List[str]
|
|
538
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
539
|
+
number provided, it will be total request
|
|
540
|
+
timeout. It can also be a pair (tuple) of
|
|
541
|
+
(connection, read) timeouts.
|
|
542
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
543
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
544
|
+
request; this effectively ignores the
|
|
545
|
+
authentication in the spec for a single request.
|
|
546
|
+
:type _request_auth: dict, optional
|
|
547
|
+
:param _content_type: force content-type for the request.
|
|
548
|
+
:type _content_type: str, Optional
|
|
549
|
+
:param _headers: set to override the headers for a single
|
|
550
|
+
request; this effectively ignores the headers
|
|
551
|
+
in the spec for a single request.
|
|
552
|
+
:type _headers: dict, optional
|
|
553
|
+
:param _host_index: set to override the host_index for a single
|
|
554
|
+
request; this effectively ignores the host_index
|
|
555
|
+
in the spec for a single request.
|
|
556
|
+
:type _host_index: int, optional
|
|
557
|
+
:return: Returns the result object.
|
|
558
|
+
""" # noqa: E501
|
|
559
|
+
|
|
560
|
+
_param = self._create_serialize(
|
|
561
|
+
pulp_domain=pulp_domain,
|
|
562
|
+
service_feature_content_guard=service_feature_content_guard,
|
|
563
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
564
|
+
_request_auth=_request_auth,
|
|
565
|
+
_content_type=_content_type,
|
|
566
|
+
_headers=_headers,
|
|
567
|
+
_host_index=_host_index
|
|
568
|
+
)
|
|
569
|
+
|
|
570
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
571
|
+
'201': "ServiceFeatureContentGuardResponse",
|
|
572
|
+
}
|
|
573
|
+
response_data = self.api_client.call_api(
|
|
574
|
+
*_param,
|
|
575
|
+
_request_timeout=_request_timeout
|
|
576
|
+
)
|
|
577
|
+
return response_data.response
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
def _create_serialize(
|
|
581
|
+
self,
|
|
582
|
+
pulp_domain,
|
|
583
|
+
service_feature_content_guard,
|
|
584
|
+
x_task_diagnostics,
|
|
585
|
+
_request_auth,
|
|
586
|
+
_content_type,
|
|
587
|
+
_headers,
|
|
588
|
+
_host_index,
|
|
589
|
+
) -> RequestSerialized:
|
|
590
|
+
|
|
591
|
+
_host = None
|
|
592
|
+
|
|
593
|
+
_collection_formats: Dict[str, str] = {
|
|
594
|
+
'X-Task-Diagnostics': 'csv',
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
_path_params: Dict[str, str] = {}
|
|
598
|
+
_query_params: List[Tuple[str, str]] = []
|
|
599
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
600
|
+
_form_params: List[Tuple[str, str]] = []
|
|
601
|
+
_files: Dict[
|
|
602
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
603
|
+
] = {}
|
|
604
|
+
_body_params: Optional[bytes] = None
|
|
605
|
+
|
|
606
|
+
# process the path parameters
|
|
607
|
+
if pulp_domain is not None:
|
|
608
|
+
_path_params['pulp_domain'] = pulp_domain
|
|
609
|
+
# process the query parameters
|
|
610
|
+
# process the header parameters
|
|
611
|
+
if x_task_diagnostics is not None:
|
|
612
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
613
|
+
# process the form parameters
|
|
614
|
+
# process the body parameter
|
|
615
|
+
if service_feature_content_guard is not None:
|
|
616
|
+
_body_params = service_feature_content_guard
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
# set the HTTP header `Accept`
|
|
620
|
+
if 'Accept' not in _header_params:
|
|
621
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
622
|
+
[
|
|
623
|
+
'application/json'
|
|
624
|
+
]
|
|
625
|
+
)
|
|
626
|
+
|
|
627
|
+
# set the HTTP header `Content-Type`
|
|
628
|
+
if _content_type:
|
|
629
|
+
_header_params['Content-Type'] = _content_type
|
|
630
|
+
else:
|
|
631
|
+
_default_content_type = (
|
|
632
|
+
self.api_client.select_header_content_type(
|
|
633
|
+
[
|
|
634
|
+
'application/json',
|
|
635
|
+
'application/x-www-form-urlencoded',
|
|
636
|
+
'multipart/form-data'
|
|
637
|
+
]
|
|
638
|
+
)
|
|
639
|
+
)
|
|
640
|
+
if _default_content_type is not None:
|
|
641
|
+
_header_params['Content-Type'] = _default_content_type
|
|
642
|
+
|
|
643
|
+
# authentication setting
|
|
644
|
+
_auth_settings: List[str] = [
|
|
645
|
+
'json_header_remote_authentication',
|
|
646
|
+
'basicAuth',
|
|
647
|
+
'cookieAuth'
|
|
648
|
+
]
|
|
649
|
+
|
|
650
|
+
return self.api_client.param_serialize(
|
|
651
|
+
method='POST',
|
|
652
|
+
resource_path='/api/pulp/{pulp_domain}/api/v3/contentguards/service/feature/',
|
|
653
|
+
path_params=_path_params,
|
|
654
|
+
query_params=_query_params,
|
|
655
|
+
header_params=_header_params,
|
|
656
|
+
body=_body_params,
|
|
657
|
+
post_params=_form_params,
|
|
658
|
+
files=_files,
|
|
659
|
+
auth_settings=_auth_settings,
|
|
660
|
+
collection_formats=_collection_formats,
|
|
661
|
+
_host=_host,
|
|
662
|
+
_request_auth=_request_auth
|
|
663
|
+
)
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
@validate_call
|
|
669
|
+
def delete(
|
|
670
|
+
self,
|
|
671
|
+
service_feature_content_guard_href: StrictStr,
|
|
672
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
673
|
+
_request_timeout: Union[
|
|
674
|
+
None,
|
|
675
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
676
|
+
Tuple[
|
|
677
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
678
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
679
|
+
]
|
|
680
|
+
] = None,
|
|
681
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
682
|
+
_content_type: Optional[StrictStr] = None,
|
|
683
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
684
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
685
|
+
) -> None:
|
|
686
|
+
"""Delete a feature content guard
|
|
687
|
+
|
|
688
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
689
|
+
|
|
690
|
+
:param service_feature_content_guard_href: (required)
|
|
691
|
+
:type service_feature_content_guard_href: str
|
|
692
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
693
|
+
:type x_task_diagnostics: List[str]
|
|
694
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
695
|
+
number provided, it will be total request
|
|
696
|
+
timeout. It can also be a pair (tuple) of
|
|
697
|
+
(connection, read) timeouts.
|
|
698
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
699
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
700
|
+
request; this effectively ignores the
|
|
701
|
+
authentication in the spec for a single request.
|
|
702
|
+
:type _request_auth: dict, optional
|
|
703
|
+
:param _content_type: force content-type for the request.
|
|
704
|
+
:type _content_type: str, Optional
|
|
705
|
+
:param _headers: set to override the headers for a single
|
|
706
|
+
request; this effectively ignores the headers
|
|
707
|
+
in the spec for a single request.
|
|
708
|
+
:type _headers: dict, optional
|
|
709
|
+
:param _host_index: set to override the host_index for a single
|
|
710
|
+
request; this effectively ignores the host_index
|
|
711
|
+
in the spec for a single request.
|
|
712
|
+
:type _host_index: int, optional
|
|
713
|
+
:return: Returns the result object.
|
|
714
|
+
""" # noqa: E501
|
|
715
|
+
|
|
716
|
+
_param = self._delete_serialize(
|
|
717
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
718
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
719
|
+
_request_auth=_request_auth,
|
|
720
|
+
_content_type=_content_type,
|
|
721
|
+
_headers=_headers,
|
|
722
|
+
_host_index=_host_index
|
|
723
|
+
)
|
|
724
|
+
|
|
725
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
726
|
+
'204': None,
|
|
727
|
+
}
|
|
728
|
+
response_data = self.api_client.call_api(
|
|
729
|
+
*_param,
|
|
730
|
+
_request_timeout=_request_timeout
|
|
731
|
+
)
|
|
732
|
+
response_data.read()
|
|
733
|
+
return self.api_client.response_deserialize(
|
|
734
|
+
response_data=response_data,
|
|
735
|
+
response_types_map=_response_types_map,
|
|
736
|
+
).data
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
@validate_call
|
|
740
|
+
def delete_with_http_info(
|
|
741
|
+
self,
|
|
742
|
+
service_feature_content_guard_href: StrictStr,
|
|
743
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
744
|
+
_request_timeout: Union[
|
|
745
|
+
None,
|
|
746
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
747
|
+
Tuple[
|
|
748
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
749
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
750
|
+
]
|
|
751
|
+
] = None,
|
|
752
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
753
|
+
_content_type: Optional[StrictStr] = None,
|
|
754
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
755
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
756
|
+
) -> ApiResponse[None]:
|
|
757
|
+
"""Delete a feature content guard
|
|
758
|
+
|
|
759
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
760
|
+
|
|
761
|
+
:param service_feature_content_guard_href: (required)
|
|
762
|
+
:type service_feature_content_guard_href: str
|
|
763
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
764
|
+
:type x_task_diagnostics: List[str]
|
|
765
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
766
|
+
number provided, it will be total request
|
|
767
|
+
timeout. It can also be a pair (tuple) of
|
|
768
|
+
(connection, read) timeouts.
|
|
769
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
770
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
771
|
+
request; this effectively ignores the
|
|
772
|
+
authentication in the spec for a single request.
|
|
773
|
+
:type _request_auth: dict, optional
|
|
774
|
+
:param _content_type: force content-type for the request.
|
|
775
|
+
:type _content_type: str, Optional
|
|
776
|
+
:param _headers: set to override the headers for a single
|
|
777
|
+
request; this effectively ignores the headers
|
|
778
|
+
in the spec for a single request.
|
|
779
|
+
:type _headers: dict, optional
|
|
780
|
+
:param _host_index: set to override the host_index for a single
|
|
781
|
+
request; this effectively ignores the host_index
|
|
782
|
+
in the spec for a single request.
|
|
783
|
+
:type _host_index: int, optional
|
|
784
|
+
:return: Returns the result object.
|
|
785
|
+
""" # noqa: E501
|
|
786
|
+
|
|
787
|
+
_param = self._delete_serialize(
|
|
788
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
789
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
790
|
+
_request_auth=_request_auth,
|
|
791
|
+
_content_type=_content_type,
|
|
792
|
+
_headers=_headers,
|
|
793
|
+
_host_index=_host_index
|
|
794
|
+
)
|
|
795
|
+
|
|
796
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
797
|
+
'204': None,
|
|
798
|
+
}
|
|
799
|
+
response_data = self.api_client.call_api(
|
|
800
|
+
*_param,
|
|
801
|
+
_request_timeout=_request_timeout
|
|
802
|
+
)
|
|
803
|
+
response_data.read()
|
|
804
|
+
return self.api_client.response_deserialize(
|
|
805
|
+
response_data=response_data,
|
|
806
|
+
response_types_map=_response_types_map,
|
|
807
|
+
)
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
@validate_call
|
|
811
|
+
def delete_without_preload_content(
|
|
812
|
+
self,
|
|
813
|
+
service_feature_content_guard_href: StrictStr,
|
|
814
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
815
|
+
_request_timeout: Union[
|
|
816
|
+
None,
|
|
817
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
818
|
+
Tuple[
|
|
819
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
820
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
821
|
+
]
|
|
822
|
+
] = None,
|
|
823
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
824
|
+
_content_type: Optional[StrictStr] = None,
|
|
825
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
826
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
827
|
+
) -> RESTResponseType:
|
|
828
|
+
"""Delete a feature content guard
|
|
829
|
+
|
|
830
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
831
|
+
|
|
832
|
+
:param service_feature_content_guard_href: (required)
|
|
833
|
+
:type service_feature_content_guard_href: str
|
|
834
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
835
|
+
:type x_task_diagnostics: List[str]
|
|
836
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
837
|
+
number provided, it will be total request
|
|
838
|
+
timeout. It can also be a pair (tuple) of
|
|
839
|
+
(connection, read) timeouts.
|
|
840
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
841
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
842
|
+
request; this effectively ignores the
|
|
843
|
+
authentication in the spec for a single request.
|
|
844
|
+
:type _request_auth: dict, optional
|
|
845
|
+
:param _content_type: force content-type for the request.
|
|
846
|
+
:type _content_type: str, Optional
|
|
847
|
+
:param _headers: set to override the headers for a single
|
|
848
|
+
request; this effectively ignores the headers
|
|
849
|
+
in the spec for a single request.
|
|
850
|
+
:type _headers: dict, optional
|
|
851
|
+
:param _host_index: set to override the host_index for a single
|
|
852
|
+
request; this effectively ignores the host_index
|
|
853
|
+
in the spec for a single request.
|
|
854
|
+
:type _host_index: int, optional
|
|
855
|
+
:return: Returns the result object.
|
|
856
|
+
""" # noqa: E501
|
|
857
|
+
|
|
858
|
+
_param = self._delete_serialize(
|
|
859
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
860
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
861
|
+
_request_auth=_request_auth,
|
|
862
|
+
_content_type=_content_type,
|
|
863
|
+
_headers=_headers,
|
|
864
|
+
_host_index=_host_index
|
|
865
|
+
)
|
|
866
|
+
|
|
867
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
868
|
+
'204': None,
|
|
869
|
+
}
|
|
870
|
+
response_data = self.api_client.call_api(
|
|
871
|
+
*_param,
|
|
872
|
+
_request_timeout=_request_timeout
|
|
873
|
+
)
|
|
874
|
+
return response_data.response
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
def _delete_serialize(
|
|
878
|
+
self,
|
|
879
|
+
service_feature_content_guard_href,
|
|
880
|
+
x_task_diagnostics,
|
|
881
|
+
_request_auth,
|
|
882
|
+
_content_type,
|
|
883
|
+
_headers,
|
|
884
|
+
_host_index,
|
|
885
|
+
) -> RequestSerialized:
|
|
886
|
+
|
|
887
|
+
_host = None
|
|
888
|
+
|
|
889
|
+
_collection_formats: Dict[str, str] = {
|
|
890
|
+
'X-Task-Diagnostics': 'csv',
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
_path_params: Dict[str, str] = {}
|
|
894
|
+
_query_params: List[Tuple[str, str]] = []
|
|
895
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
896
|
+
_form_params: List[Tuple[str, str]] = []
|
|
897
|
+
_files: Dict[
|
|
898
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
899
|
+
] = {}
|
|
900
|
+
_body_params: Optional[bytes] = None
|
|
901
|
+
|
|
902
|
+
# process the path parameters
|
|
903
|
+
if service_feature_content_guard_href is not None:
|
|
904
|
+
_path_params['service_feature_content_guard_href'] = service_feature_content_guard_href
|
|
905
|
+
# process the query parameters
|
|
906
|
+
# process the header parameters
|
|
907
|
+
if x_task_diagnostics is not None:
|
|
908
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
909
|
+
# process the form parameters
|
|
910
|
+
# process the body parameter
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
# authentication setting
|
|
916
|
+
_auth_settings: List[str] = [
|
|
917
|
+
'json_header_remote_authentication',
|
|
918
|
+
'basicAuth',
|
|
919
|
+
'cookieAuth'
|
|
920
|
+
]
|
|
921
|
+
|
|
922
|
+
return self.api_client.param_serialize(
|
|
923
|
+
method='DELETE',
|
|
924
|
+
resource_path='{service_feature_content_guard_href}',
|
|
925
|
+
path_params=_path_params,
|
|
926
|
+
query_params=_query_params,
|
|
927
|
+
header_params=_header_params,
|
|
928
|
+
body=_body_params,
|
|
929
|
+
post_params=_form_params,
|
|
930
|
+
files=_files,
|
|
931
|
+
auth_settings=_auth_settings,
|
|
932
|
+
collection_formats=_collection_formats,
|
|
933
|
+
_host=_host,
|
|
934
|
+
_request_auth=_request_auth
|
|
935
|
+
)
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
@validate_call
|
|
941
|
+
def list(
|
|
942
|
+
self,
|
|
943
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
944
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
945
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
946
|
+
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
947
|
+
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
948
|
+
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
949
|
+
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
950
|
+
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
951
|
+
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
952
|
+
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
953
|
+
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
954
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
955
|
+
ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
956
|
+
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
957
|
+
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
958
|
+
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
959
|
+
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
960
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
961
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
962
|
+
pulp_domain: StrictStr = "default",
|
|
963
|
+
_request_timeout: Union[
|
|
964
|
+
None,
|
|
965
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
966
|
+
Tuple[
|
|
967
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
968
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
969
|
+
]
|
|
970
|
+
] = None,
|
|
971
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
972
|
+
_content_type: Optional[StrictStr] = None,
|
|
973
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
974
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
975
|
+
) -> PaginatedserviceFeatureContentGuardResponseList:
|
|
976
|
+
"""List feature content guards
|
|
977
|
+
|
|
978
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
979
|
+
|
|
980
|
+
:param pulp_domain: (required)
|
|
981
|
+
:type pulp_domain: str
|
|
982
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
983
|
+
:type x_task_diagnostics: List[str]
|
|
984
|
+
:param limit: Number of results to return per page.
|
|
985
|
+
:type limit: int
|
|
986
|
+
:param name: Filter results where name matches value
|
|
987
|
+
:type name: str
|
|
988
|
+
:param name__contains: Filter results where name contains value
|
|
989
|
+
:type name__contains: str
|
|
990
|
+
:param name__icontains: Filter results where name contains value
|
|
991
|
+
:type name__icontains: str
|
|
992
|
+
:param name__iexact: Filter results where name matches value
|
|
993
|
+
:type name__iexact: str
|
|
994
|
+
:param name__in: Filter results where name is in a comma-separated list of values
|
|
995
|
+
:type name__in: List[str]
|
|
996
|
+
:param name__iregex: Filter results where name matches regex value
|
|
997
|
+
:type name__iregex: str
|
|
998
|
+
:param name__istartswith: Filter results where name starts with value
|
|
999
|
+
:type name__istartswith: str
|
|
1000
|
+
:param name__regex: Filter results where name matches regex value
|
|
1001
|
+
:type name__regex: str
|
|
1002
|
+
:param name__startswith: Filter results where name starts with value
|
|
1003
|
+
:type name__startswith: str
|
|
1004
|
+
:param offset: The initial index from which to return the results.
|
|
1005
|
+
:type offset: int
|
|
1006
|
+
:param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
1007
|
+
:type ordering: List[str]
|
|
1008
|
+
:param prn__in: Multiple values may be separated by commas.
|
|
1009
|
+
:type prn__in: List[str]
|
|
1010
|
+
:param pulp_href__in: Multiple values may be separated by commas.
|
|
1011
|
+
:type pulp_href__in: List[str]
|
|
1012
|
+
:param pulp_id__in: Multiple values may be separated by commas.
|
|
1013
|
+
:type pulp_id__in: List[str]
|
|
1014
|
+
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
1015
|
+
:type q: str
|
|
1016
|
+
:param fields: A list of fields to include in the response.
|
|
1017
|
+
:type fields: List[str]
|
|
1018
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1019
|
+
:type exclude_fields: List[str]
|
|
1020
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1021
|
+
number provided, it will be total request
|
|
1022
|
+
timeout. It can also be a pair (tuple) of
|
|
1023
|
+
(connection, read) timeouts.
|
|
1024
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1025
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1026
|
+
request; this effectively ignores the
|
|
1027
|
+
authentication in the spec for a single request.
|
|
1028
|
+
:type _request_auth: dict, optional
|
|
1029
|
+
:param _content_type: force content-type for the request.
|
|
1030
|
+
:type _content_type: str, Optional
|
|
1031
|
+
:param _headers: set to override the headers for a single
|
|
1032
|
+
request; this effectively ignores the headers
|
|
1033
|
+
in the spec for a single request.
|
|
1034
|
+
:type _headers: dict, optional
|
|
1035
|
+
:param _host_index: set to override the host_index for a single
|
|
1036
|
+
request; this effectively ignores the host_index
|
|
1037
|
+
in the spec for a single request.
|
|
1038
|
+
:type _host_index: int, optional
|
|
1039
|
+
:return: Returns the result object.
|
|
1040
|
+
""" # noqa: E501
|
|
1041
|
+
|
|
1042
|
+
_param = self._list_serialize(
|
|
1043
|
+
pulp_domain=pulp_domain,
|
|
1044
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1045
|
+
limit=limit,
|
|
1046
|
+
name=name,
|
|
1047
|
+
name__contains=name__contains,
|
|
1048
|
+
name__icontains=name__icontains,
|
|
1049
|
+
name__iexact=name__iexact,
|
|
1050
|
+
name__in=name__in,
|
|
1051
|
+
name__iregex=name__iregex,
|
|
1052
|
+
name__istartswith=name__istartswith,
|
|
1053
|
+
name__regex=name__regex,
|
|
1054
|
+
name__startswith=name__startswith,
|
|
1055
|
+
offset=offset,
|
|
1056
|
+
ordering=ordering,
|
|
1057
|
+
prn__in=prn__in,
|
|
1058
|
+
pulp_href__in=pulp_href__in,
|
|
1059
|
+
pulp_id__in=pulp_id__in,
|
|
1060
|
+
q=q,
|
|
1061
|
+
fields=fields,
|
|
1062
|
+
exclude_fields=exclude_fields,
|
|
1063
|
+
_request_auth=_request_auth,
|
|
1064
|
+
_content_type=_content_type,
|
|
1065
|
+
_headers=_headers,
|
|
1066
|
+
_host_index=_host_index
|
|
1067
|
+
)
|
|
1068
|
+
|
|
1069
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1070
|
+
'200': "PaginatedserviceFeatureContentGuardResponseList",
|
|
1071
|
+
}
|
|
1072
|
+
response_data = self.api_client.call_api(
|
|
1073
|
+
*_param,
|
|
1074
|
+
_request_timeout=_request_timeout
|
|
1075
|
+
)
|
|
1076
|
+
response_data.read()
|
|
1077
|
+
return self.api_client.response_deserialize(
|
|
1078
|
+
response_data=response_data,
|
|
1079
|
+
response_types_map=_response_types_map,
|
|
1080
|
+
).data
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
@validate_call
|
|
1084
|
+
def list_with_http_info(
|
|
1085
|
+
self,
|
|
1086
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1087
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
1088
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1089
|
+
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1090
|
+
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1091
|
+
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1092
|
+
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
1093
|
+
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1094
|
+
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1095
|
+
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1096
|
+
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1097
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
1098
|
+
ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
1099
|
+
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1100
|
+
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1101
|
+
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1102
|
+
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
1103
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1104
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1105
|
+
pulp_domain: StrictStr = "default",
|
|
1106
|
+
_request_timeout: Union[
|
|
1107
|
+
None,
|
|
1108
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1109
|
+
Tuple[
|
|
1110
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1111
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1112
|
+
]
|
|
1113
|
+
] = None,
|
|
1114
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1115
|
+
_content_type: Optional[StrictStr] = None,
|
|
1116
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1117
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1118
|
+
) -> ApiResponse[PaginatedserviceFeatureContentGuardResponseList]:
|
|
1119
|
+
"""List feature content guards
|
|
1120
|
+
|
|
1121
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
1122
|
+
|
|
1123
|
+
:param pulp_domain: (required)
|
|
1124
|
+
:type pulp_domain: str
|
|
1125
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1126
|
+
:type x_task_diagnostics: List[str]
|
|
1127
|
+
:param limit: Number of results to return per page.
|
|
1128
|
+
:type limit: int
|
|
1129
|
+
:param name: Filter results where name matches value
|
|
1130
|
+
:type name: str
|
|
1131
|
+
:param name__contains: Filter results where name contains value
|
|
1132
|
+
:type name__contains: str
|
|
1133
|
+
:param name__icontains: Filter results where name contains value
|
|
1134
|
+
:type name__icontains: str
|
|
1135
|
+
:param name__iexact: Filter results where name matches value
|
|
1136
|
+
:type name__iexact: str
|
|
1137
|
+
:param name__in: Filter results where name is in a comma-separated list of values
|
|
1138
|
+
:type name__in: List[str]
|
|
1139
|
+
:param name__iregex: Filter results where name matches regex value
|
|
1140
|
+
:type name__iregex: str
|
|
1141
|
+
:param name__istartswith: Filter results where name starts with value
|
|
1142
|
+
:type name__istartswith: str
|
|
1143
|
+
:param name__regex: Filter results where name matches regex value
|
|
1144
|
+
:type name__regex: str
|
|
1145
|
+
:param name__startswith: Filter results where name starts with value
|
|
1146
|
+
:type name__startswith: str
|
|
1147
|
+
:param offset: The initial index from which to return the results.
|
|
1148
|
+
:type offset: int
|
|
1149
|
+
:param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
1150
|
+
:type ordering: List[str]
|
|
1151
|
+
:param prn__in: Multiple values may be separated by commas.
|
|
1152
|
+
:type prn__in: List[str]
|
|
1153
|
+
:param pulp_href__in: Multiple values may be separated by commas.
|
|
1154
|
+
:type pulp_href__in: List[str]
|
|
1155
|
+
:param pulp_id__in: Multiple values may be separated by commas.
|
|
1156
|
+
:type pulp_id__in: List[str]
|
|
1157
|
+
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
1158
|
+
:type q: str
|
|
1159
|
+
:param fields: A list of fields to include in the response.
|
|
1160
|
+
:type fields: List[str]
|
|
1161
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1162
|
+
:type exclude_fields: List[str]
|
|
1163
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1164
|
+
number provided, it will be total request
|
|
1165
|
+
timeout. It can also be a pair (tuple) of
|
|
1166
|
+
(connection, read) timeouts.
|
|
1167
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1168
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1169
|
+
request; this effectively ignores the
|
|
1170
|
+
authentication in the spec for a single request.
|
|
1171
|
+
:type _request_auth: dict, optional
|
|
1172
|
+
:param _content_type: force content-type for the request.
|
|
1173
|
+
:type _content_type: str, Optional
|
|
1174
|
+
:param _headers: set to override the headers for a single
|
|
1175
|
+
request; this effectively ignores the headers
|
|
1176
|
+
in the spec for a single request.
|
|
1177
|
+
:type _headers: dict, optional
|
|
1178
|
+
:param _host_index: set to override the host_index for a single
|
|
1179
|
+
request; this effectively ignores the host_index
|
|
1180
|
+
in the spec for a single request.
|
|
1181
|
+
:type _host_index: int, optional
|
|
1182
|
+
:return: Returns the result object.
|
|
1183
|
+
""" # noqa: E501
|
|
1184
|
+
|
|
1185
|
+
_param = self._list_serialize(
|
|
1186
|
+
pulp_domain=pulp_domain,
|
|
1187
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1188
|
+
limit=limit,
|
|
1189
|
+
name=name,
|
|
1190
|
+
name__contains=name__contains,
|
|
1191
|
+
name__icontains=name__icontains,
|
|
1192
|
+
name__iexact=name__iexact,
|
|
1193
|
+
name__in=name__in,
|
|
1194
|
+
name__iregex=name__iregex,
|
|
1195
|
+
name__istartswith=name__istartswith,
|
|
1196
|
+
name__regex=name__regex,
|
|
1197
|
+
name__startswith=name__startswith,
|
|
1198
|
+
offset=offset,
|
|
1199
|
+
ordering=ordering,
|
|
1200
|
+
prn__in=prn__in,
|
|
1201
|
+
pulp_href__in=pulp_href__in,
|
|
1202
|
+
pulp_id__in=pulp_id__in,
|
|
1203
|
+
q=q,
|
|
1204
|
+
fields=fields,
|
|
1205
|
+
exclude_fields=exclude_fields,
|
|
1206
|
+
_request_auth=_request_auth,
|
|
1207
|
+
_content_type=_content_type,
|
|
1208
|
+
_headers=_headers,
|
|
1209
|
+
_host_index=_host_index
|
|
1210
|
+
)
|
|
1211
|
+
|
|
1212
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1213
|
+
'200': "PaginatedserviceFeatureContentGuardResponseList",
|
|
1214
|
+
}
|
|
1215
|
+
response_data = self.api_client.call_api(
|
|
1216
|
+
*_param,
|
|
1217
|
+
_request_timeout=_request_timeout
|
|
1218
|
+
)
|
|
1219
|
+
response_data.read()
|
|
1220
|
+
return self.api_client.response_deserialize(
|
|
1221
|
+
response_data=response_data,
|
|
1222
|
+
response_types_map=_response_types_map,
|
|
1223
|
+
)
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
@validate_call
|
|
1227
|
+
def list_without_preload_content(
|
|
1228
|
+
self,
|
|
1229
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1230
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
1231
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1232
|
+
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1233
|
+
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1234
|
+
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1235
|
+
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
1236
|
+
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1237
|
+
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1238
|
+
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1239
|
+
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1240
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
1241
|
+
ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
1242
|
+
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1243
|
+
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1244
|
+
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1245
|
+
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
1246
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1247
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1248
|
+
pulp_domain: StrictStr = "default",
|
|
1249
|
+
_request_timeout: Union[
|
|
1250
|
+
None,
|
|
1251
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1252
|
+
Tuple[
|
|
1253
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1254
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1255
|
+
]
|
|
1256
|
+
] = None,
|
|
1257
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1258
|
+
_content_type: Optional[StrictStr] = None,
|
|
1259
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1260
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1261
|
+
) -> RESTResponseType:
|
|
1262
|
+
"""List feature content guards
|
|
1263
|
+
|
|
1264
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
1265
|
+
|
|
1266
|
+
:param pulp_domain: (required)
|
|
1267
|
+
:type pulp_domain: str
|
|
1268
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1269
|
+
:type x_task_diagnostics: List[str]
|
|
1270
|
+
:param limit: Number of results to return per page.
|
|
1271
|
+
:type limit: int
|
|
1272
|
+
:param name: Filter results where name matches value
|
|
1273
|
+
:type name: str
|
|
1274
|
+
:param name__contains: Filter results where name contains value
|
|
1275
|
+
:type name__contains: str
|
|
1276
|
+
:param name__icontains: Filter results where name contains value
|
|
1277
|
+
:type name__icontains: str
|
|
1278
|
+
:param name__iexact: Filter results where name matches value
|
|
1279
|
+
:type name__iexact: str
|
|
1280
|
+
:param name__in: Filter results where name is in a comma-separated list of values
|
|
1281
|
+
:type name__in: List[str]
|
|
1282
|
+
:param name__iregex: Filter results where name matches regex value
|
|
1283
|
+
:type name__iregex: str
|
|
1284
|
+
:param name__istartswith: Filter results where name starts with value
|
|
1285
|
+
:type name__istartswith: str
|
|
1286
|
+
:param name__regex: Filter results where name matches regex value
|
|
1287
|
+
:type name__regex: str
|
|
1288
|
+
:param name__startswith: Filter results where name starts with value
|
|
1289
|
+
:type name__startswith: str
|
|
1290
|
+
:param offset: The initial index from which to return the results.
|
|
1291
|
+
:type offset: int
|
|
1292
|
+
:param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
1293
|
+
:type ordering: List[str]
|
|
1294
|
+
:param prn__in: Multiple values may be separated by commas.
|
|
1295
|
+
:type prn__in: List[str]
|
|
1296
|
+
:param pulp_href__in: Multiple values may be separated by commas.
|
|
1297
|
+
:type pulp_href__in: List[str]
|
|
1298
|
+
:param pulp_id__in: Multiple values may be separated by commas.
|
|
1299
|
+
:type pulp_id__in: List[str]
|
|
1300
|
+
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
1301
|
+
:type q: str
|
|
1302
|
+
:param fields: A list of fields to include in the response.
|
|
1303
|
+
:type fields: List[str]
|
|
1304
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1305
|
+
:type exclude_fields: List[str]
|
|
1306
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1307
|
+
number provided, it will be total request
|
|
1308
|
+
timeout. It can also be a pair (tuple) of
|
|
1309
|
+
(connection, read) timeouts.
|
|
1310
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1311
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1312
|
+
request; this effectively ignores the
|
|
1313
|
+
authentication in the spec for a single request.
|
|
1314
|
+
:type _request_auth: dict, optional
|
|
1315
|
+
:param _content_type: force content-type for the request.
|
|
1316
|
+
:type _content_type: str, Optional
|
|
1317
|
+
:param _headers: set to override the headers for a single
|
|
1318
|
+
request; this effectively ignores the headers
|
|
1319
|
+
in the spec for a single request.
|
|
1320
|
+
:type _headers: dict, optional
|
|
1321
|
+
:param _host_index: set to override the host_index for a single
|
|
1322
|
+
request; this effectively ignores the host_index
|
|
1323
|
+
in the spec for a single request.
|
|
1324
|
+
:type _host_index: int, optional
|
|
1325
|
+
:return: Returns the result object.
|
|
1326
|
+
""" # noqa: E501
|
|
1327
|
+
|
|
1328
|
+
_param = self._list_serialize(
|
|
1329
|
+
pulp_domain=pulp_domain,
|
|
1330
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1331
|
+
limit=limit,
|
|
1332
|
+
name=name,
|
|
1333
|
+
name__contains=name__contains,
|
|
1334
|
+
name__icontains=name__icontains,
|
|
1335
|
+
name__iexact=name__iexact,
|
|
1336
|
+
name__in=name__in,
|
|
1337
|
+
name__iregex=name__iregex,
|
|
1338
|
+
name__istartswith=name__istartswith,
|
|
1339
|
+
name__regex=name__regex,
|
|
1340
|
+
name__startswith=name__startswith,
|
|
1341
|
+
offset=offset,
|
|
1342
|
+
ordering=ordering,
|
|
1343
|
+
prn__in=prn__in,
|
|
1344
|
+
pulp_href__in=pulp_href__in,
|
|
1345
|
+
pulp_id__in=pulp_id__in,
|
|
1346
|
+
q=q,
|
|
1347
|
+
fields=fields,
|
|
1348
|
+
exclude_fields=exclude_fields,
|
|
1349
|
+
_request_auth=_request_auth,
|
|
1350
|
+
_content_type=_content_type,
|
|
1351
|
+
_headers=_headers,
|
|
1352
|
+
_host_index=_host_index
|
|
1353
|
+
)
|
|
1354
|
+
|
|
1355
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1356
|
+
'200': "PaginatedserviceFeatureContentGuardResponseList",
|
|
1357
|
+
}
|
|
1358
|
+
response_data = self.api_client.call_api(
|
|
1359
|
+
*_param,
|
|
1360
|
+
_request_timeout=_request_timeout
|
|
1361
|
+
)
|
|
1362
|
+
return response_data.response
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
def _list_serialize(
|
|
1366
|
+
self,
|
|
1367
|
+
pulp_domain,
|
|
1368
|
+
x_task_diagnostics,
|
|
1369
|
+
limit,
|
|
1370
|
+
name,
|
|
1371
|
+
name__contains,
|
|
1372
|
+
name__icontains,
|
|
1373
|
+
name__iexact,
|
|
1374
|
+
name__in,
|
|
1375
|
+
name__iregex,
|
|
1376
|
+
name__istartswith,
|
|
1377
|
+
name__regex,
|
|
1378
|
+
name__startswith,
|
|
1379
|
+
offset,
|
|
1380
|
+
ordering,
|
|
1381
|
+
prn__in,
|
|
1382
|
+
pulp_href__in,
|
|
1383
|
+
pulp_id__in,
|
|
1384
|
+
q,
|
|
1385
|
+
fields,
|
|
1386
|
+
exclude_fields,
|
|
1387
|
+
_request_auth,
|
|
1388
|
+
_content_type,
|
|
1389
|
+
_headers,
|
|
1390
|
+
_host_index,
|
|
1391
|
+
) -> RequestSerialized:
|
|
1392
|
+
|
|
1393
|
+
_host = None
|
|
1394
|
+
|
|
1395
|
+
_collection_formats: Dict[str, str] = {
|
|
1396
|
+
'X-Task-Diagnostics': 'csv',
|
|
1397
|
+
'name__in': 'csv',
|
|
1398
|
+
'ordering': 'csv',
|
|
1399
|
+
'prn__in': 'csv',
|
|
1400
|
+
'pulp_href__in': 'csv',
|
|
1401
|
+
'pulp_id__in': 'csv',
|
|
1402
|
+
'fields': 'multi',
|
|
1403
|
+
'exclude_fields': 'multi',
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
_path_params: Dict[str, str] = {}
|
|
1407
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1408
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1409
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1410
|
+
_files: Dict[
|
|
1411
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1412
|
+
] = {}
|
|
1413
|
+
_body_params: Optional[bytes] = None
|
|
1414
|
+
|
|
1415
|
+
# process the path parameters
|
|
1416
|
+
if pulp_domain is not None:
|
|
1417
|
+
_path_params['pulp_domain'] = pulp_domain
|
|
1418
|
+
# process the query parameters
|
|
1419
|
+
if limit is not None:
|
|
1420
|
+
|
|
1421
|
+
_query_params.append(('limit', limit))
|
|
1422
|
+
|
|
1423
|
+
if name is not None:
|
|
1424
|
+
|
|
1425
|
+
_query_params.append(('name', name))
|
|
1426
|
+
|
|
1427
|
+
if name__contains is not None:
|
|
1428
|
+
|
|
1429
|
+
_query_params.append(('name__contains', name__contains))
|
|
1430
|
+
|
|
1431
|
+
if name__icontains is not None:
|
|
1432
|
+
|
|
1433
|
+
_query_params.append(('name__icontains', name__icontains))
|
|
1434
|
+
|
|
1435
|
+
if name__iexact is not None:
|
|
1436
|
+
|
|
1437
|
+
_query_params.append(('name__iexact', name__iexact))
|
|
1438
|
+
|
|
1439
|
+
if name__in is not None:
|
|
1440
|
+
|
|
1441
|
+
_query_params.append(('name__in', name__in))
|
|
1442
|
+
|
|
1443
|
+
if name__iregex is not None:
|
|
1444
|
+
|
|
1445
|
+
_query_params.append(('name__iregex', name__iregex))
|
|
1446
|
+
|
|
1447
|
+
if name__istartswith is not None:
|
|
1448
|
+
|
|
1449
|
+
_query_params.append(('name__istartswith', name__istartswith))
|
|
1450
|
+
|
|
1451
|
+
if name__regex is not None:
|
|
1452
|
+
|
|
1453
|
+
_query_params.append(('name__regex', name__regex))
|
|
1454
|
+
|
|
1455
|
+
if name__startswith is not None:
|
|
1456
|
+
|
|
1457
|
+
_query_params.append(('name__startswith', name__startswith))
|
|
1458
|
+
|
|
1459
|
+
if offset is not None:
|
|
1460
|
+
|
|
1461
|
+
_query_params.append(('offset', offset))
|
|
1462
|
+
|
|
1463
|
+
if ordering is not None:
|
|
1464
|
+
|
|
1465
|
+
_query_params.append(('ordering', ordering))
|
|
1466
|
+
|
|
1467
|
+
if prn__in is not None:
|
|
1468
|
+
|
|
1469
|
+
_query_params.append(('prn__in', prn__in))
|
|
1470
|
+
|
|
1471
|
+
if pulp_href__in is not None:
|
|
1472
|
+
|
|
1473
|
+
_query_params.append(('pulp_href__in', pulp_href__in))
|
|
1474
|
+
|
|
1475
|
+
if pulp_id__in is not None:
|
|
1476
|
+
|
|
1477
|
+
_query_params.append(('pulp_id__in', pulp_id__in))
|
|
1478
|
+
|
|
1479
|
+
if q is not None:
|
|
1480
|
+
|
|
1481
|
+
_query_params.append(('q', q))
|
|
1482
|
+
|
|
1483
|
+
if fields is not None:
|
|
1484
|
+
|
|
1485
|
+
_query_params.append(('fields', fields))
|
|
1486
|
+
|
|
1487
|
+
if exclude_fields is not None:
|
|
1488
|
+
|
|
1489
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
1490
|
+
|
|
1491
|
+
# process the header parameters
|
|
1492
|
+
if x_task_diagnostics is not None:
|
|
1493
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
1494
|
+
# process the form parameters
|
|
1495
|
+
# process the body parameter
|
|
1496
|
+
|
|
1497
|
+
|
|
1498
|
+
# set the HTTP header `Accept`
|
|
1499
|
+
if 'Accept' not in _header_params:
|
|
1500
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1501
|
+
[
|
|
1502
|
+
'application/json'
|
|
1503
|
+
]
|
|
1504
|
+
)
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
# authentication setting
|
|
1508
|
+
_auth_settings: List[str] = [
|
|
1509
|
+
'json_header_remote_authentication',
|
|
1510
|
+
'basicAuth',
|
|
1511
|
+
'cookieAuth'
|
|
1512
|
+
]
|
|
1513
|
+
|
|
1514
|
+
return self.api_client.param_serialize(
|
|
1515
|
+
method='GET',
|
|
1516
|
+
resource_path='/api/pulp/{pulp_domain}/api/v3/contentguards/service/feature/',
|
|
1517
|
+
path_params=_path_params,
|
|
1518
|
+
query_params=_query_params,
|
|
1519
|
+
header_params=_header_params,
|
|
1520
|
+
body=_body_params,
|
|
1521
|
+
post_params=_form_params,
|
|
1522
|
+
files=_files,
|
|
1523
|
+
auth_settings=_auth_settings,
|
|
1524
|
+
collection_formats=_collection_formats,
|
|
1525
|
+
_host=_host,
|
|
1526
|
+
_request_auth=_request_auth
|
|
1527
|
+
)
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
@validate_call
|
|
1533
|
+
def list_roles(
|
|
1534
|
+
self,
|
|
1535
|
+
service_feature_content_guard_href: StrictStr,
|
|
1536
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1537
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1538
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1539
|
+
_request_timeout: Union[
|
|
1540
|
+
None,
|
|
1541
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1542
|
+
Tuple[
|
|
1543
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1544
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1545
|
+
]
|
|
1546
|
+
] = None,
|
|
1547
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1548
|
+
_content_type: Optional[StrictStr] = None,
|
|
1549
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1550
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1551
|
+
) -> ObjectRolesResponse:
|
|
1552
|
+
"""List roles
|
|
1553
|
+
|
|
1554
|
+
List roles assigned to this object.
|
|
1555
|
+
|
|
1556
|
+
:param service_feature_content_guard_href: (required)
|
|
1557
|
+
:type service_feature_content_guard_href: str
|
|
1558
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1559
|
+
:type x_task_diagnostics: List[str]
|
|
1560
|
+
:param fields: A list of fields to include in the response.
|
|
1561
|
+
:type fields: List[str]
|
|
1562
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1563
|
+
:type exclude_fields: List[str]
|
|
1564
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1565
|
+
number provided, it will be total request
|
|
1566
|
+
timeout. It can also be a pair (tuple) of
|
|
1567
|
+
(connection, read) timeouts.
|
|
1568
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1569
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1570
|
+
request; this effectively ignores the
|
|
1571
|
+
authentication in the spec for a single request.
|
|
1572
|
+
:type _request_auth: dict, optional
|
|
1573
|
+
:param _content_type: force content-type for the request.
|
|
1574
|
+
:type _content_type: str, Optional
|
|
1575
|
+
:param _headers: set to override the headers for a single
|
|
1576
|
+
request; this effectively ignores the headers
|
|
1577
|
+
in the spec for a single request.
|
|
1578
|
+
:type _headers: dict, optional
|
|
1579
|
+
:param _host_index: set to override the host_index for a single
|
|
1580
|
+
request; this effectively ignores the host_index
|
|
1581
|
+
in the spec for a single request.
|
|
1582
|
+
:type _host_index: int, optional
|
|
1583
|
+
:return: Returns the result object.
|
|
1584
|
+
""" # noqa: E501
|
|
1585
|
+
|
|
1586
|
+
_param = self._list_roles_serialize(
|
|
1587
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
1588
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1589
|
+
fields=fields,
|
|
1590
|
+
exclude_fields=exclude_fields,
|
|
1591
|
+
_request_auth=_request_auth,
|
|
1592
|
+
_content_type=_content_type,
|
|
1593
|
+
_headers=_headers,
|
|
1594
|
+
_host_index=_host_index
|
|
1595
|
+
)
|
|
1596
|
+
|
|
1597
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1598
|
+
'200': "ObjectRolesResponse",
|
|
1599
|
+
}
|
|
1600
|
+
response_data = self.api_client.call_api(
|
|
1601
|
+
*_param,
|
|
1602
|
+
_request_timeout=_request_timeout
|
|
1603
|
+
)
|
|
1604
|
+
response_data.read()
|
|
1605
|
+
return self.api_client.response_deserialize(
|
|
1606
|
+
response_data=response_data,
|
|
1607
|
+
response_types_map=_response_types_map,
|
|
1608
|
+
).data
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
@validate_call
|
|
1612
|
+
def list_roles_with_http_info(
|
|
1613
|
+
self,
|
|
1614
|
+
service_feature_content_guard_href: StrictStr,
|
|
1615
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1616
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1617
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1618
|
+
_request_timeout: Union[
|
|
1619
|
+
None,
|
|
1620
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1621
|
+
Tuple[
|
|
1622
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1623
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1624
|
+
]
|
|
1625
|
+
] = None,
|
|
1626
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1627
|
+
_content_type: Optional[StrictStr] = None,
|
|
1628
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1629
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1630
|
+
) -> ApiResponse[ObjectRolesResponse]:
|
|
1631
|
+
"""List roles
|
|
1632
|
+
|
|
1633
|
+
List roles assigned to this object.
|
|
1634
|
+
|
|
1635
|
+
:param service_feature_content_guard_href: (required)
|
|
1636
|
+
:type service_feature_content_guard_href: str
|
|
1637
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1638
|
+
:type x_task_diagnostics: List[str]
|
|
1639
|
+
:param fields: A list of fields to include in the response.
|
|
1640
|
+
:type fields: List[str]
|
|
1641
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1642
|
+
:type exclude_fields: List[str]
|
|
1643
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1644
|
+
number provided, it will be total request
|
|
1645
|
+
timeout. It can also be a pair (tuple) of
|
|
1646
|
+
(connection, read) timeouts.
|
|
1647
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1648
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1649
|
+
request; this effectively ignores the
|
|
1650
|
+
authentication in the spec for a single request.
|
|
1651
|
+
:type _request_auth: dict, optional
|
|
1652
|
+
:param _content_type: force content-type for the request.
|
|
1653
|
+
:type _content_type: str, Optional
|
|
1654
|
+
:param _headers: set to override the headers for a single
|
|
1655
|
+
request; this effectively ignores the headers
|
|
1656
|
+
in the spec for a single request.
|
|
1657
|
+
:type _headers: dict, optional
|
|
1658
|
+
:param _host_index: set to override the host_index for a single
|
|
1659
|
+
request; this effectively ignores the host_index
|
|
1660
|
+
in the spec for a single request.
|
|
1661
|
+
:type _host_index: int, optional
|
|
1662
|
+
:return: Returns the result object.
|
|
1663
|
+
""" # noqa: E501
|
|
1664
|
+
|
|
1665
|
+
_param = self._list_roles_serialize(
|
|
1666
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
1667
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1668
|
+
fields=fields,
|
|
1669
|
+
exclude_fields=exclude_fields,
|
|
1670
|
+
_request_auth=_request_auth,
|
|
1671
|
+
_content_type=_content_type,
|
|
1672
|
+
_headers=_headers,
|
|
1673
|
+
_host_index=_host_index
|
|
1674
|
+
)
|
|
1675
|
+
|
|
1676
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1677
|
+
'200': "ObjectRolesResponse",
|
|
1678
|
+
}
|
|
1679
|
+
response_data = self.api_client.call_api(
|
|
1680
|
+
*_param,
|
|
1681
|
+
_request_timeout=_request_timeout
|
|
1682
|
+
)
|
|
1683
|
+
response_data.read()
|
|
1684
|
+
return self.api_client.response_deserialize(
|
|
1685
|
+
response_data=response_data,
|
|
1686
|
+
response_types_map=_response_types_map,
|
|
1687
|
+
)
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
@validate_call
|
|
1691
|
+
def list_roles_without_preload_content(
|
|
1692
|
+
self,
|
|
1693
|
+
service_feature_content_guard_href: StrictStr,
|
|
1694
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1695
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1696
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1697
|
+
_request_timeout: Union[
|
|
1698
|
+
None,
|
|
1699
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1700
|
+
Tuple[
|
|
1701
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1702
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1703
|
+
]
|
|
1704
|
+
] = None,
|
|
1705
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1706
|
+
_content_type: Optional[StrictStr] = None,
|
|
1707
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1708
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1709
|
+
) -> RESTResponseType:
|
|
1710
|
+
"""List roles
|
|
1711
|
+
|
|
1712
|
+
List roles assigned to this object.
|
|
1713
|
+
|
|
1714
|
+
:param service_feature_content_guard_href: (required)
|
|
1715
|
+
:type service_feature_content_guard_href: str
|
|
1716
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1717
|
+
:type x_task_diagnostics: List[str]
|
|
1718
|
+
:param fields: A list of fields to include in the response.
|
|
1719
|
+
:type fields: List[str]
|
|
1720
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1721
|
+
:type exclude_fields: List[str]
|
|
1722
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1723
|
+
number provided, it will be total request
|
|
1724
|
+
timeout. It can also be a pair (tuple) of
|
|
1725
|
+
(connection, read) timeouts.
|
|
1726
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1727
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1728
|
+
request; this effectively ignores the
|
|
1729
|
+
authentication in the spec for a single request.
|
|
1730
|
+
:type _request_auth: dict, optional
|
|
1731
|
+
:param _content_type: force content-type for the request.
|
|
1732
|
+
:type _content_type: str, Optional
|
|
1733
|
+
:param _headers: set to override the headers for a single
|
|
1734
|
+
request; this effectively ignores the headers
|
|
1735
|
+
in the spec for a single request.
|
|
1736
|
+
:type _headers: dict, optional
|
|
1737
|
+
:param _host_index: set to override the host_index for a single
|
|
1738
|
+
request; this effectively ignores the host_index
|
|
1739
|
+
in the spec for a single request.
|
|
1740
|
+
:type _host_index: int, optional
|
|
1741
|
+
:return: Returns the result object.
|
|
1742
|
+
""" # noqa: E501
|
|
1743
|
+
|
|
1744
|
+
_param = self._list_roles_serialize(
|
|
1745
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
1746
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1747
|
+
fields=fields,
|
|
1748
|
+
exclude_fields=exclude_fields,
|
|
1749
|
+
_request_auth=_request_auth,
|
|
1750
|
+
_content_type=_content_type,
|
|
1751
|
+
_headers=_headers,
|
|
1752
|
+
_host_index=_host_index
|
|
1753
|
+
)
|
|
1754
|
+
|
|
1755
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1756
|
+
'200': "ObjectRolesResponse",
|
|
1757
|
+
}
|
|
1758
|
+
response_data = self.api_client.call_api(
|
|
1759
|
+
*_param,
|
|
1760
|
+
_request_timeout=_request_timeout
|
|
1761
|
+
)
|
|
1762
|
+
return response_data.response
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
def _list_roles_serialize(
|
|
1766
|
+
self,
|
|
1767
|
+
service_feature_content_guard_href,
|
|
1768
|
+
x_task_diagnostics,
|
|
1769
|
+
fields,
|
|
1770
|
+
exclude_fields,
|
|
1771
|
+
_request_auth,
|
|
1772
|
+
_content_type,
|
|
1773
|
+
_headers,
|
|
1774
|
+
_host_index,
|
|
1775
|
+
) -> RequestSerialized:
|
|
1776
|
+
|
|
1777
|
+
_host = None
|
|
1778
|
+
|
|
1779
|
+
_collection_formats: Dict[str, str] = {
|
|
1780
|
+
'X-Task-Diagnostics': 'csv',
|
|
1781
|
+
'fields': 'multi',
|
|
1782
|
+
'exclude_fields': 'multi',
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
_path_params: Dict[str, str] = {}
|
|
1786
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1787
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1788
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1789
|
+
_files: Dict[
|
|
1790
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1791
|
+
] = {}
|
|
1792
|
+
_body_params: Optional[bytes] = None
|
|
1793
|
+
|
|
1794
|
+
# process the path parameters
|
|
1795
|
+
if service_feature_content_guard_href is not None:
|
|
1796
|
+
_path_params['service_feature_content_guard_href'] = service_feature_content_guard_href
|
|
1797
|
+
# process the query parameters
|
|
1798
|
+
if fields is not None:
|
|
1799
|
+
|
|
1800
|
+
_query_params.append(('fields', fields))
|
|
1801
|
+
|
|
1802
|
+
if exclude_fields is not None:
|
|
1803
|
+
|
|
1804
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
1805
|
+
|
|
1806
|
+
# process the header parameters
|
|
1807
|
+
if x_task_diagnostics is not None:
|
|
1808
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
1809
|
+
# process the form parameters
|
|
1810
|
+
# process the body parameter
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
# set the HTTP header `Accept`
|
|
1814
|
+
if 'Accept' not in _header_params:
|
|
1815
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1816
|
+
[
|
|
1817
|
+
'application/json'
|
|
1818
|
+
]
|
|
1819
|
+
)
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
# authentication setting
|
|
1823
|
+
_auth_settings: List[str] = [
|
|
1824
|
+
'json_header_remote_authentication',
|
|
1825
|
+
'basicAuth',
|
|
1826
|
+
'cookieAuth'
|
|
1827
|
+
]
|
|
1828
|
+
|
|
1829
|
+
return self.api_client.param_serialize(
|
|
1830
|
+
method='GET',
|
|
1831
|
+
resource_path='{service_feature_content_guard_href}list_roles/',
|
|
1832
|
+
path_params=_path_params,
|
|
1833
|
+
query_params=_query_params,
|
|
1834
|
+
header_params=_header_params,
|
|
1835
|
+
body=_body_params,
|
|
1836
|
+
post_params=_form_params,
|
|
1837
|
+
files=_files,
|
|
1838
|
+
auth_settings=_auth_settings,
|
|
1839
|
+
collection_formats=_collection_formats,
|
|
1840
|
+
_host=_host,
|
|
1841
|
+
_request_auth=_request_auth
|
|
1842
|
+
)
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
@validate_call
|
|
1848
|
+
def my_permissions(
|
|
1849
|
+
self,
|
|
1850
|
+
service_feature_content_guard_href: StrictStr,
|
|
1851
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1852
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1853
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1854
|
+
_request_timeout: Union[
|
|
1855
|
+
None,
|
|
1856
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1857
|
+
Tuple[
|
|
1858
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1859
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1860
|
+
]
|
|
1861
|
+
] = None,
|
|
1862
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1863
|
+
_content_type: Optional[StrictStr] = None,
|
|
1864
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1865
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1866
|
+
) -> MyPermissionsResponse:
|
|
1867
|
+
"""List user permissions
|
|
1868
|
+
|
|
1869
|
+
List permissions available to the current user on this object.
|
|
1870
|
+
|
|
1871
|
+
:param service_feature_content_guard_href: (required)
|
|
1872
|
+
:type service_feature_content_guard_href: str
|
|
1873
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1874
|
+
:type x_task_diagnostics: List[str]
|
|
1875
|
+
:param fields: A list of fields to include in the response.
|
|
1876
|
+
:type fields: List[str]
|
|
1877
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1878
|
+
:type exclude_fields: List[str]
|
|
1879
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1880
|
+
number provided, it will be total request
|
|
1881
|
+
timeout. It can also be a pair (tuple) of
|
|
1882
|
+
(connection, read) timeouts.
|
|
1883
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1884
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1885
|
+
request; this effectively ignores the
|
|
1886
|
+
authentication in the spec for a single request.
|
|
1887
|
+
:type _request_auth: dict, optional
|
|
1888
|
+
:param _content_type: force content-type for the request.
|
|
1889
|
+
:type _content_type: str, Optional
|
|
1890
|
+
:param _headers: set to override the headers for a single
|
|
1891
|
+
request; this effectively ignores the headers
|
|
1892
|
+
in the spec for a single request.
|
|
1893
|
+
:type _headers: dict, optional
|
|
1894
|
+
:param _host_index: set to override the host_index for a single
|
|
1895
|
+
request; this effectively ignores the host_index
|
|
1896
|
+
in the spec for a single request.
|
|
1897
|
+
:type _host_index: int, optional
|
|
1898
|
+
:return: Returns the result object.
|
|
1899
|
+
""" # noqa: E501
|
|
1900
|
+
|
|
1901
|
+
_param = self._my_permissions_serialize(
|
|
1902
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
1903
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1904
|
+
fields=fields,
|
|
1905
|
+
exclude_fields=exclude_fields,
|
|
1906
|
+
_request_auth=_request_auth,
|
|
1907
|
+
_content_type=_content_type,
|
|
1908
|
+
_headers=_headers,
|
|
1909
|
+
_host_index=_host_index
|
|
1910
|
+
)
|
|
1911
|
+
|
|
1912
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1913
|
+
'200': "MyPermissionsResponse",
|
|
1914
|
+
}
|
|
1915
|
+
response_data = self.api_client.call_api(
|
|
1916
|
+
*_param,
|
|
1917
|
+
_request_timeout=_request_timeout
|
|
1918
|
+
)
|
|
1919
|
+
response_data.read()
|
|
1920
|
+
return self.api_client.response_deserialize(
|
|
1921
|
+
response_data=response_data,
|
|
1922
|
+
response_types_map=_response_types_map,
|
|
1923
|
+
).data
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
@validate_call
|
|
1927
|
+
def my_permissions_with_http_info(
|
|
1928
|
+
self,
|
|
1929
|
+
service_feature_content_guard_href: StrictStr,
|
|
1930
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1931
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1932
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1933
|
+
_request_timeout: Union[
|
|
1934
|
+
None,
|
|
1935
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1936
|
+
Tuple[
|
|
1937
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1938
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1939
|
+
]
|
|
1940
|
+
] = None,
|
|
1941
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1942
|
+
_content_type: Optional[StrictStr] = None,
|
|
1943
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1944
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1945
|
+
) -> ApiResponse[MyPermissionsResponse]:
|
|
1946
|
+
"""List user permissions
|
|
1947
|
+
|
|
1948
|
+
List permissions available to the current user on this object.
|
|
1949
|
+
|
|
1950
|
+
:param service_feature_content_guard_href: (required)
|
|
1951
|
+
:type service_feature_content_guard_href: str
|
|
1952
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1953
|
+
:type x_task_diagnostics: List[str]
|
|
1954
|
+
:param fields: A list of fields to include in the response.
|
|
1955
|
+
:type fields: List[str]
|
|
1956
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1957
|
+
:type exclude_fields: List[str]
|
|
1958
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1959
|
+
number provided, it will be total request
|
|
1960
|
+
timeout. It can also be a pair (tuple) of
|
|
1961
|
+
(connection, read) timeouts.
|
|
1962
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1963
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1964
|
+
request; this effectively ignores the
|
|
1965
|
+
authentication in the spec for a single request.
|
|
1966
|
+
:type _request_auth: dict, optional
|
|
1967
|
+
:param _content_type: force content-type for the request.
|
|
1968
|
+
:type _content_type: str, Optional
|
|
1969
|
+
:param _headers: set to override the headers for a single
|
|
1970
|
+
request; this effectively ignores the headers
|
|
1971
|
+
in the spec for a single request.
|
|
1972
|
+
:type _headers: dict, optional
|
|
1973
|
+
:param _host_index: set to override the host_index for a single
|
|
1974
|
+
request; this effectively ignores the host_index
|
|
1975
|
+
in the spec for a single request.
|
|
1976
|
+
:type _host_index: int, optional
|
|
1977
|
+
:return: Returns the result object.
|
|
1978
|
+
""" # noqa: E501
|
|
1979
|
+
|
|
1980
|
+
_param = self._my_permissions_serialize(
|
|
1981
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
1982
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1983
|
+
fields=fields,
|
|
1984
|
+
exclude_fields=exclude_fields,
|
|
1985
|
+
_request_auth=_request_auth,
|
|
1986
|
+
_content_type=_content_type,
|
|
1987
|
+
_headers=_headers,
|
|
1988
|
+
_host_index=_host_index
|
|
1989
|
+
)
|
|
1990
|
+
|
|
1991
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1992
|
+
'200': "MyPermissionsResponse",
|
|
1993
|
+
}
|
|
1994
|
+
response_data = self.api_client.call_api(
|
|
1995
|
+
*_param,
|
|
1996
|
+
_request_timeout=_request_timeout
|
|
1997
|
+
)
|
|
1998
|
+
response_data.read()
|
|
1999
|
+
return self.api_client.response_deserialize(
|
|
2000
|
+
response_data=response_data,
|
|
2001
|
+
response_types_map=_response_types_map,
|
|
2002
|
+
)
|
|
2003
|
+
|
|
2004
|
+
|
|
2005
|
+
@validate_call
|
|
2006
|
+
def my_permissions_without_preload_content(
|
|
2007
|
+
self,
|
|
2008
|
+
service_feature_content_guard_href: StrictStr,
|
|
2009
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2010
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2011
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2012
|
+
_request_timeout: Union[
|
|
2013
|
+
None,
|
|
2014
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2015
|
+
Tuple[
|
|
2016
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2017
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2018
|
+
]
|
|
2019
|
+
] = None,
|
|
2020
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2021
|
+
_content_type: Optional[StrictStr] = None,
|
|
2022
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2023
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2024
|
+
) -> RESTResponseType:
|
|
2025
|
+
"""List user permissions
|
|
2026
|
+
|
|
2027
|
+
List permissions available to the current user on this object.
|
|
2028
|
+
|
|
2029
|
+
:param service_feature_content_guard_href: (required)
|
|
2030
|
+
:type service_feature_content_guard_href: str
|
|
2031
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2032
|
+
:type x_task_diagnostics: List[str]
|
|
2033
|
+
:param fields: A list of fields to include in the response.
|
|
2034
|
+
:type fields: List[str]
|
|
2035
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
2036
|
+
:type exclude_fields: List[str]
|
|
2037
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2038
|
+
number provided, it will be total request
|
|
2039
|
+
timeout. It can also be a pair (tuple) of
|
|
2040
|
+
(connection, read) timeouts.
|
|
2041
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2042
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2043
|
+
request; this effectively ignores the
|
|
2044
|
+
authentication in the spec for a single request.
|
|
2045
|
+
:type _request_auth: dict, optional
|
|
2046
|
+
:param _content_type: force content-type for the request.
|
|
2047
|
+
:type _content_type: str, Optional
|
|
2048
|
+
:param _headers: set to override the headers for a single
|
|
2049
|
+
request; this effectively ignores the headers
|
|
2050
|
+
in the spec for a single request.
|
|
2051
|
+
:type _headers: dict, optional
|
|
2052
|
+
:param _host_index: set to override the host_index for a single
|
|
2053
|
+
request; this effectively ignores the host_index
|
|
2054
|
+
in the spec for a single request.
|
|
2055
|
+
:type _host_index: int, optional
|
|
2056
|
+
:return: Returns the result object.
|
|
2057
|
+
""" # noqa: E501
|
|
2058
|
+
|
|
2059
|
+
_param = self._my_permissions_serialize(
|
|
2060
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
2061
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2062
|
+
fields=fields,
|
|
2063
|
+
exclude_fields=exclude_fields,
|
|
2064
|
+
_request_auth=_request_auth,
|
|
2065
|
+
_content_type=_content_type,
|
|
2066
|
+
_headers=_headers,
|
|
2067
|
+
_host_index=_host_index
|
|
2068
|
+
)
|
|
2069
|
+
|
|
2070
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2071
|
+
'200': "MyPermissionsResponse",
|
|
2072
|
+
}
|
|
2073
|
+
response_data = self.api_client.call_api(
|
|
2074
|
+
*_param,
|
|
2075
|
+
_request_timeout=_request_timeout
|
|
2076
|
+
)
|
|
2077
|
+
return response_data.response
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
def _my_permissions_serialize(
|
|
2081
|
+
self,
|
|
2082
|
+
service_feature_content_guard_href,
|
|
2083
|
+
x_task_diagnostics,
|
|
2084
|
+
fields,
|
|
2085
|
+
exclude_fields,
|
|
2086
|
+
_request_auth,
|
|
2087
|
+
_content_type,
|
|
2088
|
+
_headers,
|
|
2089
|
+
_host_index,
|
|
2090
|
+
) -> RequestSerialized:
|
|
2091
|
+
|
|
2092
|
+
_host = None
|
|
2093
|
+
|
|
2094
|
+
_collection_formats: Dict[str, str] = {
|
|
2095
|
+
'X-Task-Diagnostics': 'csv',
|
|
2096
|
+
'fields': 'multi',
|
|
2097
|
+
'exclude_fields': 'multi',
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
_path_params: Dict[str, str] = {}
|
|
2101
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2102
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2103
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2104
|
+
_files: Dict[
|
|
2105
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2106
|
+
] = {}
|
|
2107
|
+
_body_params: Optional[bytes] = None
|
|
2108
|
+
|
|
2109
|
+
# process the path parameters
|
|
2110
|
+
if service_feature_content_guard_href is not None:
|
|
2111
|
+
_path_params['service_feature_content_guard_href'] = service_feature_content_guard_href
|
|
2112
|
+
# process the query parameters
|
|
2113
|
+
if fields is not None:
|
|
2114
|
+
|
|
2115
|
+
_query_params.append(('fields', fields))
|
|
2116
|
+
|
|
2117
|
+
if exclude_fields is not None:
|
|
2118
|
+
|
|
2119
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
2120
|
+
|
|
2121
|
+
# process the header parameters
|
|
2122
|
+
if x_task_diagnostics is not None:
|
|
2123
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2124
|
+
# process the form parameters
|
|
2125
|
+
# process the body parameter
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
# set the HTTP header `Accept`
|
|
2129
|
+
if 'Accept' not in _header_params:
|
|
2130
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2131
|
+
[
|
|
2132
|
+
'application/json'
|
|
2133
|
+
]
|
|
2134
|
+
)
|
|
2135
|
+
|
|
2136
|
+
|
|
2137
|
+
# authentication setting
|
|
2138
|
+
_auth_settings: List[str] = [
|
|
2139
|
+
'json_header_remote_authentication',
|
|
2140
|
+
'basicAuth',
|
|
2141
|
+
'cookieAuth'
|
|
2142
|
+
]
|
|
2143
|
+
|
|
2144
|
+
return self.api_client.param_serialize(
|
|
2145
|
+
method='GET',
|
|
2146
|
+
resource_path='{service_feature_content_guard_href}my_permissions/',
|
|
2147
|
+
path_params=_path_params,
|
|
2148
|
+
query_params=_query_params,
|
|
2149
|
+
header_params=_header_params,
|
|
2150
|
+
body=_body_params,
|
|
2151
|
+
post_params=_form_params,
|
|
2152
|
+
files=_files,
|
|
2153
|
+
auth_settings=_auth_settings,
|
|
2154
|
+
collection_formats=_collection_formats,
|
|
2155
|
+
_host=_host,
|
|
2156
|
+
_request_auth=_request_auth
|
|
2157
|
+
)
|
|
2158
|
+
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
@validate_call
|
|
2163
|
+
def partial_update(
|
|
2164
|
+
self,
|
|
2165
|
+
service_feature_content_guard_href: StrictStr,
|
|
2166
|
+
patchedservice_feature_content_guard: PatchedserviceFeatureContentGuard,
|
|
2167
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2168
|
+
_request_timeout: Union[
|
|
2169
|
+
None,
|
|
2170
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2171
|
+
Tuple[
|
|
2172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2173
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2174
|
+
]
|
|
2175
|
+
] = None,
|
|
2176
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2177
|
+
_content_type: Optional[StrictStr] = None,
|
|
2178
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2179
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2180
|
+
) -> ServiceFeatureContentGuardResponse:
|
|
2181
|
+
"""Update a feature content guard
|
|
2182
|
+
|
|
2183
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
2184
|
+
|
|
2185
|
+
:param service_feature_content_guard_href: (required)
|
|
2186
|
+
:type service_feature_content_guard_href: str
|
|
2187
|
+
:param patchedservice_feature_content_guard: (required)
|
|
2188
|
+
:type patchedservice_feature_content_guard: PatchedserviceFeatureContentGuard
|
|
2189
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2190
|
+
:type x_task_diagnostics: List[str]
|
|
2191
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2192
|
+
number provided, it will be total request
|
|
2193
|
+
timeout. It can also be a pair (tuple) of
|
|
2194
|
+
(connection, read) timeouts.
|
|
2195
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2196
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2197
|
+
request; this effectively ignores the
|
|
2198
|
+
authentication in the spec for a single request.
|
|
2199
|
+
:type _request_auth: dict, optional
|
|
2200
|
+
:param _content_type: force content-type for the request.
|
|
2201
|
+
:type _content_type: str, Optional
|
|
2202
|
+
:param _headers: set to override the headers for a single
|
|
2203
|
+
request; this effectively ignores the headers
|
|
2204
|
+
in the spec for a single request.
|
|
2205
|
+
:type _headers: dict, optional
|
|
2206
|
+
:param _host_index: set to override the host_index for a single
|
|
2207
|
+
request; this effectively ignores the host_index
|
|
2208
|
+
in the spec for a single request.
|
|
2209
|
+
:type _host_index: int, optional
|
|
2210
|
+
:return: Returns the result object.
|
|
2211
|
+
""" # noqa: E501
|
|
2212
|
+
|
|
2213
|
+
_param = self._partial_update_serialize(
|
|
2214
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
2215
|
+
patchedservice_feature_content_guard=patchedservice_feature_content_guard,
|
|
2216
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2217
|
+
_request_auth=_request_auth,
|
|
2218
|
+
_content_type=_content_type,
|
|
2219
|
+
_headers=_headers,
|
|
2220
|
+
_host_index=_host_index
|
|
2221
|
+
)
|
|
2222
|
+
|
|
2223
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2224
|
+
'200': "ServiceFeatureContentGuardResponse",
|
|
2225
|
+
}
|
|
2226
|
+
response_data = self.api_client.call_api(
|
|
2227
|
+
*_param,
|
|
2228
|
+
_request_timeout=_request_timeout
|
|
2229
|
+
)
|
|
2230
|
+
response_data.read()
|
|
2231
|
+
return self.api_client.response_deserialize(
|
|
2232
|
+
response_data=response_data,
|
|
2233
|
+
response_types_map=_response_types_map,
|
|
2234
|
+
).data
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
@validate_call
|
|
2238
|
+
def partial_update_with_http_info(
|
|
2239
|
+
self,
|
|
2240
|
+
service_feature_content_guard_href: StrictStr,
|
|
2241
|
+
patchedservice_feature_content_guard: PatchedserviceFeatureContentGuard,
|
|
2242
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2243
|
+
_request_timeout: Union[
|
|
2244
|
+
None,
|
|
2245
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2246
|
+
Tuple[
|
|
2247
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2248
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2249
|
+
]
|
|
2250
|
+
] = None,
|
|
2251
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2252
|
+
_content_type: Optional[StrictStr] = None,
|
|
2253
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2254
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2255
|
+
) -> ApiResponse[ServiceFeatureContentGuardResponse]:
|
|
2256
|
+
"""Update a feature content guard
|
|
2257
|
+
|
|
2258
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
2259
|
+
|
|
2260
|
+
:param service_feature_content_guard_href: (required)
|
|
2261
|
+
:type service_feature_content_guard_href: str
|
|
2262
|
+
:param patchedservice_feature_content_guard: (required)
|
|
2263
|
+
:type patchedservice_feature_content_guard: PatchedserviceFeatureContentGuard
|
|
2264
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2265
|
+
:type x_task_diagnostics: List[str]
|
|
2266
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2267
|
+
number provided, it will be total request
|
|
2268
|
+
timeout. It can also be a pair (tuple) of
|
|
2269
|
+
(connection, read) timeouts.
|
|
2270
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2271
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2272
|
+
request; this effectively ignores the
|
|
2273
|
+
authentication in the spec for a single request.
|
|
2274
|
+
:type _request_auth: dict, optional
|
|
2275
|
+
:param _content_type: force content-type for the request.
|
|
2276
|
+
:type _content_type: str, Optional
|
|
2277
|
+
:param _headers: set to override the headers for a single
|
|
2278
|
+
request; this effectively ignores the headers
|
|
2279
|
+
in the spec for a single request.
|
|
2280
|
+
:type _headers: dict, optional
|
|
2281
|
+
:param _host_index: set to override the host_index for a single
|
|
2282
|
+
request; this effectively ignores the host_index
|
|
2283
|
+
in the spec for a single request.
|
|
2284
|
+
:type _host_index: int, optional
|
|
2285
|
+
:return: Returns the result object.
|
|
2286
|
+
""" # noqa: E501
|
|
2287
|
+
|
|
2288
|
+
_param = self._partial_update_serialize(
|
|
2289
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
2290
|
+
patchedservice_feature_content_guard=patchedservice_feature_content_guard,
|
|
2291
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2292
|
+
_request_auth=_request_auth,
|
|
2293
|
+
_content_type=_content_type,
|
|
2294
|
+
_headers=_headers,
|
|
2295
|
+
_host_index=_host_index
|
|
2296
|
+
)
|
|
2297
|
+
|
|
2298
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2299
|
+
'200': "ServiceFeatureContentGuardResponse",
|
|
2300
|
+
}
|
|
2301
|
+
response_data = self.api_client.call_api(
|
|
2302
|
+
*_param,
|
|
2303
|
+
_request_timeout=_request_timeout
|
|
2304
|
+
)
|
|
2305
|
+
response_data.read()
|
|
2306
|
+
return self.api_client.response_deserialize(
|
|
2307
|
+
response_data=response_data,
|
|
2308
|
+
response_types_map=_response_types_map,
|
|
2309
|
+
)
|
|
2310
|
+
|
|
2311
|
+
|
|
2312
|
+
@validate_call
|
|
2313
|
+
def partial_update_without_preload_content(
|
|
2314
|
+
self,
|
|
2315
|
+
service_feature_content_guard_href: StrictStr,
|
|
2316
|
+
patchedservice_feature_content_guard: PatchedserviceFeatureContentGuard,
|
|
2317
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2318
|
+
_request_timeout: Union[
|
|
2319
|
+
None,
|
|
2320
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2321
|
+
Tuple[
|
|
2322
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2323
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2324
|
+
]
|
|
2325
|
+
] = None,
|
|
2326
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2327
|
+
_content_type: Optional[StrictStr] = None,
|
|
2328
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2329
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2330
|
+
) -> RESTResponseType:
|
|
2331
|
+
"""Update a feature content guard
|
|
2332
|
+
|
|
2333
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
2334
|
+
|
|
2335
|
+
:param service_feature_content_guard_href: (required)
|
|
2336
|
+
:type service_feature_content_guard_href: str
|
|
2337
|
+
:param patchedservice_feature_content_guard: (required)
|
|
2338
|
+
:type patchedservice_feature_content_guard: PatchedserviceFeatureContentGuard
|
|
2339
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2340
|
+
:type x_task_diagnostics: List[str]
|
|
2341
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2342
|
+
number provided, it will be total request
|
|
2343
|
+
timeout. It can also be a pair (tuple) of
|
|
2344
|
+
(connection, read) timeouts.
|
|
2345
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2346
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2347
|
+
request; this effectively ignores the
|
|
2348
|
+
authentication in the spec for a single request.
|
|
2349
|
+
:type _request_auth: dict, optional
|
|
2350
|
+
:param _content_type: force content-type for the request.
|
|
2351
|
+
:type _content_type: str, Optional
|
|
2352
|
+
:param _headers: set to override the headers for a single
|
|
2353
|
+
request; this effectively ignores the headers
|
|
2354
|
+
in the spec for a single request.
|
|
2355
|
+
:type _headers: dict, optional
|
|
2356
|
+
:param _host_index: set to override the host_index for a single
|
|
2357
|
+
request; this effectively ignores the host_index
|
|
2358
|
+
in the spec for a single request.
|
|
2359
|
+
:type _host_index: int, optional
|
|
2360
|
+
:return: Returns the result object.
|
|
2361
|
+
""" # noqa: E501
|
|
2362
|
+
|
|
2363
|
+
_param = self._partial_update_serialize(
|
|
2364
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
2365
|
+
patchedservice_feature_content_guard=patchedservice_feature_content_guard,
|
|
2366
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2367
|
+
_request_auth=_request_auth,
|
|
2368
|
+
_content_type=_content_type,
|
|
2369
|
+
_headers=_headers,
|
|
2370
|
+
_host_index=_host_index
|
|
2371
|
+
)
|
|
2372
|
+
|
|
2373
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2374
|
+
'200': "ServiceFeatureContentGuardResponse",
|
|
2375
|
+
}
|
|
2376
|
+
response_data = self.api_client.call_api(
|
|
2377
|
+
*_param,
|
|
2378
|
+
_request_timeout=_request_timeout
|
|
2379
|
+
)
|
|
2380
|
+
return response_data.response
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
def _partial_update_serialize(
|
|
2384
|
+
self,
|
|
2385
|
+
service_feature_content_guard_href,
|
|
2386
|
+
patchedservice_feature_content_guard,
|
|
2387
|
+
x_task_diagnostics,
|
|
2388
|
+
_request_auth,
|
|
2389
|
+
_content_type,
|
|
2390
|
+
_headers,
|
|
2391
|
+
_host_index,
|
|
2392
|
+
) -> RequestSerialized:
|
|
2393
|
+
|
|
2394
|
+
_host = None
|
|
2395
|
+
|
|
2396
|
+
_collection_formats: Dict[str, str] = {
|
|
2397
|
+
'X-Task-Diagnostics': 'csv',
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
_path_params: Dict[str, str] = {}
|
|
2401
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2402
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2403
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2404
|
+
_files: Dict[
|
|
2405
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2406
|
+
] = {}
|
|
2407
|
+
_body_params: Optional[bytes] = None
|
|
2408
|
+
|
|
2409
|
+
# process the path parameters
|
|
2410
|
+
if service_feature_content_guard_href is not None:
|
|
2411
|
+
_path_params['service_feature_content_guard_href'] = service_feature_content_guard_href
|
|
2412
|
+
# process the query parameters
|
|
2413
|
+
# process the header parameters
|
|
2414
|
+
if x_task_diagnostics is not None:
|
|
2415
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2416
|
+
# process the form parameters
|
|
2417
|
+
# process the body parameter
|
|
2418
|
+
if patchedservice_feature_content_guard is not None:
|
|
2419
|
+
_body_params = patchedservice_feature_content_guard
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
# set the HTTP header `Accept`
|
|
2423
|
+
if 'Accept' not in _header_params:
|
|
2424
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2425
|
+
[
|
|
2426
|
+
'application/json'
|
|
2427
|
+
]
|
|
2428
|
+
)
|
|
2429
|
+
|
|
2430
|
+
# set the HTTP header `Content-Type`
|
|
2431
|
+
if _content_type:
|
|
2432
|
+
_header_params['Content-Type'] = _content_type
|
|
2433
|
+
else:
|
|
2434
|
+
_default_content_type = (
|
|
2435
|
+
self.api_client.select_header_content_type(
|
|
2436
|
+
[
|
|
2437
|
+
'application/json',
|
|
2438
|
+
'application/x-www-form-urlencoded',
|
|
2439
|
+
'multipart/form-data'
|
|
2440
|
+
]
|
|
2441
|
+
)
|
|
2442
|
+
)
|
|
2443
|
+
if _default_content_type is not None:
|
|
2444
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2445
|
+
|
|
2446
|
+
# authentication setting
|
|
2447
|
+
_auth_settings: List[str] = [
|
|
2448
|
+
'json_header_remote_authentication',
|
|
2449
|
+
'basicAuth',
|
|
2450
|
+
'cookieAuth'
|
|
2451
|
+
]
|
|
2452
|
+
|
|
2453
|
+
return self.api_client.param_serialize(
|
|
2454
|
+
method='PATCH',
|
|
2455
|
+
resource_path='{service_feature_content_guard_href}',
|
|
2456
|
+
path_params=_path_params,
|
|
2457
|
+
query_params=_query_params,
|
|
2458
|
+
header_params=_header_params,
|
|
2459
|
+
body=_body_params,
|
|
2460
|
+
post_params=_form_params,
|
|
2461
|
+
files=_files,
|
|
2462
|
+
auth_settings=_auth_settings,
|
|
2463
|
+
collection_formats=_collection_formats,
|
|
2464
|
+
_host=_host,
|
|
2465
|
+
_request_auth=_request_auth
|
|
2466
|
+
)
|
|
2467
|
+
|
|
2468
|
+
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
@validate_call
|
|
2472
|
+
def read(
|
|
2473
|
+
self,
|
|
2474
|
+
service_feature_content_guard_href: StrictStr,
|
|
2475
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2476
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2477
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2478
|
+
_request_timeout: Union[
|
|
2479
|
+
None,
|
|
2480
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2481
|
+
Tuple[
|
|
2482
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2483
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2484
|
+
]
|
|
2485
|
+
] = None,
|
|
2486
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2487
|
+
_content_type: Optional[StrictStr] = None,
|
|
2488
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2489
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2490
|
+
) -> ServiceFeatureContentGuardResponse:
|
|
2491
|
+
"""Inspect a feature content guard
|
|
2492
|
+
|
|
2493
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
2494
|
+
|
|
2495
|
+
:param service_feature_content_guard_href: (required)
|
|
2496
|
+
:type service_feature_content_guard_href: str
|
|
2497
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2498
|
+
:type x_task_diagnostics: List[str]
|
|
2499
|
+
:param fields: A list of fields to include in the response.
|
|
2500
|
+
:type fields: List[str]
|
|
2501
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
2502
|
+
:type exclude_fields: List[str]
|
|
2503
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2504
|
+
number provided, it will be total request
|
|
2505
|
+
timeout. It can also be a pair (tuple) of
|
|
2506
|
+
(connection, read) timeouts.
|
|
2507
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2508
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2509
|
+
request; this effectively ignores the
|
|
2510
|
+
authentication in the spec for a single request.
|
|
2511
|
+
:type _request_auth: dict, optional
|
|
2512
|
+
:param _content_type: force content-type for the request.
|
|
2513
|
+
:type _content_type: str, Optional
|
|
2514
|
+
:param _headers: set to override the headers for a single
|
|
2515
|
+
request; this effectively ignores the headers
|
|
2516
|
+
in the spec for a single request.
|
|
2517
|
+
:type _headers: dict, optional
|
|
2518
|
+
:param _host_index: set to override the host_index for a single
|
|
2519
|
+
request; this effectively ignores the host_index
|
|
2520
|
+
in the spec for a single request.
|
|
2521
|
+
:type _host_index: int, optional
|
|
2522
|
+
:return: Returns the result object.
|
|
2523
|
+
""" # noqa: E501
|
|
2524
|
+
|
|
2525
|
+
_param = self._read_serialize(
|
|
2526
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
2527
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2528
|
+
fields=fields,
|
|
2529
|
+
exclude_fields=exclude_fields,
|
|
2530
|
+
_request_auth=_request_auth,
|
|
2531
|
+
_content_type=_content_type,
|
|
2532
|
+
_headers=_headers,
|
|
2533
|
+
_host_index=_host_index
|
|
2534
|
+
)
|
|
2535
|
+
|
|
2536
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2537
|
+
'200': "ServiceFeatureContentGuardResponse",
|
|
2538
|
+
}
|
|
2539
|
+
response_data = self.api_client.call_api(
|
|
2540
|
+
*_param,
|
|
2541
|
+
_request_timeout=_request_timeout
|
|
2542
|
+
)
|
|
2543
|
+
response_data.read()
|
|
2544
|
+
return self.api_client.response_deserialize(
|
|
2545
|
+
response_data=response_data,
|
|
2546
|
+
response_types_map=_response_types_map,
|
|
2547
|
+
).data
|
|
2548
|
+
|
|
2549
|
+
|
|
2550
|
+
@validate_call
|
|
2551
|
+
def read_with_http_info(
|
|
2552
|
+
self,
|
|
2553
|
+
service_feature_content_guard_href: StrictStr,
|
|
2554
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2555
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2556
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2557
|
+
_request_timeout: Union[
|
|
2558
|
+
None,
|
|
2559
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2560
|
+
Tuple[
|
|
2561
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2562
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2563
|
+
]
|
|
2564
|
+
] = None,
|
|
2565
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2566
|
+
_content_type: Optional[StrictStr] = None,
|
|
2567
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2568
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2569
|
+
) -> ApiResponse[ServiceFeatureContentGuardResponse]:
|
|
2570
|
+
"""Inspect a feature content guard
|
|
2571
|
+
|
|
2572
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
2573
|
+
|
|
2574
|
+
:param service_feature_content_guard_href: (required)
|
|
2575
|
+
:type service_feature_content_guard_href: str
|
|
2576
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2577
|
+
:type x_task_diagnostics: List[str]
|
|
2578
|
+
:param fields: A list of fields to include in the response.
|
|
2579
|
+
:type fields: List[str]
|
|
2580
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
2581
|
+
:type exclude_fields: List[str]
|
|
2582
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2583
|
+
number provided, it will be total request
|
|
2584
|
+
timeout. It can also be a pair (tuple) of
|
|
2585
|
+
(connection, read) timeouts.
|
|
2586
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2587
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2588
|
+
request; this effectively ignores the
|
|
2589
|
+
authentication in the spec for a single request.
|
|
2590
|
+
:type _request_auth: dict, optional
|
|
2591
|
+
:param _content_type: force content-type for the request.
|
|
2592
|
+
:type _content_type: str, Optional
|
|
2593
|
+
:param _headers: set to override the headers for a single
|
|
2594
|
+
request; this effectively ignores the headers
|
|
2595
|
+
in the spec for a single request.
|
|
2596
|
+
:type _headers: dict, optional
|
|
2597
|
+
:param _host_index: set to override the host_index for a single
|
|
2598
|
+
request; this effectively ignores the host_index
|
|
2599
|
+
in the spec for a single request.
|
|
2600
|
+
:type _host_index: int, optional
|
|
2601
|
+
:return: Returns the result object.
|
|
2602
|
+
""" # noqa: E501
|
|
2603
|
+
|
|
2604
|
+
_param = self._read_serialize(
|
|
2605
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
2606
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2607
|
+
fields=fields,
|
|
2608
|
+
exclude_fields=exclude_fields,
|
|
2609
|
+
_request_auth=_request_auth,
|
|
2610
|
+
_content_type=_content_type,
|
|
2611
|
+
_headers=_headers,
|
|
2612
|
+
_host_index=_host_index
|
|
2613
|
+
)
|
|
2614
|
+
|
|
2615
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2616
|
+
'200': "ServiceFeatureContentGuardResponse",
|
|
2617
|
+
}
|
|
2618
|
+
response_data = self.api_client.call_api(
|
|
2619
|
+
*_param,
|
|
2620
|
+
_request_timeout=_request_timeout
|
|
2621
|
+
)
|
|
2622
|
+
response_data.read()
|
|
2623
|
+
return self.api_client.response_deserialize(
|
|
2624
|
+
response_data=response_data,
|
|
2625
|
+
response_types_map=_response_types_map,
|
|
2626
|
+
)
|
|
2627
|
+
|
|
2628
|
+
|
|
2629
|
+
@validate_call
|
|
2630
|
+
def read_without_preload_content(
|
|
2631
|
+
self,
|
|
2632
|
+
service_feature_content_guard_href: StrictStr,
|
|
2633
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2634
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2635
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2636
|
+
_request_timeout: Union[
|
|
2637
|
+
None,
|
|
2638
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2639
|
+
Tuple[
|
|
2640
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2641
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2642
|
+
]
|
|
2643
|
+
] = None,
|
|
2644
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2645
|
+
_content_type: Optional[StrictStr] = None,
|
|
2646
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2647
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2648
|
+
) -> RESTResponseType:
|
|
2649
|
+
"""Inspect a feature content guard
|
|
2650
|
+
|
|
2651
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
2652
|
+
|
|
2653
|
+
:param service_feature_content_guard_href: (required)
|
|
2654
|
+
:type service_feature_content_guard_href: str
|
|
2655
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2656
|
+
:type x_task_diagnostics: List[str]
|
|
2657
|
+
:param fields: A list of fields to include in the response.
|
|
2658
|
+
:type fields: List[str]
|
|
2659
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
2660
|
+
:type exclude_fields: List[str]
|
|
2661
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2662
|
+
number provided, it will be total request
|
|
2663
|
+
timeout. It can also be a pair (tuple) of
|
|
2664
|
+
(connection, read) timeouts.
|
|
2665
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2666
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2667
|
+
request; this effectively ignores the
|
|
2668
|
+
authentication in the spec for a single request.
|
|
2669
|
+
:type _request_auth: dict, optional
|
|
2670
|
+
:param _content_type: force content-type for the request.
|
|
2671
|
+
:type _content_type: str, Optional
|
|
2672
|
+
:param _headers: set to override the headers for a single
|
|
2673
|
+
request; this effectively ignores the headers
|
|
2674
|
+
in the spec for a single request.
|
|
2675
|
+
:type _headers: dict, optional
|
|
2676
|
+
:param _host_index: set to override the host_index for a single
|
|
2677
|
+
request; this effectively ignores the host_index
|
|
2678
|
+
in the spec for a single request.
|
|
2679
|
+
:type _host_index: int, optional
|
|
2680
|
+
:return: Returns the result object.
|
|
2681
|
+
""" # noqa: E501
|
|
2682
|
+
|
|
2683
|
+
_param = self._read_serialize(
|
|
2684
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
2685
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2686
|
+
fields=fields,
|
|
2687
|
+
exclude_fields=exclude_fields,
|
|
2688
|
+
_request_auth=_request_auth,
|
|
2689
|
+
_content_type=_content_type,
|
|
2690
|
+
_headers=_headers,
|
|
2691
|
+
_host_index=_host_index
|
|
2692
|
+
)
|
|
2693
|
+
|
|
2694
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2695
|
+
'200': "ServiceFeatureContentGuardResponse",
|
|
2696
|
+
}
|
|
2697
|
+
response_data = self.api_client.call_api(
|
|
2698
|
+
*_param,
|
|
2699
|
+
_request_timeout=_request_timeout
|
|
2700
|
+
)
|
|
2701
|
+
return response_data.response
|
|
2702
|
+
|
|
2703
|
+
|
|
2704
|
+
def _read_serialize(
|
|
2705
|
+
self,
|
|
2706
|
+
service_feature_content_guard_href,
|
|
2707
|
+
x_task_diagnostics,
|
|
2708
|
+
fields,
|
|
2709
|
+
exclude_fields,
|
|
2710
|
+
_request_auth,
|
|
2711
|
+
_content_type,
|
|
2712
|
+
_headers,
|
|
2713
|
+
_host_index,
|
|
2714
|
+
) -> RequestSerialized:
|
|
2715
|
+
|
|
2716
|
+
_host = None
|
|
2717
|
+
|
|
2718
|
+
_collection_formats: Dict[str, str] = {
|
|
2719
|
+
'X-Task-Diagnostics': 'csv',
|
|
2720
|
+
'fields': 'multi',
|
|
2721
|
+
'exclude_fields': 'multi',
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
_path_params: Dict[str, str] = {}
|
|
2725
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2726
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2727
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2728
|
+
_files: Dict[
|
|
2729
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2730
|
+
] = {}
|
|
2731
|
+
_body_params: Optional[bytes] = None
|
|
2732
|
+
|
|
2733
|
+
# process the path parameters
|
|
2734
|
+
if service_feature_content_guard_href is not None:
|
|
2735
|
+
_path_params['service_feature_content_guard_href'] = service_feature_content_guard_href
|
|
2736
|
+
# process the query parameters
|
|
2737
|
+
if fields is not None:
|
|
2738
|
+
|
|
2739
|
+
_query_params.append(('fields', fields))
|
|
2740
|
+
|
|
2741
|
+
if exclude_fields is not None:
|
|
2742
|
+
|
|
2743
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
2744
|
+
|
|
2745
|
+
# process the header parameters
|
|
2746
|
+
if x_task_diagnostics is not None:
|
|
2747
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2748
|
+
# process the form parameters
|
|
2749
|
+
# process the body parameter
|
|
2750
|
+
|
|
2751
|
+
|
|
2752
|
+
# set the HTTP header `Accept`
|
|
2753
|
+
if 'Accept' not in _header_params:
|
|
2754
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2755
|
+
[
|
|
2756
|
+
'application/json'
|
|
2757
|
+
]
|
|
2758
|
+
)
|
|
2759
|
+
|
|
2760
|
+
|
|
2761
|
+
# authentication setting
|
|
2762
|
+
_auth_settings: List[str] = [
|
|
2763
|
+
'json_header_remote_authentication',
|
|
2764
|
+
'basicAuth',
|
|
2765
|
+
'cookieAuth'
|
|
2766
|
+
]
|
|
2767
|
+
|
|
2768
|
+
return self.api_client.param_serialize(
|
|
2769
|
+
method='GET',
|
|
2770
|
+
resource_path='{service_feature_content_guard_href}',
|
|
2771
|
+
path_params=_path_params,
|
|
2772
|
+
query_params=_query_params,
|
|
2773
|
+
header_params=_header_params,
|
|
2774
|
+
body=_body_params,
|
|
2775
|
+
post_params=_form_params,
|
|
2776
|
+
files=_files,
|
|
2777
|
+
auth_settings=_auth_settings,
|
|
2778
|
+
collection_formats=_collection_formats,
|
|
2779
|
+
_host=_host,
|
|
2780
|
+
_request_auth=_request_auth
|
|
2781
|
+
)
|
|
2782
|
+
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
|
|
2786
|
+
@validate_call
|
|
2787
|
+
def remove_role(
|
|
2788
|
+
self,
|
|
2789
|
+
service_feature_content_guard_href: StrictStr,
|
|
2790
|
+
nested_role: NestedRole,
|
|
2791
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2792
|
+
_request_timeout: Union[
|
|
2793
|
+
None,
|
|
2794
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2795
|
+
Tuple[
|
|
2796
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2797
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2798
|
+
]
|
|
2799
|
+
] = None,
|
|
2800
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2801
|
+
_content_type: Optional[StrictStr] = None,
|
|
2802
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2803
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2804
|
+
) -> NestedRoleResponse:
|
|
2805
|
+
"""Remove a role
|
|
2806
|
+
|
|
2807
|
+
Remove a role for this object from users/groups.
|
|
2808
|
+
|
|
2809
|
+
:param service_feature_content_guard_href: (required)
|
|
2810
|
+
:type service_feature_content_guard_href: str
|
|
2811
|
+
:param nested_role: (required)
|
|
2812
|
+
:type nested_role: NestedRole
|
|
2813
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2814
|
+
:type x_task_diagnostics: List[str]
|
|
2815
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2816
|
+
number provided, it will be total request
|
|
2817
|
+
timeout. It can also be a pair (tuple) of
|
|
2818
|
+
(connection, read) timeouts.
|
|
2819
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2820
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2821
|
+
request; this effectively ignores the
|
|
2822
|
+
authentication in the spec for a single request.
|
|
2823
|
+
:type _request_auth: dict, optional
|
|
2824
|
+
:param _content_type: force content-type for the request.
|
|
2825
|
+
:type _content_type: str, Optional
|
|
2826
|
+
:param _headers: set to override the headers for a single
|
|
2827
|
+
request; this effectively ignores the headers
|
|
2828
|
+
in the spec for a single request.
|
|
2829
|
+
:type _headers: dict, optional
|
|
2830
|
+
:param _host_index: set to override the host_index for a single
|
|
2831
|
+
request; this effectively ignores the host_index
|
|
2832
|
+
in the spec for a single request.
|
|
2833
|
+
:type _host_index: int, optional
|
|
2834
|
+
:return: Returns the result object.
|
|
2835
|
+
""" # noqa: E501
|
|
2836
|
+
|
|
2837
|
+
_param = self._remove_role_serialize(
|
|
2838
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
2839
|
+
nested_role=nested_role,
|
|
2840
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2841
|
+
_request_auth=_request_auth,
|
|
2842
|
+
_content_type=_content_type,
|
|
2843
|
+
_headers=_headers,
|
|
2844
|
+
_host_index=_host_index
|
|
2845
|
+
)
|
|
2846
|
+
|
|
2847
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2848
|
+
'201': "NestedRoleResponse",
|
|
2849
|
+
}
|
|
2850
|
+
response_data = self.api_client.call_api(
|
|
2851
|
+
*_param,
|
|
2852
|
+
_request_timeout=_request_timeout
|
|
2853
|
+
)
|
|
2854
|
+
response_data.read()
|
|
2855
|
+
return self.api_client.response_deserialize(
|
|
2856
|
+
response_data=response_data,
|
|
2857
|
+
response_types_map=_response_types_map,
|
|
2858
|
+
).data
|
|
2859
|
+
|
|
2860
|
+
|
|
2861
|
+
@validate_call
|
|
2862
|
+
def remove_role_with_http_info(
|
|
2863
|
+
self,
|
|
2864
|
+
service_feature_content_guard_href: StrictStr,
|
|
2865
|
+
nested_role: NestedRole,
|
|
2866
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2867
|
+
_request_timeout: Union[
|
|
2868
|
+
None,
|
|
2869
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2870
|
+
Tuple[
|
|
2871
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2872
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2873
|
+
]
|
|
2874
|
+
] = None,
|
|
2875
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2876
|
+
_content_type: Optional[StrictStr] = None,
|
|
2877
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2878
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2879
|
+
) -> ApiResponse[NestedRoleResponse]:
|
|
2880
|
+
"""Remove a role
|
|
2881
|
+
|
|
2882
|
+
Remove a role for this object from users/groups.
|
|
2883
|
+
|
|
2884
|
+
:param service_feature_content_guard_href: (required)
|
|
2885
|
+
:type service_feature_content_guard_href: str
|
|
2886
|
+
:param nested_role: (required)
|
|
2887
|
+
:type nested_role: NestedRole
|
|
2888
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2889
|
+
:type x_task_diagnostics: List[str]
|
|
2890
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2891
|
+
number provided, it will be total request
|
|
2892
|
+
timeout. It can also be a pair (tuple) of
|
|
2893
|
+
(connection, read) timeouts.
|
|
2894
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2895
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2896
|
+
request; this effectively ignores the
|
|
2897
|
+
authentication in the spec for a single request.
|
|
2898
|
+
:type _request_auth: dict, optional
|
|
2899
|
+
:param _content_type: force content-type for the request.
|
|
2900
|
+
:type _content_type: str, Optional
|
|
2901
|
+
:param _headers: set to override the headers for a single
|
|
2902
|
+
request; this effectively ignores the headers
|
|
2903
|
+
in the spec for a single request.
|
|
2904
|
+
:type _headers: dict, optional
|
|
2905
|
+
:param _host_index: set to override the host_index for a single
|
|
2906
|
+
request; this effectively ignores the host_index
|
|
2907
|
+
in the spec for a single request.
|
|
2908
|
+
:type _host_index: int, optional
|
|
2909
|
+
:return: Returns the result object.
|
|
2910
|
+
""" # noqa: E501
|
|
2911
|
+
|
|
2912
|
+
_param = self._remove_role_serialize(
|
|
2913
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
2914
|
+
nested_role=nested_role,
|
|
2915
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2916
|
+
_request_auth=_request_auth,
|
|
2917
|
+
_content_type=_content_type,
|
|
2918
|
+
_headers=_headers,
|
|
2919
|
+
_host_index=_host_index
|
|
2920
|
+
)
|
|
2921
|
+
|
|
2922
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2923
|
+
'201': "NestedRoleResponse",
|
|
2924
|
+
}
|
|
2925
|
+
response_data = self.api_client.call_api(
|
|
2926
|
+
*_param,
|
|
2927
|
+
_request_timeout=_request_timeout
|
|
2928
|
+
)
|
|
2929
|
+
response_data.read()
|
|
2930
|
+
return self.api_client.response_deserialize(
|
|
2931
|
+
response_data=response_data,
|
|
2932
|
+
response_types_map=_response_types_map,
|
|
2933
|
+
)
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
@validate_call
|
|
2937
|
+
def remove_role_without_preload_content(
|
|
2938
|
+
self,
|
|
2939
|
+
service_feature_content_guard_href: StrictStr,
|
|
2940
|
+
nested_role: NestedRole,
|
|
2941
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2942
|
+
_request_timeout: Union[
|
|
2943
|
+
None,
|
|
2944
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2945
|
+
Tuple[
|
|
2946
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2947
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2948
|
+
]
|
|
2949
|
+
] = None,
|
|
2950
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2951
|
+
_content_type: Optional[StrictStr] = None,
|
|
2952
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2953
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2954
|
+
) -> RESTResponseType:
|
|
2955
|
+
"""Remove a role
|
|
2956
|
+
|
|
2957
|
+
Remove a role for this object from users/groups.
|
|
2958
|
+
|
|
2959
|
+
:param service_feature_content_guard_href: (required)
|
|
2960
|
+
:type service_feature_content_guard_href: str
|
|
2961
|
+
:param nested_role: (required)
|
|
2962
|
+
:type nested_role: NestedRole
|
|
2963
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2964
|
+
:type x_task_diagnostics: List[str]
|
|
2965
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2966
|
+
number provided, it will be total request
|
|
2967
|
+
timeout. It can also be a pair (tuple) of
|
|
2968
|
+
(connection, read) timeouts.
|
|
2969
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2970
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2971
|
+
request; this effectively ignores the
|
|
2972
|
+
authentication in the spec for a single request.
|
|
2973
|
+
:type _request_auth: dict, optional
|
|
2974
|
+
:param _content_type: force content-type for the request.
|
|
2975
|
+
:type _content_type: str, Optional
|
|
2976
|
+
:param _headers: set to override the headers for a single
|
|
2977
|
+
request; this effectively ignores the headers
|
|
2978
|
+
in the spec for a single request.
|
|
2979
|
+
:type _headers: dict, optional
|
|
2980
|
+
:param _host_index: set to override the host_index for a single
|
|
2981
|
+
request; this effectively ignores the host_index
|
|
2982
|
+
in the spec for a single request.
|
|
2983
|
+
:type _host_index: int, optional
|
|
2984
|
+
:return: Returns the result object.
|
|
2985
|
+
""" # noqa: E501
|
|
2986
|
+
|
|
2987
|
+
_param = self._remove_role_serialize(
|
|
2988
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
2989
|
+
nested_role=nested_role,
|
|
2990
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2991
|
+
_request_auth=_request_auth,
|
|
2992
|
+
_content_type=_content_type,
|
|
2993
|
+
_headers=_headers,
|
|
2994
|
+
_host_index=_host_index
|
|
2995
|
+
)
|
|
2996
|
+
|
|
2997
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2998
|
+
'201': "NestedRoleResponse",
|
|
2999
|
+
}
|
|
3000
|
+
response_data = self.api_client.call_api(
|
|
3001
|
+
*_param,
|
|
3002
|
+
_request_timeout=_request_timeout
|
|
3003
|
+
)
|
|
3004
|
+
return response_data.response
|
|
3005
|
+
|
|
3006
|
+
|
|
3007
|
+
def _remove_role_serialize(
|
|
3008
|
+
self,
|
|
3009
|
+
service_feature_content_guard_href,
|
|
3010
|
+
nested_role,
|
|
3011
|
+
x_task_diagnostics,
|
|
3012
|
+
_request_auth,
|
|
3013
|
+
_content_type,
|
|
3014
|
+
_headers,
|
|
3015
|
+
_host_index,
|
|
3016
|
+
) -> RequestSerialized:
|
|
3017
|
+
|
|
3018
|
+
_host = None
|
|
3019
|
+
|
|
3020
|
+
_collection_formats: Dict[str, str] = {
|
|
3021
|
+
'X-Task-Diagnostics': 'csv',
|
|
3022
|
+
}
|
|
3023
|
+
|
|
3024
|
+
_path_params: Dict[str, str] = {}
|
|
3025
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3026
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3027
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3028
|
+
_files: Dict[
|
|
3029
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3030
|
+
] = {}
|
|
3031
|
+
_body_params: Optional[bytes] = None
|
|
3032
|
+
|
|
3033
|
+
# process the path parameters
|
|
3034
|
+
if service_feature_content_guard_href is not None:
|
|
3035
|
+
_path_params['service_feature_content_guard_href'] = service_feature_content_guard_href
|
|
3036
|
+
# process the query parameters
|
|
3037
|
+
# process the header parameters
|
|
3038
|
+
if x_task_diagnostics is not None:
|
|
3039
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3040
|
+
# process the form parameters
|
|
3041
|
+
# process the body parameter
|
|
3042
|
+
if nested_role is not None:
|
|
3043
|
+
_body_params = nested_role
|
|
3044
|
+
|
|
3045
|
+
|
|
3046
|
+
# set the HTTP header `Accept`
|
|
3047
|
+
if 'Accept' not in _header_params:
|
|
3048
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3049
|
+
[
|
|
3050
|
+
'application/json'
|
|
3051
|
+
]
|
|
3052
|
+
)
|
|
3053
|
+
|
|
3054
|
+
# set the HTTP header `Content-Type`
|
|
3055
|
+
if _content_type:
|
|
3056
|
+
_header_params['Content-Type'] = _content_type
|
|
3057
|
+
else:
|
|
3058
|
+
_default_content_type = (
|
|
3059
|
+
self.api_client.select_header_content_type(
|
|
3060
|
+
[
|
|
3061
|
+
'application/json',
|
|
3062
|
+
'application/x-www-form-urlencoded',
|
|
3063
|
+
'multipart/form-data'
|
|
3064
|
+
]
|
|
3065
|
+
)
|
|
3066
|
+
)
|
|
3067
|
+
if _default_content_type is not None:
|
|
3068
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3069
|
+
|
|
3070
|
+
# authentication setting
|
|
3071
|
+
_auth_settings: List[str] = [
|
|
3072
|
+
'json_header_remote_authentication',
|
|
3073
|
+
'basicAuth',
|
|
3074
|
+
'cookieAuth'
|
|
3075
|
+
]
|
|
3076
|
+
|
|
3077
|
+
return self.api_client.param_serialize(
|
|
3078
|
+
method='POST',
|
|
3079
|
+
resource_path='{service_feature_content_guard_href}remove_role/',
|
|
3080
|
+
path_params=_path_params,
|
|
3081
|
+
query_params=_query_params,
|
|
3082
|
+
header_params=_header_params,
|
|
3083
|
+
body=_body_params,
|
|
3084
|
+
post_params=_form_params,
|
|
3085
|
+
files=_files,
|
|
3086
|
+
auth_settings=_auth_settings,
|
|
3087
|
+
collection_formats=_collection_formats,
|
|
3088
|
+
_host=_host,
|
|
3089
|
+
_request_auth=_request_auth
|
|
3090
|
+
)
|
|
3091
|
+
|
|
3092
|
+
|
|
3093
|
+
|
|
3094
|
+
|
|
3095
|
+
@validate_call
|
|
3096
|
+
def update(
|
|
3097
|
+
self,
|
|
3098
|
+
service_feature_content_guard_href: StrictStr,
|
|
3099
|
+
service_feature_content_guard: ServiceFeatureContentGuard,
|
|
3100
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3101
|
+
_request_timeout: Union[
|
|
3102
|
+
None,
|
|
3103
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3104
|
+
Tuple[
|
|
3105
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3106
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3107
|
+
]
|
|
3108
|
+
] = None,
|
|
3109
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3110
|
+
_content_type: Optional[StrictStr] = None,
|
|
3111
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3112
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3113
|
+
) -> ServiceFeatureContentGuardResponse:
|
|
3114
|
+
"""Update a feature content guard
|
|
3115
|
+
|
|
3116
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
3117
|
+
|
|
3118
|
+
:param service_feature_content_guard_href: (required)
|
|
3119
|
+
:type service_feature_content_guard_href: str
|
|
3120
|
+
:param service_feature_content_guard: (required)
|
|
3121
|
+
:type service_feature_content_guard: ServiceFeatureContentGuard
|
|
3122
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3123
|
+
:type x_task_diagnostics: List[str]
|
|
3124
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3125
|
+
number provided, it will be total request
|
|
3126
|
+
timeout. It can also be a pair (tuple) of
|
|
3127
|
+
(connection, read) timeouts.
|
|
3128
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3129
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3130
|
+
request; this effectively ignores the
|
|
3131
|
+
authentication in the spec for a single request.
|
|
3132
|
+
:type _request_auth: dict, optional
|
|
3133
|
+
:param _content_type: force content-type for the request.
|
|
3134
|
+
:type _content_type: str, Optional
|
|
3135
|
+
:param _headers: set to override the headers for a single
|
|
3136
|
+
request; this effectively ignores the headers
|
|
3137
|
+
in the spec for a single request.
|
|
3138
|
+
:type _headers: dict, optional
|
|
3139
|
+
:param _host_index: set to override the host_index for a single
|
|
3140
|
+
request; this effectively ignores the host_index
|
|
3141
|
+
in the spec for a single request.
|
|
3142
|
+
:type _host_index: int, optional
|
|
3143
|
+
:return: Returns the result object.
|
|
3144
|
+
""" # noqa: E501
|
|
3145
|
+
|
|
3146
|
+
_param = self._update_serialize(
|
|
3147
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
3148
|
+
service_feature_content_guard=service_feature_content_guard,
|
|
3149
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3150
|
+
_request_auth=_request_auth,
|
|
3151
|
+
_content_type=_content_type,
|
|
3152
|
+
_headers=_headers,
|
|
3153
|
+
_host_index=_host_index
|
|
3154
|
+
)
|
|
3155
|
+
|
|
3156
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3157
|
+
'200': "ServiceFeatureContentGuardResponse",
|
|
3158
|
+
}
|
|
3159
|
+
response_data = self.api_client.call_api(
|
|
3160
|
+
*_param,
|
|
3161
|
+
_request_timeout=_request_timeout
|
|
3162
|
+
)
|
|
3163
|
+
response_data.read()
|
|
3164
|
+
return self.api_client.response_deserialize(
|
|
3165
|
+
response_data=response_data,
|
|
3166
|
+
response_types_map=_response_types_map,
|
|
3167
|
+
).data
|
|
3168
|
+
|
|
3169
|
+
|
|
3170
|
+
@validate_call
|
|
3171
|
+
def update_with_http_info(
|
|
3172
|
+
self,
|
|
3173
|
+
service_feature_content_guard_href: StrictStr,
|
|
3174
|
+
service_feature_content_guard: ServiceFeatureContentGuard,
|
|
3175
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3176
|
+
_request_timeout: Union[
|
|
3177
|
+
None,
|
|
3178
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3179
|
+
Tuple[
|
|
3180
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3181
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3182
|
+
]
|
|
3183
|
+
] = None,
|
|
3184
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3185
|
+
_content_type: Optional[StrictStr] = None,
|
|
3186
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3187
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3188
|
+
) -> ApiResponse[ServiceFeatureContentGuardResponse]:
|
|
3189
|
+
"""Update a feature content guard
|
|
3190
|
+
|
|
3191
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
3192
|
+
|
|
3193
|
+
:param service_feature_content_guard_href: (required)
|
|
3194
|
+
:type service_feature_content_guard_href: str
|
|
3195
|
+
:param service_feature_content_guard: (required)
|
|
3196
|
+
:type service_feature_content_guard: ServiceFeatureContentGuard
|
|
3197
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3198
|
+
:type x_task_diagnostics: List[str]
|
|
3199
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3200
|
+
number provided, it will be total request
|
|
3201
|
+
timeout. It can also be a pair (tuple) of
|
|
3202
|
+
(connection, read) timeouts.
|
|
3203
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3204
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3205
|
+
request; this effectively ignores the
|
|
3206
|
+
authentication in the spec for a single request.
|
|
3207
|
+
:type _request_auth: dict, optional
|
|
3208
|
+
:param _content_type: force content-type for the request.
|
|
3209
|
+
:type _content_type: str, Optional
|
|
3210
|
+
:param _headers: set to override the headers for a single
|
|
3211
|
+
request; this effectively ignores the headers
|
|
3212
|
+
in the spec for a single request.
|
|
3213
|
+
:type _headers: dict, optional
|
|
3214
|
+
:param _host_index: set to override the host_index for a single
|
|
3215
|
+
request; this effectively ignores the host_index
|
|
3216
|
+
in the spec for a single request.
|
|
3217
|
+
:type _host_index: int, optional
|
|
3218
|
+
:return: Returns the result object.
|
|
3219
|
+
""" # noqa: E501
|
|
3220
|
+
|
|
3221
|
+
_param = self._update_serialize(
|
|
3222
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
3223
|
+
service_feature_content_guard=service_feature_content_guard,
|
|
3224
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3225
|
+
_request_auth=_request_auth,
|
|
3226
|
+
_content_type=_content_type,
|
|
3227
|
+
_headers=_headers,
|
|
3228
|
+
_host_index=_host_index
|
|
3229
|
+
)
|
|
3230
|
+
|
|
3231
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3232
|
+
'200': "ServiceFeatureContentGuardResponse",
|
|
3233
|
+
}
|
|
3234
|
+
response_data = self.api_client.call_api(
|
|
3235
|
+
*_param,
|
|
3236
|
+
_request_timeout=_request_timeout
|
|
3237
|
+
)
|
|
3238
|
+
response_data.read()
|
|
3239
|
+
return self.api_client.response_deserialize(
|
|
3240
|
+
response_data=response_data,
|
|
3241
|
+
response_types_map=_response_types_map,
|
|
3242
|
+
)
|
|
3243
|
+
|
|
3244
|
+
|
|
3245
|
+
@validate_call
|
|
3246
|
+
def update_without_preload_content(
|
|
3247
|
+
self,
|
|
3248
|
+
service_feature_content_guard_href: StrictStr,
|
|
3249
|
+
service_feature_content_guard: ServiceFeatureContentGuard,
|
|
3250
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3251
|
+
_request_timeout: Union[
|
|
3252
|
+
None,
|
|
3253
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3254
|
+
Tuple[
|
|
3255
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3256
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3257
|
+
]
|
|
3258
|
+
] = None,
|
|
3259
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3260
|
+
_content_type: Optional[StrictStr] = None,
|
|
3261
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3262
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3263
|
+
) -> RESTResponseType:
|
|
3264
|
+
"""Update a feature content guard
|
|
3265
|
+
|
|
3266
|
+
Content guard to protect the content guarded by Subscription Features.
|
|
3267
|
+
|
|
3268
|
+
:param service_feature_content_guard_href: (required)
|
|
3269
|
+
:type service_feature_content_guard_href: str
|
|
3270
|
+
:param service_feature_content_guard: (required)
|
|
3271
|
+
:type service_feature_content_guard: ServiceFeatureContentGuard
|
|
3272
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3273
|
+
:type x_task_diagnostics: List[str]
|
|
3274
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3275
|
+
number provided, it will be total request
|
|
3276
|
+
timeout. It can also be a pair (tuple) of
|
|
3277
|
+
(connection, read) timeouts.
|
|
3278
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3279
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3280
|
+
request; this effectively ignores the
|
|
3281
|
+
authentication in the spec for a single request.
|
|
3282
|
+
:type _request_auth: dict, optional
|
|
3283
|
+
:param _content_type: force content-type for the request.
|
|
3284
|
+
:type _content_type: str, Optional
|
|
3285
|
+
:param _headers: set to override the headers for a single
|
|
3286
|
+
request; this effectively ignores the headers
|
|
3287
|
+
in the spec for a single request.
|
|
3288
|
+
:type _headers: dict, optional
|
|
3289
|
+
:param _host_index: set to override the host_index for a single
|
|
3290
|
+
request; this effectively ignores the host_index
|
|
3291
|
+
in the spec for a single request.
|
|
3292
|
+
:type _host_index: int, optional
|
|
3293
|
+
:return: Returns the result object.
|
|
3294
|
+
""" # noqa: E501
|
|
3295
|
+
|
|
3296
|
+
_param = self._update_serialize(
|
|
3297
|
+
service_feature_content_guard_href=service_feature_content_guard_href,
|
|
3298
|
+
service_feature_content_guard=service_feature_content_guard,
|
|
3299
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3300
|
+
_request_auth=_request_auth,
|
|
3301
|
+
_content_type=_content_type,
|
|
3302
|
+
_headers=_headers,
|
|
3303
|
+
_host_index=_host_index
|
|
3304
|
+
)
|
|
3305
|
+
|
|
3306
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3307
|
+
'200': "ServiceFeatureContentGuardResponse",
|
|
3308
|
+
}
|
|
3309
|
+
response_data = self.api_client.call_api(
|
|
3310
|
+
*_param,
|
|
3311
|
+
_request_timeout=_request_timeout
|
|
3312
|
+
)
|
|
3313
|
+
return response_data.response
|
|
3314
|
+
|
|
3315
|
+
|
|
3316
|
+
def _update_serialize(
|
|
3317
|
+
self,
|
|
3318
|
+
service_feature_content_guard_href,
|
|
3319
|
+
service_feature_content_guard,
|
|
3320
|
+
x_task_diagnostics,
|
|
3321
|
+
_request_auth,
|
|
3322
|
+
_content_type,
|
|
3323
|
+
_headers,
|
|
3324
|
+
_host_index,
|
|
3325
|
+
) -> RequestSerialized:
|
|
3326
|
+
|
|
3327
|
+
_host = None
|
|
3328
|
+
|
|
3329
|
+
_collection_formats: Dict[str, str] = {
|
|
3330
|
+
'X-Task-Diagnostics': 'csv',
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
_path_params: Dict[str, str] = {}
|
|
3334
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3335
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3336
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3337
|
+
_files: Dict[
|
|
3338
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3339
|
+
] = {}
|
|
3340
|
+
_body_params: Optional[bytes] = None
|
|
3341
|
+
|
|
3342
|
+
# process the path parameters
|
|
3343
|
+
if service_feature_content_guard_href is not None:
|
|
3344
|
+
_path_params['service_feature_content_guard_href'] = service_feature_content_guard_href
|
|
3345
|
+
# process the query parameters
|
|
3346
|
+
# process the header parameters
|
|
3347
|
+
if x_task_diagnostics is not None:
|
|
3348
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3349
|
+
# process the form parameters
|
|
3350
|
+
# process the body parameter
|
|
3351
|
+
if service_feature_content_guard is not None:
|
|
3352
|
+
_body_params = service_feature_content_guard
|
|
3353
|
+
|
|
3354
|
+
|
|
3355
|
+
# set the HTTP header `Accept`
|
|
3356
|
+
if 'Accept' not in _header_params:
|
|
3357
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3358
|
+
[
|
|
3359
|
+
'application/json'
|
|
3360
|
+
]
|
|
3361
|
+
)
|
|
3362
|
+
|
|
3363
|
+
# set the HTTP header `Content-Type`
|
|
3364
|
+
if _content_type:
|
|
3365
|
+
_header_params['Content-Type'] = _content_type
|
|
3366
|
+
else:
|
|
3367
|
+
_default_content_type = (
|
|
3368
|
+
self.api_client.select_header_content_type(
|
|
3369
|
+
[
|
|
3370
|
+
'application/json',
|
|
3371
|
+
'application/x-www-form-urlencoded',
|
|
3372
|
+
'multipart/form-data'
|
|
3373
|
+
]
|
|
3374
|
+
)
|
|
3375
|
+
)
|
|
3376
|
+
if _default_content_type is not None:
|
|
3377
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3378
|
+
|
|
3379
|
+
# authentication setting
|
|
3380
|
+
_auth_settings: List[str] = [
|
|
3381
|
+
'json_header_remote_authentication',
|
|
3382
|
+
'basicAuth',
|
|
3383
|
+
'cookieAuth'
|
|
3384
|
+
]
|
|
3385
|
+
|
|
3386
|
+
return self.api_client.param_serialize(
|
|
3387
|
+
method='PUT',
|
|
3388
|
+
resource_path='{service_feature_content_guard_href}',
|
|
3389
|
+
path_params=_path_params,
|
|
3390
|
+
query_params=_query_params,
|
|
3391
|
+
header_params=_header_params,
|
|
3392
|
+
body=_body_params,
|
|
3393
|
+
post_params=_form_params,
|
|
3394
|
+
files=_files,
|
|
3395
|
+
auth_settings=_auth_settings,
|
|
3396
|
+
collection_formats=_collection_formats,
|
|
3397
|
+
_host=_host,
|
|
3398
|
+
_request_auth=_request_auth
|
|
3399
|
+
)
|
|
3400
|
+
|
|
3401
|
+
|