crc-pulp-file-client 20250819.1__py3-none-any.whl → 20260113.4__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.
- crc_pulp_file_client-20260113.4.dist-info/METADATA +8160 -0
- crc_pulp_file_client-20260113.4.dist-info/RECORD +62 -0
- crc_pulp_file_client-20260113.4.dist-info/top_level.txt +1 -0
- pulpcore/client/pulp_file/__init__.py +80 -0
- pulpcore/client/pulp_file/api/__init__.py +11 -0
- {services-pulp_file-client → pulpcore/client/pulp_file}/api/acs_file_api.py +30 -24
- {services-pulp_file-client → pulpcore/client/pulp_file}/api/content_files_api.py +394 -10
- {services-pulp_file-client → pulpcore/client/pulp_file}/api/distributions_file_api.py +33 -27
- {services-pulp_file-client → pulpcore/client/pulp_file}/api/publications_file_api.py +12 -12
- {services-pulp_file-client → pulpcore/client/pulp_file}/api/remotes_file_api.py +33 -27
- {services-pulp_file-client → pulpcore/client/pulp_file}/api/repositories_file_api.py +35 -29
- {services-pulp_file-client → pulpcore/client/pulp_file}/api/repositories_file_versions_api.py +8 -8
- {services-pulp_file-client → pulpcore/client/pulp_file}/api_client.py +7 -7
- {crc-pulp_file-client → pulpcore/client/pulp_file}/configuration.py +6 -6
- pulpcore/client/pulp_file/models/__init__.py +57 -0
- services-pulp_file-client/models/file_file_content_response.py → pulpcore/client/pulp_file/models/file_content_upload_response.py +8 -4
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_content_response.py +5 -1
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_remote.py +1 -1
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_remote_response.py +2 -2
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/object_roles_response.py +1 -1
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/paginated_repository_version_response_list.py +1 -1
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/paginatedfile_file_alternate_content_source_response_list.py +1 -1
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/paginatedfile_file_content_response_list.py +1 -1
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/paginatedfile_file_distribution_response_list.py +1 -1
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/paginatedfile_file_publication_response_list.py +1 -1
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/paginatedfile_file_remote_response_list.py +1 -1
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/paginatedfile_file_repository_response_list.py +1 -1
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/patchedfile_file_remote.py +1 -1
- {services-pulp_file-client → pulpcore/client/pulp_file}/models/repository_version_response.py +7 -3
- {services-pulp_file-client → pulpcore/client/pulp_file}/rest.py +1 -1
- crc-pulp_file-client/api/__init__.py +0 -11
- crc-pulp_file-client/api/acs_file_api.py +0 -3689
- crc-pulp_file-client/api/content_files_api.py +0 -2088
- crc-pulp_file-client/api/distributions_file_api.py +0 -4186
- crc-pulp_file-client/api/publications_file_api.py +0 -2881
- crc-pulp_file-client/api/remotes_file_api.py +0 -4214
- crc-pulp_file-client/api/repositories_file_api.py +0 -4856
- crc-pulp_file-client/api/repositories_file_versions_api.py +0 -1670
- crc-pulp_file-client/api_client.py +0 -798
- crc-pulp_file-client/models/__init__.py +0 -56
- crc-pulp_file-client/models/file_file_remote.py +0 -205
- crc-pulp_file-client/models/file_file_remote_response.py +0 -199
- crc-pulp_file-client/models/object_roles_response.py +0 -96
- crc-pulp_file-client/models/paginated_repository_version_response_list.py +0 -112
- crc-pulp_file-client/models/paginatedfile_file_alternate_content_source_response_list.py +0 -112
- crc-pulp_file-client/models/paginatedfile_file_content_response_list.py +0 -112
- crc-pulp_file-client/models/paginatedfile_file_distribution_response_list.py +0 -112
- crc-pulp_file-client/models/paginatedfile_file_publication_response_list.py +0 -112
- crc-pulp_file-client/models/paginatedfile_file_remote_response_list.py +0 -112
- crc-pulp_file-client/models/paginatedfile_file_repository_response_list.py +0 -112
- crc-pulp_file-client/models/patchedfile_file_remote.py +0 -205
- crc-pulp_file-client/models/repository_version_response.py +0 -121
- crc-pulp_file-client/rest.py +0 -258
- crc_pulp_file_client-20250819.1.dist-info/METADATA +0 -25
- crc_pulp_file_client-20250819.1.dist-info/RECORD +0 -114
- crc_pulp_file_client-20250819.1.dist-info/top_level.txt +0 -2
- services-pulp_file-client/api/__init__.py +0 -11
- services-pulp_file-client/api_response.py +0 -21
- services-pulp_file-client/configuration.py +0 -628
- services-pulp_file-client/exceptions.py +0 -200
- services-pulp_file-client/models/__init__.py +0 -56
- services-pulp_file-client/models/async_operation_response.py +0 -88
- services-pulp_file-client/models/content_summary_response.py +0 -92
- services-pulp_file-client/models/file_file_alternate_content_source.py +0 -101
- services-pulp_file-client/models/file_file_alternate_content_source_response.py +0 -116
- services-pulp_file-client/models/file_file_distribution.py +0 -118
- services-pulp_file-client/models/file_file_distribution_response.py +0 -142
- services-pulp_file-client/models/file_file_publication.py +0 -100
- services-pulp_file-client/models/file_file_publication_response.py +0 -120
- services-pulp_file-client/models/file_file_remote_response_hidden_fields_inner.py +0 -90
- services-pulp_file-client/models/file_file_repository.py +0 -121
- services-pulp_file-client/models/file_file_repository_response.py +0 -146
- services-pulp_file-client/models/my_permissions_response.py +0 -88
- services-pulp_file-client/models/nested_role.py +0 -93
- services-pulp_file-client/models/nested_role_response.py +0 -92
- services-pulp_file-client/models/patchedfile_file_alternate_content_source.py +0 -101
- services-pulp_file-client/models/patchedfile_file_distribution.py +0 -118
- services-pulp_file-client/models/patchedfile_file_repository.py +0 -121
- services-pulp_file-client/models/policy_enum.py +0 -39
- services-pulp_file-client/models/repair.py +0 -88
- services-pulp_file-client/models/repository_add_remove_content.py +0 -93
- services-pulp_file-client/models/repository_sync_url.py +0 -90
- services-pulp_file-client/models/set_label.py +0 -103
- services-pulp_file-client/models/set_label_response.py +0 -103
- services-pulp_file-client/models/task_group_operation_response.py +0 -88
- services-pulp_file-client/models/unset_label.py +0 -96
- services-pulp_file-client/models/unset_label_response.py +0 -100
- services-pulp_file-client/py.typed +0 -0
- {crc_pulp_file_client-20250819.1.dist-info → crc_pulp_file_client-20260113.4.dist-info}/WHEEL +0 -0
- {crc-pulp_file-client → pulpcore}/__init__.py +0 -0
- {services-pulp_file-client → pulpcore/client}/__init__.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/api_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/exceptions.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/async_operation_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/content_summary_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_alternate_content_source.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_alternate_content_source_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_distribution.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_distribution_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_publication.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_publication_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_remote_response_hidden_fields_inner.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_repository.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/file_file_repository_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/my_permissions_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/nested_role.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/nested_role_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/patchedfile_file_alternate_content_source.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/patchedfile_file_distribution.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/patchedfile_file_repository.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/policy_enum.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/repair.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/repository_add_remove_content.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/repository_sync_url.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/set_label.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/set_label_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/task_group_operation_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/unset_label.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/models/unset_label_response.py +0 -0
- {crc-pulp_file-client → pulpcore/client/pulp_file}/py.typed +0 -0
|
@@ -1,2088 +0,0 @@
|
|
|
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, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator
|
|
21
|
-
from typing import Dict, List, Optional, Tuple, Union
|
|
22
|
-
from typing_extensions import Annotated
|
|
23
|
-
from crc-pulp_file-client.models.async_operation_response import AsyncOperationResponse
|
|
24
|
-
from crc-pulp_file-client.models.file_file_content_response import FileFileContentResponse
|
|
25
|
-
from crc-pulp_file-client.models.paginatedfile_file_content_response_list import PaginatedfileFileContentResponseList
|
|
26
|
-
from crc-pulp_file-client.models.set_label import SetLabel
|
|
27
|
-
from crc-pulp_file-client.models.set_label_response import SetLabelResponse
|
|
28
|
-
from crc-pulp_file-client.models.unset_label import UnsetLabel
|
|
29
|
-
from crc-pulp_file-client.models.unset_label_response import UnsetLabelResponse
|
|
30
|
-
|
|
31
|
-
from crc-pulp_file-client.api_client import ApiClient, RequestSerialized
|
|
32
|
-
from crc-pulp_file-client.api_response import ApiResponse
|
|
33
|
-
from crc-pulp_file-client.rest import RESTResponseType
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class ContentFilesApi:
|
|
37
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
38
|
-
Ref: https://openapi-generator.tech
|
|
39
|
-
|
|
40
|
-
Do not edit the class manually.
|
|
41
|
-
"""
|
|
42
|
-
|
|
43
|
-
def __init__(self, api_client=None) -> None:
|
|
44
|
-
if api_client is None:
|
|
45
|
-
api_client = ApiClient.get_default()
|
|
46
|
-
self.api_client = api_client
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@validate_call
|
|
50
|
-
def create(
|
|
51
|
-
self,
|
|
52
|
-
relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
|
|
53
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
54
|
-
repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
|
|
55
|
-
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
56
|
-
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
57
|
-
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
58
|
-
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
59
|
-
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
60
|
-
pulp_domain: StrictStr = "default",
|
|
61
|
-
_request_timeout: Union[
|
|
62
|
-
None,
|
|
63
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
64
|
-
Tuple[
|
|
65
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
66
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
67
|
-
]
|
|
68
|
-
] = None,
|
|
69
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
70
|
-
_content_type: Optional[StrictStr] = None,
|
|
71
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
72
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
73
|
-
) -> AsyncOperationResponse:
|
|
74
|
-
"""Create a file content
|
|
75
|
-
|
|
76
|
-
Trigger an asynchronous task to create content,optionally create new repository version.
|
|
77
|
-
|
|
78
|
-
:param pulp_domain: (required)
|
|
79
|
-
:type pulp_domain: str
|
|
80
|
-
:param relative_path: Path where the artifact is located relative to distributions base_path (required)
|
|
81
|
-
:type relative_path: str
|
|
82
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
83
|
-
:type x_task_diagnostics: List[str]
|
|
84
|
-
:param repository: A URI of a repository the new content unit should be associated with.
|
|
85
|
-
:type repository: str
|
|
86
|
-
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
87
|
-
:type pulp_labels: Dict[str, Optional[str]]
|
|
88
|
-
:param artifact: Artifact file representing the physical content
|
|
89
|
-
:type artifact: str
|
|
90
|
-
:param file: An uploaded file that may be turned into the content unit.
|
|
91
|
-
:type file: bytearray
|
|
92
|
-
:param upload: An uncommitted upload that may be turned into the content unit.
|
|
93
|
-
:type upload: str
|
|
94
|
-
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
95
|
-
:type file_url: str
|
|
96
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
97
|
-
number provided, it will be total request
|
|
98
|
-
timeout. It can also be a pair (tuple) of
|
|
99
|
-
(connection, read) timeouts.
|
|
100
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
101
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
102
|
-
request; this effectively ignores the
|
|
103
|
-
authentication in the spec for a single request.
|
|
104
|
-
:type _request_auth: dict, optional
|
|
105
|
-
:param _content_type: force content-type for the request.
|
|
106
|
-
:type _content_type: str, Optional
|
|
107
|
-
:param _headers: set to override the headers for a single
|
|
108
|
-
request; this effectively ignores the headers
|
|
109
|
-
in the spec for a single request.
|
|
110
|
-
:type _headers: dict, optional
|
|
111
|
-
:param _host_index: set to override the host_index for a single
|
|
112
|
-
request; this effectively ignores the host_index
|
|
113
|
-
in the spec for a single request.
|
|
114
|
-
:type _host_index: int, optional
|
|
115
|
-
:return: Returns the result object.
|
|
116
|
-
""" # noqa: E501
|
|
117
|
-
|
|
118
|
-
_param = self._create_serialize(
|
|
119
|
-
pulp_domain=pulp_domain,
|
|
120
|
-
relative_path=relative_path,
|
|
121
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
122
|
-
repository=repository,
|
|
123
|
-
pulp_labels=pulp_labels,
|
|
124
|
-
artifact=artifact,
|
|
125
|
-
file=file,
|
|
126
|
-
upload=upload,
|
|
127
|
-
file_url=file_url,
|
|
128
|
-
_request_auth=_request_auth,
|
|
129
|
-
_content_type=_content_type,
|
|
130
|
-
_headers=_headers,
|
|
131
|
-
_host_index=_host_index
|
|
132
|
-
)
|
|
133
|
-
|
|
134
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
135
|
-
'202': "AsyncOperationResponse",
|
|
136
|
-
}
|
|
137
|
-
response_data = self.api_client.call_api(
|
|
138
|
-
*_param,
|
|
139
|
-
_request_timeout=_request_timeout
|
|
140
|
-
)
|
|
141
|
-
response_data.read()
|
|
142
|
-
return self.api_client.response_deserialize(
|
|
143
|
-
response_data=response_data,
|
|
144
|
-
response_types_map=_response_types_map,
|
|
145
|
-
).data
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
@validate_call
|
|
149
|
-
def create_with_http_info(
|
|
150
|
-
self,
|
|
151
|
-
relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
|
|
152
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
153
|
-
repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
|
|
154
|
-
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
155
|
-
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
156
|
-
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
157
|
-
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
158
|
-
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
159
|
-
pulp_domain: StrictStr = "default",
|
|
160
|
-
_request_timeout: Union[
|
|
161
|
-
None,
|
|
162
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
163
|
-
Tuple[
|
|
164
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
165
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
166
|
-
]
|
|
167
|
-
] = None,
|
|
168
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
169
|
-
_content_type: Optional[StrictStr] = None,
|
|
170
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
171
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
172
|
-
) -> ApiResponse[AsyncOperationResponse]:
|
|
173
|
-
"""Create a file content
|
|
174
|
-
|
|
175
|
-
Trigger an asynchronous task to create content,optionally create new repository version.
|
|
176
|
-
|
|
177
|
-
:param pulp_domain: (required)
|
|
178
|
-
:type pulp_domain: str
|
|
179
|
-
:param relative_path: Path where the artifact is located relative to distributions base_path (required)
|
|
180
|
-
:type relative_path: str
|
|
181
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
182
|
-
:type x_task_diagnostics: List[str]
|
|
183
|
-
:param repository: A URI of a repository the new content unit should be associated with.
|
|
184
|
-
:type repository: str
|
|
185
|
-
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
186
|
-
:type pulp_labels: Dict[str, Optional[str]]
|
|
187
|
-
:param artifact: Artifact file representing the physical content
|
|
188
|
-
:type artifact: str
|
|
189
|
-
:param file: An uploaded file that may be turned into the content unit.
|
|
190
|
-
:type file: bytearray
|
|
191
|
-
:param upload: An uncommitted upload that may be turned into the content unit.
|
|
192
|
-
:type upload: str
|
|
193
|
-
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
194
|
-
:type file_url: str
|
|
195
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
196
|
-
number provided, it will be total request
|
|
197
|
-
timeout. It can also be a pair (tuple) of
|
|
198
|
-
(connection, read) timeouts.
|
|
199
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
200
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
201
|
-
request; this effectively ignores the
|
|
202
|
-
authentication in the spec for a single request.
|
|
203
|
-
:type _request_auth: dict, optional
|
|
204
|
-
:param _content_type: force content-type for the request.
|
|
205
|
-
:type _content_type: str, Optional
|
|
206
|
-
:param _headers: set to override the headers for a single
|
|
207
|
-
request; this effectively ignores the headers
|
|
208
|
-
in the spec for a single request.
|
|
209
|
-
:type _headers: dict, optional
|
|
210
|
-
:param _host_index: set to override the host_index for a single
|
|
211
|
-
request; this effectively ignores the host_index
|
|
212
|
-
in the spec for a single request.
|
|
213
|
-
:type _host_index: int, optional
|
|
214
|
-
:return: Returns the result object.
|
|
215
|
-
""" # noqa: E501
|
|
216
|
-
|
|
217
|
-
_param = self._create_serialize(
|
|
218
|
-
pulp_domain=pulp_domain,
|
|
219
|
-
relative_path=relative_path,
|
|
220
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
221
|
-
repository=repository,
|
|
222
|
-
pulp_labels=pulp_labels,
|
|
223
|
-
artifact=artifact,
|
|
224
|
-
file=file,
|
|
225
|
-
upload=upload,
|
|
226
|
-
file_url=file_url,
|
|
227
|
-
_request_auth=_request_auth,
|
|
228
|
-
_content_type=_content_type,
|
|
229
|
-
_headers=_headers,
|
|
230
|
-
_host_index=_host_index
|
|
231
|
-
)
|
|
232
|
-
|
|
233
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
234
|
-
'202': "AsyncOperationResponse",
|
|
235
|
-
}
|
|
236
|
-
response_data = self.api_client.call_api(
|
|
237
|
-
*_param,
|
|
238
|
-
_request_timeout=_request_timeout
|
|
239
|
-
)
|
|
240
|
-
response_data.read()
|
|
241
|
-
return self.api_client.response_deserialize(
|
|
242
|
-
response_data=response_data,
|
|
243
|
-
response_types_map=_response_types_map,
|
|
244
|
-
)
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
@validate_call
|
|
248
|
-
def create_without_preload_content(
|
|
249
|
-
self,
|
|
250
|
-
relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
|
|
251
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
252
|
-
repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
|
|
253
|
-
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
254
|
-
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
255
|
-
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
256
|
-
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
257
|
-
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
258
|
-
pulp_domain: StrictStr = "default",
|
|
259
|
-
_request_timeout: Union[
|
|
260
|
-
None,
|
|
261
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
262
|
-
Tuple[
|
|
263
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
264
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
265
|
-
]
|
|
266
|
-
] = None,
|
|
267
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
268
|
-
_content_type: Optional[StrictStr] = None,
|
|
269
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
270
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
271
|
-
) -> RESTResponseType:
|
|
272
|
-
"""Create a file content
|
|
273
|
-
|
|
274
|
-
Trigger an asynchronous task to create content,optionally create new repository version.
|
|
275
|
-
|
|
276
|
-
:param pulp_domain: (required)
|
|
277
|
-
:type pulp_domain: str
|
|
278
|
-
:param relative_path: Path where the artifact is located relative to distributions base_path (required)
|
|
279
|
-
:type relative_path: str
|
|
280
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
281
|
-
:type x_task_diagnostics: List[str]
|
|
282
|
-
:param repository: A URI of a repository the new content unit should be associated with.
|
|
283
|
-
:type repository: str
|
|
284
|
-
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
285
|
-
:type pulp_labels: Dict[str, Optional[str]]
|
|
286
|
-
:param artifact: Artifact file representing the physical content
|
|
287
|
-
:type artifact: str
|
|
288
|
-
:param file: An uploaded file that may be turned into the content unit.
|
|
289
|
-
:type file: bytearray
|
|
290
|
-
:param upload: An uncommitted upload that may be turned into the content unit.
|
|
291
|
-
:type upload: str
|
|
292
|
-
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
293
|
-
:type file_url: str
|
|
294
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
295
|
-
number provided, it will be total request
|
|
296
|
-
timeout. It can also be a pair (tuple) of
|
|
297
|
-
(connection, read) timeouts.
|
|
298
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
299
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
300
|
-
request; this effectively ignores the
|
|
301
|
-
authentication in the spec for a single request.
|
|
302
|
-
:type _request_auth: dict, optional
|
|
303
|
-
:param _content_type: force content-type for the request.
|
|
304
|
-
:type _content_type: str, Optional
|
|
305
|
-
:param _headers: set to override the headers for a single
|
|
306
|
-
request; this effectively ignores the headers
|
|
307
|
-
in the spec for a single request.
|
|
308
|
-
:type _headers: dict, optional
|
|
309
|
-
:param _host_index: set to override the host_index for a single
|
|
310
|
-
request; this effectively ignores the host_index
|
|
311
|
-
in the spec for a single request.
|
|
312
|
-
:type _host_index: int, optional
|
|
313
|
-
:return: Returns the result object.
|
|
314
|
-
""" # noqa: E501
|
|
315
|
-
|
|
316
|
-
_param = self._create_serialize(
|
|
317
|
-
pulp_domain=pulp_domain,
|
|
318
|
-
relative_path=relative_path,
|
|
319
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
320
|
-
repository=repository,
|
|
321
|
-
pulp_labels=pulp_labels,
|
|
322
|
-
artifact=artifact,
|
|
323
|
-
file=file,
|
|
324
|
-
upload=upload,
|
|
325
|
-
file_url=file_url,
|
|
326
|
-
_request_auth=_request_auth,
|
|
327
|
-
_content_type=_content_type,
|
|
328
|
-
_headers=_headers,
|
|
329
|
-
_host_index=_host_index
|
|
330
|
-
)
|
|
331
|
-
|
|
332
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
333
|
-
'202': "AsyncOperationResponse",
|
|
334
|
-
}
|
|
335
|
-
response_data = self.api_client.call_api(
|
|
336
|
-
*_param,
|
|
337
|
-
_request_timeout=_request_timeout
|
|
338
|
-
)
|
|
339
|
-
return response_data.response
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
def _create_serialize(
|
|
343
|
-
self,
|
|
344
|
-
pulp_domain,
|
|
345
|
-
relative_path,
|
|
346
|
-
x_task_diagnostics,
|
|
347
|
-
repository,
|
|
348
|
-
pulp_labels,
|
|
349
|
-
artifact,
|
|
350
|
-
file,
|
|
351
|
-
upload,
|
|
352
|
-
file_url,
|
|
353
|
-
_request_auth,
|
|
354
|
-
_content_type,
|
|
355
|
-
_headers,
|
|
356
|
-
_host_index,
|
|
357
|
-
) -> RequestSerialized:
|
|
358
|
-
|
|
359
|
-
_host = None
|
|
360
|
-
|
|
361
|
-
_collection_formats: Dict[str, str] = {
|
|
362
|
-
'X-Task-Diagnostics': 'csv',
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
_path_params: Dict[str, str] = {}
|
|
366
|
-
_query_params: List[Tuple[str, str]] = []
|
|
367
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
368
|
-
_form_params: List[Tuple[str, str]] = []
|
|
369
|
-
_files: Dict[
|
|
370
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
371
|
-
] = {}
|
|
372
|
-
_body_params: Optional[bytes] = None
|
|
373
|
-
|
|
374
|
-
# process the path parameters
|
|
375
|
-
if pulp_domain is not None:
|
|
376
|
-
_path_params['pulp_domain'] = pulp_domain
|
|
377
|
-
# process the query parameters
|
|
378
|
-
# process the header parameters
|
|
379
|
-
if x_task_diagnostics is not None:
|
|
380
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
381
|
-
# process the form parameters
|
|
382
|
-
if repository is not None:
|
|
383
|
-
_form_params.append(('repository', repository))
|
|
384
|
-
if pulp_labels is not None:
|
|
385
|
-
_form_params.append(('pulp_labels', pulp_labels))
|
|
386
|
-
if artifact is not None:
|
|
387
|
-
_form_params.append(('artifact', artifact))
|
|
388
|
-
if relative_path is not None:
|
|
389
|
-
_form_params.append(('relative_path', relative_path))
|
|
390
|
-
if file is not None:
|
|
391
|
-
_files['file'] = file
|
|
392
|
-
if upload is not None:
|
|
393
|
-
_form_params.append(('upload', upload))
|
|
394
|
-
if file_url is not None:
|
|
395
|
-
_form_params.append(('file_url', file_url))
|
|
396
|
-
# process the body parameter
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
# set the HTTP header `Accept`
|
|
400
|
-
if 'Accept' not in _header_params:
|
|
401
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
402
|
-
[
|
|
403
|
-
'application/json'
|
|
404
|
-
]
|
|
405
|
-
)
|
|
406
|
-
|
|
407
|
-
# set the HTTP header `Content-Type`
|
|
408
|
-
if _content_type:
|
|
409
|
-
_header_params['Content-Type'] = _content_type
|
|
410
|
-
else:
|
|
411
|
-
_default_content_type = (
|
|
412
|
-
self.api_client.select_header_content_type(
|
|
413
|
-
[
|
|
414
|
-
'multipart/form-data',
|
|
415
|
-
'application/x-www-form-urlencoded'
|
|
416
|
-
]
|
|
417
|
-
)
|
|
418
|
-
)
|
|
419
|
-
if _default_content_type is not None:
|
|
420
|
-
_header_params['Content-Type'] = _default_content_type
|
|
421
|
-
|
|
422
|
-
# authentication setting
|
|
423
|
-
_auth_settings: List[str] = [
|
|
424
|
-
'json_header_remote_authentication',
|
|
425
|
-
'basicAuth',
|
|
426
|
-
'cookieAuth'
|
|
427
|
-
]
|
|
428
|
-
|
|
429
|
-
return self.api_client.param_serialize(
|
|
430
|
-
method='POST',
|
|
431
|
-
resource_path='/api/pulp/{pulp_domain}/api/v3/content/file/files/',
|
|
432
|
-
path_params=_path_params,
|
|
433
|
-
query_params=_query_params,
|
|
434
|
-
header_params=_header_params,
|
|
435
|
-
body=_body_params,
|
|
436
|
-
post_params=_form_params,
|
|
437
|
-
files=_files,
|
|
438
|
-
auth_settings=_auth_settings,
|
|
439
|
-
collection_formats=_collection_formats,
|
|
440
|
-
_host=_host,
|
|
441
|
-
_request_auth=_request_auth
|
|
442
|
-
)
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
@validate_call
|
|
448
|
-
def list(
|
|
449
|
-
self,
|
|
450
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
451
|
-
digest: Annotated[Optional[StrictStr], Field(description="Filter results where digest matches value")] = None,
|
|
452
|
-
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
453
|
-
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
454
|
-
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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
455
|
-
orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
|
|
456
|
-
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
457
|
-
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
458
|
-
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
459
|
-
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
460
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
461
|
-
relative_path: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches value")] = None,
|
|
462
|
-
relative_path__contains: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path contains value")] = None,
|
|
463
|
-
relative_path__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path contains value")] = None,
|
|
464
|
-
relative_path__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches value")] = None,
|
|
465
|
-
relative_path__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where relative_path is in a comma-separated list of values")] = None,
|
|
466
|
-
relative_path__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches regex value")] = None,
|
|
467
|
-
relative_path__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path starts with value")] = None,
|
|
468
|
-
relative_path__regex: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches regex value")] = None,
|
|
469
|
-
relative_path__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path starts with value")] = None,
|
|
470
|
-
repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
|
|
471
|
-
repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
|
|
472
|
-
repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
|
|
473
|
-
sha256: Optional[StrictStr] = None,
|
|
474
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
475
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
476
|
-
pulp_domain: StrictStr = "default",
|
|
477
|
-
_request_timeout: Union[
|
|
478
|
-
None,
|
|
479
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
480
|
-
Tuple[
|
|
481
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
482
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
483
|
-
]
|
|
484
|
-
] = None,
|
|
485
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
486
|
-
_content_type: Optional[StrictStr] = None,
|
|
487
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
488
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
489
|
-
) -> PaginatedfileFileContentResponseList:
|
|
490
|
-
"""List file contents
|
|
491
|
-
|
|
492
|
-
FileContent represents a single file and its metadata, which can be added and removed from repositories.
|
|
493
|
-
|
|
494
|
-
:param pulp_domain: (required)
|
|
495
|
-
:type pulp_domain: str
|
|
496
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
497
|
-
:type x_task_diagnostics: List[str]
|
|
498
|
-
:param digest: Filter results where digest matches value
|
|
499
|
-
:type digest: str
|
|
500
|
-
:param limit: Number of results to return per page.
|
|
501
|
-
:type limit: int
|
|
502
|
-
:param offset: The initial index from which to return the results.
|
|
503
|
-
:type offset: int
|
|
504
|
-
: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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
505
|
-
:type ordering: List[str]
|
|
506
|
-
:param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
507
|
-
:type orphaned_for: float
|
|
508
|
-
:param prn__in: Multiple values may be separated by commas.
|
|
509
|
-
:type prn__in: List[str]
|
|
510
|
-
:param pulp_href__in: Multiple values may be separated by commas.
|
|
511
|
-
:type pulp_href__in: List[str]
|
|
512
|
-
:param pulp_id__in: Multiple values may be separated by commas.
|
|
513
|
-
:type pulp_id__in: List[str]
|
|
514
|
-
:param pulp_label_select: Filter labels by search string
|
|
515
|
-
:type pulp_label_select: str
|
|
516
|
-
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
517
|
-
:type q: str
|
|
518
|
-
:param relative_path: Filter results where relative_path matches value
|
|
519
|
-
:type relative_path: str
|
|
520
|
-
:param relative_path__contains: Filter results where relative_path contains value
|
|
521
|
-
:type relative_path__contains: str
|
|
522
|
-
:param relative_path__icontains: Filter results where relative_path contains value
|
|
523
|
-
:type relative_path__icontains: str
|
|
524
|
-
:param relative_path__iexact: Filter results where relative_path matches value
|
|
525
|
-
:type relative_path__iexact: str
|
|
526
|
-
:param relative_path__in: Filter results where relative_path is in a comma-separated list of values
|
|
527
|
-
:type relative_path__in: List[str]
|
|
528
|
-
:param relative_path__iregex: Filter results where relative_path matches regex value
|
|
529
|
-
:type relative_path__iregex: str
|
|
530
|
-
:param relative_path__istartswith: Filter results where relative_path starts with value
|
|
531
|
-
:type relative_path__istartswith: str
|
|
532
|
-
:param relative_path__regex: Filter results where relative_path matches regex value
|
|
533
|
-
:type relative_path__regex: str
|
|
534
|
-
:param relative_path__startswith: Filter results where relative_path starts with value
|
|
535
|
-
:type relative_path__startswith: str
|
|
536
|
-
:param repository_version: Repository Version referenced by HREF/PRN
|
|
537
|
-
:type repository_version: str
|
|
538
|
-
:param repository_version_added: Repository Version referenced by HREF/PRN
|
|
539
|
-
:type repository_version_added: str
|
|
540
|
-
:param repository_version_removed: Repository Version referenced by HREF/PRN
|
|
541
|
-
:type repository_version_removed: str
|
|
542
|
-
:param sha256:
|
|
543
|
-
:type sha256: str
|
|
544
|
-
:param fields: A list of fields to include in the response.
|
|
545
|
-
:type fields: List[str]
|
|
546
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
547
|
-
:type exclude_fields: List[str]
|
|
548
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
549
|
-
number provided, it will be total request
|
|
550
|
-
timeout. It can also be a pair (tuple) of
|
|
551
|
-
(connection, read) timeouts.
|
|
552
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
553
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
554
|
-
request; this effectively ignores the
|
|
555
|
-
authentication in the spec for a single request.
|
|
556
|
-
:type _request_auth: dict, optional
|
|
557
|
-
:param _content_type: force content-type for the request.
|
|
558
|
-
:type _content_type: str, Optional
|
|
559
|
-
:param _headers: set to override the headers for a single
|
|
560
|
-
request; this effectively ignores the headers
|
|
561
|
-
in the spec for a single request.
|
|
562
|
-
:type _headers: dict, optional
|
|
563
|
-
:param _host_index: set to override the host_index for a single
|
|
564
|
-
request; this effectively ignores the host_index
|
|
565
|
-
in the spec for a single request.
|
|
566
|
-
:type _host_index: int, optional
|
|
567
|
-
:return: Returns the result object.
|
|
568
|
-
""" # noqa: E501
|
|
569
|
-
|
|
570
|
-
_param = self._list_serialize(
|
|
571
|
-
pulp_domain=pulp_domain,
|
|
572
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
573
|
-
digest=digest,
|
|
574
|
-
limit=limit,
|
|
575
|
-
offset=offset,
|
|
576
|
-
ordering=ordering,
|
|
577
|
-
orphaned_for=orphaned_for,
|
|
578
|
-
prn__in=prn__in,
|
|
579
|
-
pulp_href__in=pulp_href__in,
|
|
580
|
-
pulp_id__in=pulp_id__in,
|
|
581
|
-
pulp_label_select=pulp_label_select,
|
|
582
|
-
q=q,
|
|
583
|
-
relative_path=relative_path,
|
|
584
|
-
relative_path__contains=relative_path__contains,
|
|
585
|
-
relative_path__icontains=relative_path__icontains,
|
|
586
|
-
relative_path__iexact=relative_path__iexact,
|
|
587
|
-
relative_path__in=relative_path__in,
|
|
588
|
-
relative_path__iregex=relative_path__iregex,
|
|
589
|
-
relative_path__istartswith=relative_path__istartswith,
|
|
590
|
-
relative_path__regex=relative_path__regex,
|
|
591
|
-
relative_path__startswith=relative_path__startswith,
|
|
592
|
-
repository_version=repository_version,
|
|
593
|
-
repository_version_added=repository_version_added,
|
|
594
|
-
repository_version_removed=repository_version_removed,
|
|
595
|
-
sha256=sha256,
|
|
596
|
-
fields=fields,
|
|
597
|
-
exclude_fields=exclude_fields,
|
|
598
|
-
_request_auth=_request_auth,
|
|
599
|
-
_content_type=_content_type,
|
|
600
|
-
_headers=_headers,
|
|
601
|
-
_host_index=_host_index
|
|
602
|
-
)
|
|
603
|
-
|
|
604
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
605
|
-
'200': "PaginatedfileFileContentResponseList",
|
|
606
|
-
}
|
|
607
|
-
response_data = self.api_client.call_api(
|
|
608
|
-
*_param,
|
|
609
|
-
_request_timeout=_request_timeout
|
|
610
|
-
)
|
|
611
|
-
response_data.read()
|
|
612
|
-
return self.api_client.response_deserialize(
|
|
613
|
-
response_data=response_data,
|
|
614
|
-
response_types_map=_response_types_map,
|
|
615
|
-
).data
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
@validate_call
|
|
619
|
-
def list_with_http_info(
|
|
620
|
-
self,
|
|
621
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
622
|
-
digest: Annotated[Optional[StrictStr], Field(description="Filter results where digest matches value")] = None,
|
|
623
|
-
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
624
|
-
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
625
|
-
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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
626
|
-
orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
|
|
627
|
-
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
628
|
-
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
629
|
-
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
630
|
-
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
631
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
632
|
-
relative_path: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches value")] = None,
|
|
633
|
-
relative_path__contains: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path contains value")] = None,
|
|
634
|
-
relative_path__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path contains value")] = None,
|
|
635
|
-
relative_path__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches value")] = None,
|
|
636
|
-
relative_path__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where relative_path is in a comma-separated list of values")] = None,
|
|
637
|
-
relative_path__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches regex value")] = None,
|
|
638
|
-
relative_path__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path starts with value")] = None,
|
|
639
|
-
relative_path__regex: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches regex value")] = None,
|
|
640
|
-
relative_path__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path starts with value")] = None,
|
|
641
|
-
repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
|
|
642
|
-
repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
|
|
643
|
-
repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
|
|
644
|
-
sha256: Optional[StrictStr] = None,
|
|
645
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
646
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
647
|
-
pulp_domain: StrictStr = "default",
|
|
648
|
-
_request_timeout: Union[
|
|
649
|
-
None,
|
|
650
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
651
|
-
Tuple[
|
|
652
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
653
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
654
|
-
]
|
|
655
|
-
] = None,
|
|
656
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
657
|
-
_content_type: Optional[StrictStr] = None,
|
|
658
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
659
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
660
|
-
) -> ApiResponse[PaginatedfileFileContentResponseList]:
|
|
661
|
-
"""List file contents
|
|
662
|
-
|
|
663
|
-
FileContent represents a single file and its metadata, which can be added and removed from repositories.
|
|
664
|
-
|
|
665
|
-
:param pulp_domain: (required)
|
|
666
|
-
:type pulp_domain: str
|
|
667
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
668
|
-
:type x_task_diagnostics: List[str]
|
|
669
|
-
:param digest: Filter results where digest matches value
|
|
670
|
-
:type digest: str
|
|
671
|
-
:param limit: Number of results to return per page.
|
|
672
|
-
:type limit: int
|
|
673
|
-
:param offset: The initial index from which to return the results.
|
|
674
|
-
:type offset: int
|
|
675
|
-
: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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
676
|
-
:type ordering: List[str]
|
|
677
|
-
:param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
678
|
-
:type orphaned_for: float
|
|
679
|
-
:param prn__in: Multiple values may be separated by commas.
|
|
680
|
-
:type prn__in: List[str]
|
|
681
|
-
:param pulp_href__in: Multiple values may be separated by commas.
|
|
682
|
-
:type pulp_href__in: List[str]
|
|
683
|
-
:param pulp_id__in: Multiple values may be separated by commas.
|
|
684
|
-
:type pulp_id__in: List[str]
|
|
685
|
-
:param pulp_label_select: Filter labels by search string
|
|
686
|
-
:type pulp_label_select: str
|
|
687
|
-
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
688
|
-
:type q: str
|
|
689
|
-
:param relative_path: Filter results where relative_path matches value
|
|
690
|
-
:type relative_path: str
|
|
691
|
-
:param relative_path__contains: Filter results where relative_path contains value
|
|
692
|
-
:type relative_path__contains: str
|
|
693
|
-
:param relative_path__icontains: Filter results where relative_path contains value
|
|
694
|
-
:type relative_path__icontains: str
|
|
695
|
-
:param relative_path__iexact: Filter results where relative_path matches value
|
|
696
|
-
:type relative_path__iexact: str
|
|
697
|
-
:param relative_path__in: Filter results where relative_path is in a comma-separated list of values
|
|
698
|
-
:type relative_path__in: List[str]
|
|
699
|
-
:param relative_path__iregex: Filter results where relative_path matches regex value
|
|
700
|
-
:type relative_path__iregex: str
|
|
701
|
-
:param relative_path__istartswith: Filter results where relative_path starts with value
|
|
702
|
-
:type relative_path__istartswith: str
|
|
703
|
-
:param relative_path__regex: Filter results where relative_path matches regex value
|
|
704
|
-
:type relative_path__regex: str
|
|
705
|
-
:param relative_path__startswith: Filter results where relative_path starts with value
|
|
706
|
-
:type relative_path__startswith: str
|
|
707
|
-
:param repository_version: Repository Version referenced by HREF/PRN
|
|
708
|
-
:type repository_version: str
|
|
709
|
-
:param repository_version_added: Repository Version referenced by HREF/PRN
|
|
710
|
-
:type repository_version_added: str
|
|
711
|
-
:param repository_version_removed: Repository Version referenced by HREF/PRN
|
|
712
|
-
:type repository_version_removed: str
|
|
713
|
-
:param sha256:
|
|
714
|
-
:type sha256: str
|
|
715
|
-
:param fields: A list of fields to include in the response.
|
|
716
|
-
:type fields: List[str]
|
|
717
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
718
|
-
:type exclude_fields: List[str]
|
|
719
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
720
|
-
number provided, it will be total request
|
|
721
|
-
timeout. It can also be a pair (tuple) of
|
|
722
|
-
(connection, read) timeouts.
|
|
723
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
724
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
725
|
-
request; this effectively ignores the
|
|
726
|
-
authentication in the spec for a single request.
|
|
727
|
-
:type _request_auth: dict, optional
|
|
728
|
-
:param _content_type: force content-type for the request.
|
|
729
|
-
:type _content_type: str, Optional
|
|
730
|
-
:param _headers: set to override the headers for a single
|
|
731
|
-
request; this effectively ignores the headers
|
|
732
|
-
in the spec for a single request.
|
|
733
|
-
:type _headers: dict, optional
|
|
734
|
-
:param _host_index: set to override the host_index for a single
|
|
735
|
-
request; this effectively ignores the host_index
|
|
736
|
-
in the spec for a single request.
|
|
737
|
-
:type _host_index: int, optional
|
|
738
|
-
:return: Returns the result object.
|
|
739
|
-
""" # noqa: E501
|
|
740
|
-
|
|
741
|
-
_param = self._list_serialize(
|
|
742
|
-
pulp_domain=pulp_domain,
|
|
743
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
744
|
-
digest=digest,
|
|
745
|
-
limit=limit,
|
|
746
|
-
offset=offset,
|
|
747
|
-
ordering=ordering,
|
|
748
|
-
orphaned_for=orphaned_for,
|
|
749
|
-
prn__in=prn__in,
|
|
750
|
-
pulp_href__in=pulp_href__in,
|
|
751
|
-
pulp_id__in=pulp_id__in,
|
|
752
|
-
pulp_label_select=pulp_label_select,
|
|
753
|
-
q=q,
|
|
754
|
-
relative_path=relative_path,
|
|
755
|
-
relative_path__contains=relative_path__contains,
|
|
756
|
-
relative_path__icontains=relative_path__icontains,
|
|
757
|
-
relative_path__iexact=relative_path__iexact,
|
|
758
|
-
relative_path__in=relative_path__in,
|
|
759
|
-
relative_path__iregex=relative_path__iregex,
|
|
760
|
-
relative_path__istartswith=relative_path__istartswith,
|
|
761
|
-
relative_path__regex=relative_path__regex,
|
|
762
|
-
relative_path__startswith=relative_path__startswith,
|
|
763
|
-
repository_version=repository_version,
|
|
764
|
-
repository_version_added=repository_version_added,
|
|
765
|
-
repository_version_removed=repository_version_removed,
|
|
766
|
-
sha256=sha256,
|
|
767
|
-
fields=fields,
|
|
768
|
-
exclude_fields=exclude_fields,
|
|
769
|
-
_request_auth=_request_auth,
|
|
770
|
-
_content_type=_content_type,
|
|
771
|
-
_headers=_headers,
|
|
772
|
-
_host_index=_host_index
|
|
773
|
-
)
|
|
774
|
-
|
|
775
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
776
|
-
'200': "PaginatedfileFileContentResponseList",
|
|
777
|
-
}
|
|
778
|
-
response_data = self.api_client.call_api(
|
|
779
|
-
*_param,
|
|
780
|
-
_request_timeout=_request_timeout
|
|
781
|
-
)
|
|
782
|
-
response_data.read()
|
|
783
|
-
return self.api_client.response_deserialize(
|
|
784
|
-
response_data=response_data,
|
|
785
|
-
response_types_map=_response_types_map,
|
|
786
|
-
)
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
@validate_call
|
|
790
|
-
def list_without_preload_content(
|
|
791
|
-
self,
|
|
792
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
793
|
-
digest: Annotated[Optional[StrictStr], Field(description="Filter results where digest matches value")] = None,
|
|
794
|
-
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
795
|
-
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
796
|
-
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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
797
|
-
orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
|
|
798
|
-
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
799
|
-
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
800
|
-
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
801
|
-
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
802
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
803
|
-
relative_path: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches value")] = None,
|
|
804
|
-
relative_path__contains: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path contains value")] = None,
|
|
805
|
-
relative_path__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path contains value")] = None,
|
|
806
|
-
relative_path__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches value")] = None,
|
|
807
|
-
relative_path__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where relative_path is in a comma-separated list of values")] = None,
|
|
808
|
-
relative_path__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches regex value")] = None,
|
|
809
|
-
relative_path__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path starts with value")] = None,
|
|
810
|
-
relative_path__regex: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path matches regex value")] = None,
|
|
811
|
-
relative_path__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where relative_path starts with value")] = None,
|
|
812
|
-
repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
|
|
813
|
-
repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
|
|
814
|
-
repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
|
|
815
|
-
sha256: Optional[StrictStr] = None,
|
|
816
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
817
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
818
|
-
pulp_domain: StrictStr = "default",
|
|
819
|
-
_request_timeout: Union[
|
|
820
|
-
None,
|
|
821
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
822
|
-
Tuple[
|
|
823
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
824
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
825
|
-
]
|
|
826
|
-
] = None,
|
|
827
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
828
|
-
_content_type: Optional[StrictStr] = None,
|
|
829
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
830
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
831
|
-
) -> RESTResponseType:
|
|
832
|
-
"""List file contents
|
|
833
|
-
|
|
834
|
-
FileContent represents a single file and its metadata, which can be added and removed from repositories.
|
|
835
|
-
|
|
836
|
-
:param pulp_domain: (required)
|
|
837
|
-
:type pulp_domain: str
|
|
838
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
839
|
-
:type x_task_diagnostics: List[str]
|
|
840
|
-
:param digest: Filter results where digest matches value
|
|
841
|
-
:type digest: str
|
|
842
|
-
:param limit: Number of results to return per page.
|
|
843
|
-
:type limit: int
|
|
844
|
-
:param offset: The initial index from which to return the results.
|
|
845
|
-
:type offset: int
|
|
846
|
-
: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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
847
|
-
:type ordering: List[str]
|
|
848
|
-
:param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
849
|
-
:type orphaned_for: float
|
|
850
|
-
:param prn__in: Multiple values may be separated by commas.
|
|
851
|
-
:type prn__in: List[str]
|
|
852
|
-
:param pulp_href__in: Multiple values may be separated by commas.
|
|
853
|
-
:type pulp_href__in: List[str]
|
|
854
|
-
:param pulp_id__in: Multiple values may be separated by commas.
|
|
855
|
-
:type pulp_id__in: List[str]
|
|
856
|
-
:param pulp_label_select: Filter labels by search string
|
|
857
|
-
:type pulp_label_select: str
|
|
858
|
-
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
859
|
-
:type q: str
|
|
860
|
-
:param relative_path: Filter results where relative_path matches value
|
|
861
|
-
:type relative_path: str
|
|
862
|
-
:param relative_path__contains: Filter results where relative_path contains value
|
|
863
|
-
:type relative_path__contains: str
|
|
864
|
-
:param relative_path__icontains: Filter results where relative_path contains value
|
|
865
|
-
:type relative_path__icontains: str
|
|
866
|
-
:param relative_path__iexact: Filter results where relative_path matches value
|
|
867
|
-
:type relative_path__iexact: str
|
|
868
|
-
:param relative_path__in: Filter results where relative_path is in a comma-separated list of values
|
|
869
|
-
:type relative_path__in: List[str]
|
|
870
|
-
:param relative_path__iregex: Filter results where relative_path matches regex value
|
|
871
|
-
:type relative_path__iregex: str
|
|
872
|
-
:param relative_path__istartswith: Filter results where relative_path starts with value
|
|
873
|
-
:type relative_path__istartswith: str
|
|
874
|
-
:param relative_path__regex: Filter results where relative_path matches regex value
|
|
875
|
-
:type relative_path__regex: str
|
|
876
|
-
:param relative_path__startswith: Filter results where relative_path starts with value
|
|
877
|
-
:type relative_path__startswith: str
|
|
878
|
-
:param repository_version: Repository Version referenced by HREF/PRN
|
|
879
|
-
:type repository_version: str
|
|
880
|
-
:param repository_version_added: Repository Version referenced by HREF/PRN
|
|
881
|
-
:type repository_version_added: str
|
|
882
|
-
:param repository_version_removed: Repository Version referenced by HREF/PRN
|
|
883
|
-
:type repository_version_removed: str
|
|
884
|
-
:param sha256:
|
|
885
|
-
:type sha256: str
|
|
886
|
-
:param fields: A list of fields to include in the response.
|
|
887
|
-
:type fields: List[str]
|
|
888
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
889
|
-
:type exclude_fields: List[str]
|
|
890
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
891
|
-
number provided, it will be total request
|
|
892
|
-
timeout. It can also be a pair (tuple) of
|
|
893
|
-
(connection, read) timeouts.
|
|
894
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
895
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
896
|
-
request; this effectively ignores the
|
|
897
|
-
authentication in the spec for a single request.
|
|
898
|
-
:type _request_auth: dict, optional
|
|
899
|
-
:param _content_type: force content-type for the request.
|
|
900
|
-
:type _content_type: str, Optional
|
|
901
|
-
:param _headers: set to override the headers for a single
|
|
902
|
-
request; this effectively ignores the headers
|
|
903
|
-
in the spec for a single request.
|
|
904
|
-
:type _headers: dict, optional
|
|
905
|
-
:param _host_index: set to override the host_index for a single
|
|
906
|
-
request; this effectively ignores the host_index
|
|
907
|
-
in the spec for a single request.
|
|
908
|
-
:type _host_index: int, optional
|
|
909
|
-
:return: Returns the result object.
|
|
910
|
-
""" # noqa: E501
|
|
911
|
-
|
|
912
|
-
_param = self._list_serialize(
|
|
913
|
-
pulp_domain=pulp_domain,
|
|
914
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
915
|
-
digest=digest,
|
|
916
|
-
limit=limit,
|
|
917
|
-
offset=offset,
|
|
918
|
-
ordering=ordering,
|
|
919
|
-
orphaned_for=orphaned_for,
|
|
920
|
-
prn__in=prn__in,
|
|
921
|
-
pulp_href__in=pulp_href__in,
|
|
922
|
-
pulp_id__in=pulp_id__in,
|
|
923
|
-
pulp_label_select=pulp_label_select,
|
|
924
|
-
q=q,
|
|
925
|
-
relative_path=relative_path,
|
|
926
|
-
relative_path__contains=relative_path__contains,
|
|
927
|
-
relative_path__icontains=relative_path__icontains,
|
|
928
|
-
relative_path__iexact=relative_path__iexact,
|
|
929
|
-
relative_path__in=relative_path__in,
|
|
930
|
-
relative_path__iregex=relative_path__iregex,
|
|
931
|
-
relative_path__istartswith=relative_path__istartswith,
|
|
932
|
-
relative_path__regex=relative_path__regex,
|
|
933
|
-
relative_path__startswith=relative_path__startswith,
|
|
934
|
-
repository_version=repository_version,
|
|
935
|
-
repository_version_added=repository_version_added,
|
|
936
|
-
repository_version_removed=repository_version_removed,
|
|
937
|
-
sha256=sha256,
|
|
938
|
-
fields=fields,
|
|
939
|
-
exclude_fields=exclude_fields,
|
|
940
|
-
_request_auth=_request_auth,
|
|
941
|
-
_content_type=_content_type,
|
|
942
|
-
_headers=_headers,
|
|
943
|
-
_host_index=_host_index
|
|
944
|
-
)
|
|
945
|
-
|
|
946
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
947
|
-
'200': "PaginatedfileFileContentResponseList",
|
|
948
|
-
}
|
|
949
|
-
response_data = self.api_client.call_api(
|
|
950
|
-
*_param,
|
|
951
|
-
_request_timeout=_request_timeout
|
|
952
|
-
)
|
|
953
|
-
return response_data.response
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
def _list_serialize(
|
|
957
|
-
self,
|
|
958
|
-
pulp_domain,
|
|
959
|
-
x_task_diagnostics,
|
|
960
|
-
digest,
|
|
961
|
-
limit,
|
|
962
|
-
offset,
|
|
963
|
-
ordering,
|
|
964
|
-
orphaned_for,
|
|
965
|
-
prn__in,
|
|
966
|
-
pulp_href__in,
|
|
967
|
-
pulp_id__in,
|
|
968
|
-
pulp_label_select,
|
|
969
|
-
q,
|
|
970
|
-
relative_path,
|
|
971
|
-
relative_path__contains,
|
|
972
|
-
relative_path__icontains,
|
|
973
|
-
relative_path__iexact,
|
|
974
|
-
relative_path__in,
|
|
975
|
-
relative_path__iregex,
|
|
976
|
-
relative_path__istartswith,
|
|
977
|
-
relative_path__regex,
|
|
978
|
-
relative_path__startswith,
|
|
979
|
-
repository_version,
|
|
980
|
-
repository_version_added,
|
|
981
|
-
repository_version_removed,
|
|
982
|
-
sha256,
|
|
983
|
-
fields,
|
|
984
|
-
exclude_fields,
|
|
985
|
-
_request_auth,
|
|
986
|
-
_content_type,
|
|
987
|
-
_headers,
|
|
988
|
-
_host_index,
|
|
989
|
-
) -> RequestSerialized:
|
|
990
|
-
|
|
991
|
-
_host = None
|
|
992
|
-
|
|
993
|
-
_collection_formats: Dict[str, str] = {
|
|
994
|
-
'X-Task-Diagnostics': 'csv',
|
|
995
|
-
'ordering': 'csv',
|
|
996
|
-
'prn__in': 'csv',
|
|
997
|
-
'pulp_href__in': 'csv',
|
|
998
|
-
'pulp_id__in': 'csv',
|
|
999
|
-
'relative_path__in': 'csv',
|
|
1000
|
-
'fields': 'multi',
|
|
1001
|
-
'exclude_fields': 'multi',
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
_path_params: Dict[str, str] = {}
|
|
1005
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1006
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1007
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1008
|
-
_files: Dict[
|
|
1009
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1010
|
-
] = {}
|
|
1011
|
-
_body_params: Optional[bytes] = None
|
|
1012
|
-
|
|
1013
|
-
# process the path parameters
|
|
1014
|
-
if pulp_domain is not None:
|
|
1015
|
-
_path_params['pulp_domain'] = pulp_domain
|
|
1016
|
-
# process the query parameters
|
|
1017
|
-
if digest is not None:
|
|
1018
|
-
|
|
1019
|
-
_query_params.append(('digest', digest))
|
|
1020
|
-
|
|
1021
|
-
if limit is not None:
|
|
1022
|
-
|
|
1023
|
-
_query_params.append(('limit', limit))
|
|
1024
|
-
|
|
1025
|
-
if offset is not None:
|
|
1026
|
-
|
|
1027
|
-
_query_params.append(('offset', offset))
|
|
1028
|
-
|
|
1029
|
-
if ordering is not None:
|
|
1030
|
-
|
|
1031
|
-
_query_params.append(('ordering', ordering))
|
|
1032
|
-
|
|
1033
|
-
if orphaned_for is not None:
|
|
1034
|
-
|
|
1035
|
-
_query_params.append(('orphaned_for', orphaned_for))
|
|
1036
|
-
|
|
1037
|
-
if prn__in is not None:
|
|
1038
|
-
|
|
1039
|
-
_query_params.append(('prn__in', prn__in))
|
|
1040
|
-
|
|
1041
|
-
if pulp_href__in is not None:
|
|
1042
|
-
|
|
1043
|
-
_query_params.append(('pulp_href__in', pulp_href__in))
|
|
1044
|
-
|
|
1045
|
-
if pulp_id__in is not None:
|
|
1046
|
-
|
|
1047
|
-
_query_params.append(('pulp_id__in', pulp_id__in))
|
|
1048
|
-
|
|
1049
|
-
if pulp_label_select is not None:
|
|
1050
|
-
|
|
1051
|
-
_query_params.append(('pulp_label_select', pulp_label_select))
|
|
1052
|
-
|
|
1053
|
-
if q is not None:
|
|
1054
|
-
|
|
1055
|
-
_query_params.append(('q', q))
|
|
1056
|
-
|
|
1057
|
-
if relative_path is not None:
|
|
1058
|
-
|
|
1059
|
-
_query_params.append(('relative_path', relative_path))
|
|
1060
|
-
|
|
1061
|
-
if relative_path__contains is not None:
|
|
1062
|
-
|
|
1063
|
-
_query_params.append(('relative_path__contains', relative_path__contains))
|
|
1064
|
-
|
|
1065
|
-
if relative_path__icontains is not None:
|
|
1066
|
-
|
|
1067
|
-
_query_params.append(('relative_path__icontains', relative_path__icontains))
|
|
1068
|
-
|
|
1069
|
-
if relative_path__iexact is not None:
|
|
1070
|
-
|
|
1071
|
-
_query_params.append(('relative_path__iexact', relative_path__iexact))
|
|
1072
|
-
|
|
1073
|
-
if relative_path__in is not None:
|
|
1074
|
-
|
|
1075
|
-
_query_params.append(('relative_path__in', relative_path__in))
|
|
1076
|
-
|
|
1077
|
-
if relative_path__iregex is not None:
|
|
1078
|
-
|
|
1079
|
-
_query_params.append(('relative_path__iregex', relative_path__iregex))
|
|
1080
|
-
|
|
1081
|
-
if relative_path__istartswith is not None:
|
|
1082
|
-
|
|
1083
|
-
_query_params.append(('relative_path__istartswith', relative_path__istartswith))
|
|
1084
|
-
|
|
1085
|
-
if relative_path__regex is not None:
|
|
1086
|
-
|
|
1087
|
-
_query_params.append(('relative_path__regex', relative_path__regex))
|
|
1088
|
-
|
|
1089
|
-
if relative_path__startswith is not None:
|
|
1090
|
-
|
|
1091
|
-
_query_params.append(('relative_path__startswith', relative_path__startswith))
|
|
1092
|
-
|
|
1093
|
-
if repository_version is not None:
|
|
1094
|
-
|
|
1095
|
-
_query_params.append(('repository_version', repository_version))
|
|
1096
|
-
|
|
1097
|
-
if repository_version_added is not None:
|
|
1098
|
-
|
|
1099
|
-
_query_params.append(('repository_version_added', repository_version_added))
|
|
1100
|
-
|
|
1101
|
-
if repository_version_removed is not None:
|
|
1102
|
-
|
|
1103
|
-
_query_params.append(('repository_version_removed', repository_version_removed))
|
|
1104
|
-
|
|
1105
|
-
if sha256 is not None:
|
|
1106
|
-
|
|
1107
|
-
_query_params.append(('sha256', sha256))
|
|
1108
|
-
|
|
1109
|
-
if fields is not None:
|
|
1110
|
-
|
|
1111
|
-
_query_params.append(('fields', fields))
|
|
1112
|
-
|
|
1113
|
-
if exclude_fields is not None:
|
|
1114
|
-
|
|
1115
|
-
_query_params.append(('exclude_fields', exclude_fields))
|
|
1116
|
-
|
|
1117
|
-
# process the header parameters
|
|
1118
|
-
if x_task_diagnostics is not None:
|
|
1119
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
1120
|
-
# process the form parameters
|
|
1121
|
-
# process the body parameter
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
# set the HTTP header `Accept`
|
|
1125
|
-
if 'Accept' not in _header_params:
|
|
1126
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1127
|
-
[
|
|
1128
|
-
'application/json'
|
|
1129
|
-
]
|
|
1130
|
-
)
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
# authentication setting
|
|
1134
|
-
_auth_settings: List[str] = [
|
|
1135
|
-
'json_header_remote_authentication',
|
|
1136
|
-
'basicAuth',
|
|
1137
|
-
'cookieAuth'
|
|
1138
|
-
]
|
|
1139
|
-
|
|
1140
|
-
return self.api_client.param_serialize(
|
|
1141
|
-
method='GET',
|
|
1142
|
-
resource_path='/api/pulp/{pulp_domain}/api/v3/content/file/files/',
|
|
1143
|
-
path_params=_path_params,
|
|
1144
|
-
query_params=_query_params,
|
|
1145
|
-
header_params=_header_params,
|
|
1146
|
-
body=_body_params,
|
|
1147
|
-
post_params=_form_params,
|
|
1148
|
-
files=_files,
|
|
1149
|
-
auth_settings=_auth_settings,
|
|
1150
|
-
collection_formats=_collection_formats,
|
|
1151
|
-
_host=_host,
|
|
1152
|
-
_request_auth=_request_auth
|
|
1153
|
-
)
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
@validate_call
|
|
1159
|
-
def read(
|
|
1160
|
-
self,
|
|
1161
|
-
file_file_content_href: StrictStr,
|
|
1162
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1163
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1164
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1165
|
-
_request_timeout: Union[
|
|
1166
|
-
None,
|
|
1167
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1168
|
-
Tuple[
|
|
1169
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1170
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1171
|
-
]
|
|
1172
|
-
] = None,
|
|
1173
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1174
|
-
_content_type: Optional[StrictStr] = None,
|
|
1175
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1176
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1177
|
-
) -> FileFileContentResponse:
|
|
1178
|
-
"""Inspect a file content
|
|
1179
|
-
|
|
1180
|
-
FileContent represents a single file and its metadata, which can be added and removed from repositories.
|
|
1181
|
-
|
|
1182
|
-
:param file_file_content_href: (required)
|
|
1183
|
-
:type file_file_content_href: str
|
|
1184
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1185
|
-
:type x_task_diagnostics: List[str]
|
|
1186
|
-
:param fields: A list of fields to include in the response.
|
|
1187
|
-
:type fields: List[str]
|
|
1188
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
1189
|
-
:type exclude_fields: List[str]
|
|
1190
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1191
|
-
number provided, it will be total request
|
|
1192
|
-
timeout. It can also be a pair (tuple) of
|
|
1193
|
-
(connection, read) timeouts.
|
|
1194
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1195
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1196
|
-
request; this effectively ignores the
|
|
1197
|
-
authentication in the spec for a single request.
|
|
1198
|
-
:type _request_auth: dict, optional
|
|
1199
|
-
:param _content_type: force content-type for the request.
|
|
1200
|
-
:type _content_type: str, Optional
|
|
1201
|
-
:param _headers: set to override the headers for a single
|
|
1202
|
-
request; this effectively ignores the headers
|
|
1203
|
-
in the spec for a single request.
|
|
1204
|
-
:type _headers: dict, optional
|
|
1205
|
-
:param _host_index: set to override the host_index for a single
|
|
1206
|
-
request; this effectively ignores the host_index
|
|
1207
|
-
in the spec for a single request.
|
|
1208
|
-
:type _host_index: int, optional
|
|
1209
|
-
:return: Returns the result object.
|
|
1210
|
-
""" # noqa: E501
|
|
1211
|
-
|
|
1212
|
-
_param = self._read_serialize(
|
|
1213
|
-
file_file_content_href=file_file_content_href,
|
|
1214
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1215
|
-
fields=fields,
|
|
1216
|
-
exclude_fields=exclude_fields,
|
|
1217
|
-
_request_auth=_request_auth,
|
|
1218
|
-
_content_type=_content_type,
|
|
1219
|
-
_headers=_headers,
|
|
1220
|
-
_host_index=_host_index
|
|
1221
|
-
)
|
|
1222
|
-
|
|
1223
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1224
|
-
'200': "FileFileContentResponse",
|
|
1225
|
-
}
|
|
1226
|
-
response_data = self.api_client.call_api(
|
|
1227
|
-
*_param,
|
|
1228
|
-
_request_timeout=_request_timeout
|
|
1229
|
-
)
|
|
1230
|
-
response_data.read()
|
|
1231
|
-
return self.api_client.response_deserialize(
|
|
1232
|
-
response_data=response_data,
|
|
1233
|
-
response_types_map=_response_types_map,
|
|
1234
|
-
).data
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
@validate_call
|
|
1238
|
-
def read_with_http_info(
|
|
1239
|
-
self,
|
|
1240
|
-
file_file_content_href: StrictStr,
|
|
1241
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1242
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1243
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1244
|
-
_request_timeout: Union[
|
|
1245
|
-
None,
|
|
1246
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1247
|
-
Tuple[
|
|
1248
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1249
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1250
|
-
]
|
|
1251
|
-
] = None,
|
|
1252
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1253
|
-
_content_type: Optional[StrictStr] = None,
|
|
1254
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1255
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1256
|
-
) -> ApiResponse[FileFileContentResponse]:
|
|
1257
|
-
"""Inspect a file content
|
|
1258
|
-
|
|
1259
|
-
FileContent represents a single file and its metadata, which can be added and removed from repositories.
|
|
1260
|
-
|
|
1261
|
-
:param file_file_content_href: (required)
|
|
1262
|
-
:type file_file_content_href: str
|
|
1263
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1264
|
-
:type x_task_diagnostics: List[str]
|
|
1265
|
-
:param fields: A list of fields to include in the response.
|
|
1266
|
-
:type fields: List[str]
|
|
1267
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
1268
|
-
:type exclude_fields: List[str]
|
|
1269
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1270
|
-
number provided, it will be total request
|
|
1271
|
-
timeout. It can also be a pair (tuple) of
|
|
1272
|
-
(connection, read) timeouts.
|
|
1273
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1274
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1275
|
-
request; this effectively ignores the
|
|
1276
|
-
authentication in the spec for a single request.
|
|
1277
|
-
:type _request_auth: dict, optional
|
|
1278
|
-
:param _content_type: force content-type for the request.
|
|
1279
|
-
:type _content_type: str, Optional
|
|
1280
|
-
:param _headers: set to override the headers for a single
|
|
1281
|
-
request; this effectively ignores the headers
|
|
1282
|
-
in the spec for a single request.
|
|
1283
|
-
:type _headers: dict, optional
|
|
1284
|
-
:param _host_index: set to override the host_index for a single
|
|
1285
|
-
request; this effectively ignores the host_index
|
|
1286
|
-
in the spec for a single request.
|
|
1287
|
-
:type _host_index: int, optional
|
|
1288
|
-
:return: Returns the result object.
|
|
1289
|
-
""" # noqa: E501
|
|
1290
|
-
|
|
1291
|
-
_param = self._read_serialize(
|
|
1292
|
-
file_file_content_href=file_file_content_href,
|
|
1293
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1294
|
-
fields=fields,
|
|
1295
|
-
exclude_fields=exclude_fields,
|
|
1296
|
-
_request_auth=_request_auth,
|
|
1297
|
-
_content_type=_content_type,
|
|
1298
|
-
_headers=_headers,
|
|
1299
|
-
_host_index=_host_index
|
|
1300
|
-
)
|
|
1301
|
-
|
|
1302
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1303
|
-
'200': "FileFileContentResponse",
|
|
1304
|
-
}
|
|
1305
|
-
response_data = self.api_client.call_api(
|
|
1306
|
-
*_param,
|
|
1307
|
-
_request_timeout=_request_timeout
|
|
1308
|
-
)
|
|
1309
|
-
response_data.read()
|
|
1310
|
-
return self.api_client.response_deserialize(
|
|
1311
|
-
response_data=response_data,
|
|
1312
|
-
response_types_map=_response_types_map,
|
|
1313
|
-
)
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
@validate_call
|
|
1317
|
-
def read_without_preload_content(
|
|
1318
|
-
self,
|
|
1319
|
-
file_file_content_href: StrictStr,
|
|
1320
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1321
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1322
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1323
|
-
_request_timeout: Union[
|
|
1324
|
-
None,
|
|
1325
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1326
|
-
Tuple[
|
|
1327
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1328
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1329
|
-
]
|
|
1330
|
-
] = None,
|
|
1331
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1332
|
-
_content_type: Optional[StrictStr] = None,
|
|
1333
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1334
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1335
|
-
) -> RESTResponseType:
|
|
1336
|
-
"""Inspect a file content
|
|
1337
|
-
|
|
1338
|
-
FileContent represents a single file and its metadata, which can be added and removed from repositories.
|
|
1339
|
-
|
|
1340
|
-
:param file_file_content_href: (required)
|
|
1341
|
-
:type file_file_content_href: str
|
|
1342
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1343
|
-
:type x_task_diagnostics: List[str]
|
|
1344
|
-
:param fields: A list of fields to include in the response.
|
|
1345
|
-
:type fields: List[str]
|
|
1346
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
1347
|
-
:type exclude_fields: List[str]
|
|
1348
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1349
|
-
number provided, it will be total request
|
|
1350
|
-
timeout. It can also be a pair (tuple) of
|
|
1351
|
-
(connection, read) timeouts.
|
|
1352
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1353
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1354
|
-
request; this effectively ignores the
|
|
1355
|
-
authentication in the spec for a single request.
|
|
1356
|
-
:type _request_auth: dict, optional
|
|
1357
|
-
:param _content_type: force content-type for the request.
|
|
1358
|
-
:type _content_type: str, Optional
|
|
1359
|
-
:param _headers: set to override the headers for a single
|
|
1360
|
-
request; this effectively ignores the headers
|
|
1361
|
-
in the spec for a single request.
|
|
1362
|
-
:type _headers: dict, optional
|
|
1363
|
-
:param _host_index: set to override the host_index for a single
|
|
1364
|
-
request; this effectively ignores the host_index
|
|
1365
|
-
in the spec for a single request.
|
|
1366
|
-
:type _host_index: int, optional
|
|
1367
|
-
:return: Returns the result object.
|
|
1368
|
-
""" # noqa: E501
|
|
1369
|
-
|
|
1370
|
-
_param = self._read_serialize(
|
|
1371
|
-
file_file_content_href=file_file_content_href,
|
|
1372
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1373
|
-
fields=fields,
|
|
1374
|
-
exclude_fields=exclude_fields,
|
|
1375
|
-
_request_auth=_request_auth,
|
|
1376
|
-
_content_type=_content_type,
|
|
1377
|
-
_headers=_headers,
|
|
1378
|
-
_host_index=_host_index
|
|
1379
|
-
)
|
|
1380
|
-
|
|
1381
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1382
|
-
'200': "FileFileContentResponse",
|
|
1383
|
-
}
|
|
1384
|
-
response_data = self.api_client.call_api(
|
|
1385
|
-
*_param,
|
|
1386
|
-
_request_timeout=_request_timeout
|
|
1387
|
-
)
|
|
1388
|
-
return response_data.response
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
def _read_serialize(
|
|
1392
|
-
self,
|
|
1393
|
-
file_file_content_href,
|
|
1394
|
-
x_task_diagnostics,
|
|
1395
|
-
fields,
|
|
1396
|
-
exclude_fields,
|
|
1397
|
-
_request_auth,
|
|
1398
|
-
_content_type,
|
|
1399
|
-
_headers,
|
|
1400
|
-
_host_index,
|
|
1401
|
-
) -> RequestSerialized:
|
|
1402
|
-
|
|
1403
|
-
_host = None
|
|
1404
|
-
|
|
1405
|
-
_collection_formats: Dict[str, str] = {
|
|
1406
|
-
'X-Task-Diagnostics': 'csv',
|
|
1407
|
-
'fields': 'multi',
|
|
1408
|
-
'exclude_fields': 'multi',
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
_path_params: Dict[str, str] = {}
|
|
1412
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1413
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1414
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1415
|
-
_files: Dict[
|
|
1416
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1417
|
-
] = {}
|
|
1418
|
-
_body_params: Optional[bytes] = None
|
|
1419
|
-
|
|
1420
|
-
# process the path parameters
|
|
1421
|
-
if file_file_content_href is not None:
|
|
1422
|
-
_path_params['file_file_content_href'] = file_file_content_href
|
|
1423
|
-
# process the query parameters
|
|
1424
|
-
if fields is not None:
|
|
1425
|
-
|
|
1426
|
-
_query_params.append(('fields', fields))
|
|
1427
|
-
|
|
1428
|
-
if exclude_fields is not None:
|
|
1429
|
-
|
|
1430
|
-
_query_params.append(('exclude_fields', exclude_fields))
|
|
1431
|
-
|
|
1432
|
-
# process the header parameters
|
|
1433
|
-
if x_task_diagnostics is not None:
|
|
1434
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
1435
|
-
# process the form parameters
|
|
1436
|
-
# process the body parameter
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
# set the HTTP header `Accept`
|
|
1440
|
-
if 'Accept' not in _header_params:
|
|
1441
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1442
|
-
[
|
|
1443
|
-
'application/json'
|
|
1444
|
-
]
|
|
1445
|
-
)
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
# authentication setting
|
|
1449
|
-
_auth_settings: List[str] = [
|
|
1450
|
-
'json_header_remote_authentication',
|
|
1451
|
-
'basicAuth',
|
|
1452
|
-
'cookieAuth'
|
|
1453
|
-
]
|
|
1454
|
-
|
|
1455
|
-
return self.api_client.param_serialize(
|
|
1456
|
-
method='GET',
|
|
1457
|
-
resource_path='{file_file_content_href}',
|
|
1458
|
-
path_params=_path_params,
|
|
1459
|
-
query_params=_query_params,
|
|
1460
|
-
header_params=_header_params,
|
|
1461
|
-
body=_body_params,
|
|
1462
|
-
post_params=_form_params,
|
|
1463
|
-
files=_files,
|
|
1464
|
-
auth_settings=_auth_settings,
|
|
1465
|
-
collection_formats=_collection_formats,
|
|
1466
|
-
_host=_host,
|
|
1467
|
-
_request_auth=_request_auth
|
|
1468
|
-
)
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
@validate_call
|
|
1474
|
-
def set_label(
|
|
1475
|
-
self,
|
|
1476
|
-
file_file_content_href: StrictStr,
|
|
1477
|
-
set_label: SetLabel,
|
|
1478
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1479
|
-
_request_timeout: Union[
|
|
1480
|
-
None,
|
|
1481
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1482
|
-
Tuple[
|
|
1483
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1484
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1485
|
-
]
|
|
1486
|
-
] = None,
|
|
1487
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1488
|
-
_content_type: Optional[StrictStr] = None,
|
|
1489
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1490
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1491
|
-
) -> SetLabelResponse:
|
|
1492
|
-
"""Set a label
|
|
1493
|
-
|
|
1494
|
-
Set a single pulp_label on the object to a specific value or null.
|
|
1495
|
-
|
|
1496
|
-
:param file_file_content_href: (required)
|
|
1497
|
-
:type file_file_content_href: str
|
|
1498
|
-
:param set_label: (required)
|
|
1499
|
-
:type set_label: SetLabel
|
|
1500
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1501
|
-
:type x_task_diagnostics: List[str]
|
|
1502
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1503
|
-
number provided, it will be total request
|
|
1504
|
-
timeout. It can also be a pair (tuple) of
|
|
1505
|
-
(connection, read) timeouts.
|
|
1506
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1507
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1508
|
-
request; this effectively ignores the
|
|
1509
|
-
authentication in the spec for a single request.
|
|
1510
|
-
:type _request_auth: dict, optional
|
|
1511
|
-
:param _content_type: force content-type for the request.
|
|
1512
|
-
:type _content_type: str, Optional
|
|
1513
|
-
:param _headers: set to override the headers for a single
|
|
1514
|
-
request; this effectively ignores the headers
|
|
1515
|
-
in the spec for a single request.
|
|
1516
|
-
:type _headers: dict, optional
|
|
1517
|
-
:param _host_index: set to override the host_index for a single
|
|
1518
|
-
request; this effectively ignores the host_index
|
|
1519
|
-
in the spec for a single request.
|
|
1520
|
-
:type _host_index: int, optional
|
|
1521
|
-
:return: Returns the result object.
|
|
1522
|
-
""" # noqa: E501
|
|
1523
|
-
|
|
1524
|
-
_param = self._set_label_serialize(
|
|
1525
|
-
file_file_content_href=file_file_content_href,
|
|
1526
|
-
set_label=set_label,
|
|
1527
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1528
|
-
_request_auth=_request_auth,
|
|
1529
|
-
_content_type=_content_type,
|
|
1530
|
-
_headers=_headers,
|
|
1531
|
-
_host_index=_host_index
|
|
1532
|
-
)
|
|
1533
|
-
|
|
1534
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1535
|
-
'201': "SetLabelResponse",
|
|
1536
|
-
}
|
|
1537
|
-
response_data = self.api_client.call_api(
|
|
1538
|
-
*_param,
|
|
1539
|
-
_request_timeout=_request_timeout
|
|
1540
|
-
)
|
|
1541
|
-
response_data.read()
|
|
1542
|
-
return self.api_client.response_deserialize(
|
|
1543
|
-
response_data=response_data,
|
|
1544
|
-
response_types_map=_response_types_map,
|
|
1545
|
-
).data
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
@validate_call
|
|
1549
|
-
def set_label_with_http_info(
|
|
1550
|
-
self,
|
|
1551
|
-
file_file_content_href: StrictStr,
|
|
1552
|
-
set_label: SetLabel,
|
|
1553
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1554
|
-
_request_timeout: Union[
|
|
1555
|
-
None,
|
|
1556
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1557
|
-
Tuple[
|
|
1558
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1559
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1560
|
-
]
|
|
1561
|
-
] = None,
|
|
1562
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1563
|
-
_content_type: Optional[StrictStr] = None,
|
|
1564
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1565
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1566
|
-
) -> ApiResponse[SetLabelResponse]:
|
|
1567
|
-
"""Set a label
|
|
1568
|
-
|
|
1569
|
-
Set a single pulp_label on the object to a specific value or null.
|
|
1570
|
-
|
|
1571
|
-
:param file_file_content_href: (required)
|
|
1572
|
-
:type file_file_content_href: str
|
|
1573
|
-
:param set_label: (required)
|
|
1574
|
-
:type set_label: SetLabel
|
|
1575
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1576
|
-
:type x_task_diagnostics: List[str]
|
|
1577
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1578
|
-
number provided, it will be total request
|
|
1579
|
-
timeout. It can also be a pair (tuple) of
|
|
1580
|
-
(connection, read) timeouts.
|
|
1581
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1582
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1583
|
-
request; this effectively ignores the
|
|
1584
|
-
authentication in the spec for a single request.
|
|
1585
|
-
:type _request_auth: dict, optional
|
|
1586
|
-
:param _content_type: force content-type for the request.
|
|
1587
|
-
:type _content_type: str, Optional
|
|
1588
|
-
:param _headers: set to override the headers for a single
|
|
1589
|
-
request; this effectively ignores the headers
|
|
1590
|
-
in the spec for a single request.
|
|
1591
|
-
:type _headers: dict, optional
|
|
1592
|
-
:param _host_index: set to override the host_index for a single
|
|
1593
|
-
request; this effectively ignores the host_index
|
|
1594
|
-
in the spec for a single request.
|
|
1595
|
-
:type _host_index: int, optional
|
|
1596
|
-
:return: Returns the result object.
|
|
1597
|
-
""" # noqa: E501
|
|
1598
|
-
|
|
1599
|
-
_param = self._set_label_serialize(
|
|
1600
|
-
file_file_content_href=file_file_content_href,
|
|
1601
|
-
set_label=set_label,
|
|
1602
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1603
|
-
_request_auth=_request_auth,
|
|
1604
|
-
_content_type=_content_type,
|
|
1605
|
-
_headers=_headers,
|
|
1606
|
-
_host_index=_host_index
|
|
1607
|
-
)
|
|
1608
|
-
|
|
1609
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1610
|
-
'201': "SetLabelResponse",
|
|
1611
|
-
}
|
|
1612
|
-
response_data = self.api_client.call_api(
|
|
1613
|
-
*_param,
|
|
1614
|
-
_request_timeout=_request_timeout
|
|
1615
|
-
)
|
|
1616
|
-
response_data.read()
|
|
1617
|
-
return self.api_client.response_deserialize(
|
|
1618
|
-
response_data=response_data,
|
|
1619
|
-
response_types_map=_response_types_map,
|
|
1620
|
-
)
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
@validate_call
|
|
1624
|
-
def set_label_without_preload_content(
|
|
1625
|
-
self,
|
|
1626
|
-
file_file_content_href: StrictStr,
|
|
1627
|
-
set_label: SetLabel,
|
|
1628
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1629
|
-
_request_timeout: Union[
|
|
1630
|
-
None,
|
|
1631
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1632
|
-
Tuple[
|
|
1633
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1634
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1635
|
-
]
|
|
1636
|
-
] = None,
|
|
1637
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1638
|
-
_content_type: Optional[StrictStr] = None,
|
|
1639
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1640
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1641
|
-
) -> RESTResponseType:
|
|
1642
|
-
"""Set a label
|
|
1643
|
-
|
|
1644
|
-
Set a single pulp_label on the object to a specific value or null.
|
|
1645
|
-
|
|
1646
|
-
:param file_file_content_href: (required)
|
|
1647
|
-
:type file_file_content_href: str
|
|
1648
|
-
:param set_label: (required)
|
|
1649
|
-
:type set_label: SetLabel
|
|
1650
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1651
|
-
:type x_task_diagnostics: List[str]
|
|
1652
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1653
|
-
number provided, it will be total request
|
|
1654
|
-
timeout. It can also be a pair (tuple) of
|
|
1655
|
-
(connection, read) timeouts.
|
|
1656
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1657
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1658
|
-
request; this effectively ignores the
|
|
1659
|
-
authentication in the spec for a single request.
|
|
1660
|
-
:type _request_auth: dict, optional
|
|
1661
|
-
:param _content_type: force content-type for the request.
|
|
1662
|
-
:type _content_type: str, Optional
|
|
1663
|
-
:param _headers: set to override the headers for a single
|
|
1664
|
-
request; this effectively ignores the headers
|
|
1665
|
-
in the spec for a single request.
|
|
1666
|
-
:type _headers: dict, optional
|
|
1667
|
-
:param _host_index: set to override the host_index for a single
|
|
1668
|
-
request; this effectively ignores the host_index
|
|
1669
|
-
in the spec for a single request.
|
|
1670
|
-
:type _host_index: int, optional
|
|
1671
|
-
:return: Returns the result object.
|
|
1672
|
-
""" # noqa: E501
|
|
1673
|
-
|
|
1674
|
-
_param = self._set_label_serialize(
|
|
1675
|
-
file_file_content_href=file_file_content_href,
|
|
1676
|
-
set_label=set_label,
|
|
1677
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1678
|
-
_request_auth=_request_auth,
|
|
1679
|
-
_content_type=_content_type,
|
|
1680
|
-
_headers=_headers,
|
|
1681
|
-
_host_index=_host_index
|
|
1682
|
-
)
|
|
1683
|
-
|
|
1684
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1685
|
-
'201': "SetLabelResponse",
|
|
1686
|
-
}
|
|
1687
|
-
response_data = self.api_client.call_api(
|
|
1688
|
-
*_param,
|
|
1689
|
-
_request_timeout=_request_timeout
|
|
1690
|
-
)
|
|
1691
|
-
return response_data.response
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
def _set_label_serialize(
|
|
1695
|
-
self,
|
|
1696
|
-
file_file_content_href,
|
|
1697
|
-
set_label,
|
|
1698
|
-
x_task_diagnostics,
|
|
1699
|
-
_request_auth,
|
|
1700
|
-
_content_type,
|
|
1701
|
-
_headers,
|
|
1702
|
-
_host_index,
|
|
1703
|
-
) -> RequestSerialized:
|
|
1704
|
-
|
|
1705
|
-
_host = None
|
|
1706
|
-
|
|
1707
|
-
_collection_formats: Dict[str, str] = {
|
|
1708
|
-
'X-Task-Diagnostics': 'csv',
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
|
-
_path_params: Dict[str, str] = {}
|
|
1712
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1713
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1714
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1715
|
-
_files: Dict[
|
|
1716
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1717
|
-
] = {}
|
|
1718
|
-
_body_params: Optional[bytes] = None
|
|
1719
|
-
|
|
1720
|
-
# process the path parameters
|
|
1721
|
-
if file_file_content_href is not None:
|
|
1722
|
-
_path_params['file_file_content_href'] = file_file_content_href
|
|
1723
|
-
# process the query parameters
|
|
1724
|
-
# process the header parameters
|
|
1725
|
-
if x_task_diagnostics is not None:
|
|
1726
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
1727
|
-
# process the form parameters
|
|
1728
|
-
# process the body parameter
|
|
1729
|
-
if set_label is not None:
|
|
1730
|
-
_body_params = set_label
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
# set the HTTP header `Accept`
|
|
1734
|
-
if 'Accept' not in _header_params:
|
|
1735
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1736
|
-
[
|
|
1737
|
-
'application/json'
|
|
1738
|
-
]
|
|
1739
|
-
)
|
|
1740
|
-
|
|
1741
|
-
# set the HTTP header `Content-Type`
|
|
1742
|
-
if _content_type:
|
|
1743
|
-
_header_params['Content-Type'] = _content_type
|
|
1744
|
-
else:
|
|
1745
|
-
_default_content_type = (
|
|
1746
|
-
self.api_client.select_header_content_type(
|
|
1747
|
-
[
|
|
1748
|
-
'application/json',
|
|
1749
|
-
'application/x-www-form-urlencoded',
|
|
1750
|
-
'multipart/form-data'
|
|
1751
|
-
]
|
|
1752
|
-
)
|
|
1753
|
-
)
|
|
1754
|
-
if _default_content_type is not None:
|
|
1755
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1756
|
-
|
|
1757
|
-
# authentication setting
|
|
1758
|
-
_auth_settings: List[str] = [
|
|
1759
|
-
'json_header_remote_authentication',
|
|
1760
|
-
'basicAuth',
|
|
1761
|
-
'cookieAuth'
|
|
1762
|
-
]
|
|
1763
|
-
|
|
1764
|
-
return self.api_client.param_serialize(
|
|
1765
|
-
method='POST',
|
|
1766
|
-
resource_path='{file_file_content_href}set_label/',
|
|
1767
|
-
path_params=_path_params,
|
|
1768
|
-
query_params=_query_params,
|
|
1769
|
-
header_params=_header_params,
|
|
1770
|
-
body=_body_params,
|
|
1771
|
-
post_params=_form_params,
|
|
1772
|
-
files=_files,
|
|
1773
|
-
auth_settings=_auth_settings,
|
|
1774
|
-
collection_formats=_collection_formats,
|
|
1775
|
-
_host=_host,
|
|
1776
|
-
_request_auth=_request_auth
|
|
1777
|
-
)
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
@validate_call
|
|
1783
|
-
def unset_label(
|
|
1784
|
-
self,
|
|
1785
|
-
file_file_content_href: StrictStr,
|
|
1786
|
-
unset_label: UnsetLabel,
|
|
1787
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1788
|
-
_request_timeout: Union[
|
|
1789
|
-
None,
|
|
1790
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1791
|
-
Tuple[
|
|
1792
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1793
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1794
|
-
]
|
|
1795
|
-
] = None,
|
|
1796
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1797
|
-
_content_type: Optional[StrictStr] = None,
|
|
1798
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1799
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1800
|
-
) -> UnsetLabelResponse:
|
|
1801
|
-
"""Unset a label
|
|
1802
|
-
|
|
1803
|
-
Unset a single pulp_label on the object.
|
|
1804
|
-
|
|
1805
|
-
:param file_file_content_href: (required)
|
|
1806
|
-
:type file_file_content_href: str
|
|
1807
|
-
:param unset_label: (required)
|
|
1808
|
-
:type unset_label: UnsetLabel
|
|
1809
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1810
|
-
:type x_task_diagnostics: List[str]
|
|
1811
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1812
|
-
number provided, it will be total request
|
|
1813
|
-
timeout. It can also be a pair (tuple) of
|
|
1814
|
-
(connection, read) timeouts.
|
|
1815
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1816
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1817
|
-
request; this effectively ignores the
|
|
1818
|
-
authentication in the spec for a single request.
|
|
1819
|
-
:type _request_auth: dict, optional
|
|
1820
|
-
:param _content_type: force content-type for the request.
|
|
1821
|
-
:type _content_type: str, Optional
|
|
1822
|
-
:param _headers: set to override the headers for a single
|
|
1823
|
-
request; this effectively ignores the headers
|
|
1824
|
-
in the spec for a single request.
|
|
1825
|
-
:type _headers: dict, optional
|
|
1826
|
-
:param _host_index: set to override the host_index for a single
|
|
1827
|
-
request; this effectively ignores the host_index
|
|
1828
|
-
in the spec for a single request.
|
|
1829
|
-
:type _host_index: int, optional
|
|
1830
|
-
:return: Returns the result object.
|
|
1831
|
-
""" # noqa: E501
|
|
1832
|
-
|
|
1833
|
-
_param = self._unset_label_serialize(
|
|
1834
|
-
file_file_content_href=file_file_content_href,
|
|
1835
|
-
unset_label=unset_label,
|
|
1836
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1837
|
-
_request_auth=_request_auth,
|
|
1838
|
-
_content_type=_content_type,
|
|
1839
|
-
_headers=_headers,
|
|
1840
|
-
_host_index=_host_index
|
|
1841
|
-
)
|
|
1842
|
-
|
|
1843
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1844
|
-
'201': "UnsetLabelResponse",
|
|
1845
|
-
}
|
|
1846
|
-
response_data = self.api_client.call_api(
|
|
1847
|
-
*_param,
|
|
1848
|
-
_request_timeout=_request_timeout
|
|
1849
|
-
)
|
|
1850
|
-
response_data.read()
|
|
1851
|
-
return self.api_client.response_deserialize(
|
|
1852
|
-
response_data=response_data,
|
|
1853
|
-
response_types_map=_response_types_map,
|
|
1854
|
-
).data
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
@validate_call
|
|
1858
|
-
def unset_label_with_http_info(
|
|
1859
|
-
self,
|
|
1860
|
-
file_file_content_href: StrictStr,
|
|
1861
|
-
unset_label: UnsetLabel,
|
|
1862
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1863
|
-
_request_timeout: Union[
|
|
1864
|
-
None,
|
|
1865
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1866
|
-
Tuple[
|
|
1867
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1868
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1869
|
-
]
|
|
1870
|
-
] = None,
|
|
1871
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1872
|
-
_content_type: Optional[StrictStr] = None,
|
|
1873
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1874
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1875
|
-
) -> ApiResponse[UnsetLabelResponse]:
|
|
1876
|
-
"""Unset a label
|
|
1877
|
-
|
|
1878
|
-
Unset a single pulp_label on the object.
|
|
1879
|
-
|
|
1880
|
-
:param file_file_content_href: (required)
|
|
1881
|
-
:type file_file_content_href: str
|
|
1882
|
-
:param unset_label: (required)
|
|
1883
|
-
:type unset_label: UnsetLabel
|
|
1884
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1885
|
-
:type x_task_diagnostics: List[str]
|
|
1886
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1887
|
-
number provided, it will be total request
|
|
1888
|
-
timeout. It can also be a pair (tuple) of
|
|
1889
|
-
(connection, read) timeouts.
|
|
1890
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1891
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1892
|
-
request; this effectively ignores the
|
|
1893
|
-
authentication in the spec for a single request.
|
|
1894
|
-
:type _request_auth: dict, optional
|
|
1895
|
-
:param _content_type: force content-type for the request.
|
|
1896
|
-
:type _content_type: str, Optional
|
|
1897
|
-
:param _headers: set to override the headers for a single
|
|
1898
|
-
request; this effectively ignores the headers
|
|
1899
|
-
in the spec for a single request.
|
|
1900
|
-
:type _headers: dict, optional
|
|
1901
|
-
:param _host_index: set to override the host_index for a single
|
|
1902
|
-
request; this effectively ignores the host_index
|
|
1903
|
-
in the spec for a single request.
|
|
1904
|
-
:type _host_index: int, optional
|
|
1905
|
-
:return: Returns the result object.
|
|
1906
|
-
""" # noqa: E501
|
|
1907
|
-
|
|
1908
|
-
_param = self._unset_label_serialize(
|
|
1909
|
-
file_file_content_href=file_file_content_href,
|
|
1910
|
-
unset_label=unset_label,
|
|
1911
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1912
|
-
_request_auth=_request_auth,
|
|
1913
|
-
_content_type=_content_type,
|
|
1914
|
-
_headers=_headers,
|
|
1915
|
-
_host_index=_host_index
|
|
1916
|
-
)
|
|
1917
|
-
|
|
1918
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1919
|
-
'201': "UnsetLabelResponse",
|
|
1920
|
-
}
|
|
1921
|
-
response_data = self.api_client.call_api(
|
|
1922
|
-
*_param,
|
|
1923
|
-
_request_timeout=_request_timeout
|
|
1924
|
-
)
|
|
1925
|
-
response_data.read()
|
|
1926
|
-
return self.api_client.response_deserialize(
|
|
1927
|
-
response_data=response_data,
|
|
1928
|
-
response_types_map=_response_types_map,
|
|
1929
|
-
)
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
@validate_call
|
|
1933
|
-
def unset_label_without_preload_content(
|
|
1934
|
-
self,
|
|
1935
|
-
file_file_content_href: StrictStr,
|
|
1936
|
-
unset_label: UnsetLabel,
|
|
1937
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1938
|
-
_request_timeout: Union[
|
|
1939
|
-
None,
|
|
1940
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1941
|
-
Tuple[
|
|
1942
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1943
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1944
|
-
]
|
|
1945
|
-
] = None,
|
|
1946
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1947
|
-
_content_type: Optional[StrictStr] = None,
|
|
1948
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1949
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1950
|
-
) -> RESTResponseType:
|
|
1951
|
-
"""Unset a label
|
|
1952
|
-
|
|
1953
|
-
Unset a single pulp_label on the object.
|
|
1954
|
-
|
|
1955
|
-
:param file_file_content_href: (required)
|
|
1956
|
-
:type file_file_content_href: str
|
|
1957
|
-
:param unset_label: (required)
|
|
1958
|
-
:type unset_label: UnsetLabel
|
|
1959
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1960
|
-
:type x_task_diagnostics: List[str]
|
|
1961
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1962
|
-
number provided, it will be total request
|
|
1963
|
-
timeout. It can also be a pair (tuple) of
|
|
1964
|
-
(connection, read) timeouts.
|
|
1965
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1966
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1967
|
-
request; this effectively ignores the
|
|
1968
|
-
authentication in the spec for a single request.
|
|
1969
|
-
:type _request_auth: dict, optional
|
|
1970
|
-
:param _content_type: force content-type for the request.
|
|
1971
|
-
:type _content_type: str, Optional
|
|
1972
|
-
:param _headers: set to override the headers for a single
|
|
1973
|
-
request; this effectively ignores the headers
|
|
1974
|
-
in the spec for a single request.
|
|
1975
|
-
:type _headers: dict, optional
|
|
1976
|
-
:param _host_index: set to override the host_index for a single
|
|
1977
|
-
request; this effectively ignores the host_index
|
|
1978
|
-
in the spec for a single request.
|
|
1979
|
-
:type _host_index: int, optional
|
|
1980
|
-
:return: Returns the result object.
|
|
1981
|
-
""" # noqa: E501
|
|
1982
|
-
|
|
1983
|
-
_param = self._unset_label_serialize(
|
|
1984
|
-
file_file_content_href=file_file_content_href,
|
|
1985
|
-
unset_label=unset_label,
|
|
1986
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1987
|
-
_request_auth=_request_auth,
|
|
1988
|
-
_content_type=_content_type,
|
|
1989
|
-
_headers=_headers,
|
|
1990
|
-
_host_index=_host_index
|
|
1991
|
-
)
|
|
1992
|
-
|
|
1993
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1994
|
-
'201': "UnsetLabelResponse",
|
|
1995
|
-
}
|
|
1996
|
-
response_data = self.api_client.call_api(
|
|
1997
|
-
*_param,
|
|
1998
|
-
_request_timeout=_request_timeout
|
|
1999
|
-
)
|
|
2000
|
-
return response_data.response
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
def _unset_label_serialize(
|
|
2004
|
-
self,
|
|
2005
|
-
file_file_content_href,
|
|
2006
|
-
unset_label,
|
|
2007
|
-
x_task_diagnostics,
|
|
2008
|
-
_request_auth,
|
|
2009
|
-
_content_type,
|
|
2010
|
-
_headers,
|
|
2011
|
-
_host_index,
|
|
2012
|
-
) -> RequestSerialized:
|
|
2013
|
-
|
|
2014
|
-
_host = None
|
|
2015
|
-
|
|
2016
|
-
_collection_formats: Dict[str, str] = {
|
|
2017
|
-
'X-Task-Diagnostics': 'csv',
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
_path_params: Dict[str, str] = {}
|
|
2021
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2022
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2023
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2024
|
-
_files: Dict[
|
|
2025
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2026
|
-
] = {}
|
|
2027
|
-
_body_params: Optional[bytes] = None
|
|
2028
|
-
|
|
2029
|
-
# process the path parameters
|
|
2030
|
-
if file_file_content_href is not None:
|
|
2031
|
-
_path_params['file_file_content_href'] = file_file_content_href
|
|
2032
|
-
# process the query parameters
|
|
2033
|
-
# process the header parameters
|
|
2034
|
-
if x_task_diagnostics is not None:
|
|
2035
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2036
|
-
# process the form parameters
|
|
2037
|
-
# process the body parameter
|
|
2038
|
-
if unset_label is not None:
|
|
2039
|
-
_body_params = unset_label
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
# set the HTTP header `Accept`
|
|
2043
|
-
if 'Accept' not in _header_params:
|
|
2044
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2045
|
-
[
|
|
2046
|
-
'application/json'
|
|
2047
|
-
]
|
|
2048
|
-
)
|
|
2049
|
-
|
|
2050
|
-
# set the HTTP header `Content-Type`
|
|
2051
|
-
if _content_type:
|
|
2052
|
-
_header_params['Content-Type'] = _content_type
|
|
2053
|
-
else:
|
|
2054
|
-
_default_content_type = (
|
|
2055
|
-
self.api_client.select_header_content_type(
|
|
2056
|
-
[
|
|
2057
|
-
'application/json',
|
|
2058
|
-
'application/x-www-form-urlencoded',
|
|
2059
|
-
'multipart/form-data'
|
|
2060
|
-
]
|
|
2061
|
-
)
|
|
2062
|
-
)
|
|
2063
|
-
if _default_content_type is not None:
|
|
2064
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2065
|
-
|
|
2066
|
-
# authentication setting
|
|
2067
|
-
_auth_settings: List[str] = [
|
|
2068
|
-
'json_header_remote_authentication',
|
|
2069
|
-
'basicAuth',
|
|
2070
|
-
'cookieAuth'
|
|
2071
|
-
]
|
|
2072
|
-
|
|
2073
|
-
return self.api_client.param_serialize(
|
|
2074
|
-
method='POST',
|
|
2075
|
-
resource_path='{file_file_content_href}unset_label/',
|
|
2076
|
-
path_params=_path_params,
|
|
2077
|
-
query_params=_query_params,
|
|
2078
|
-
header_params=_header_params,
|
|
2079
|
-
body=_body_params,
|
|
2080
|
-
post_params=_form_params,
|
|
2081
|
-
files=_files,
|
|
2082
|
-
auth_settings=_auth_settings,
|
|
2083
|
-
collection_formats=_collection_formats,
|
|
2084
|
-
_host=_host,
|
|
2085
|
-
_request_auth=_request_auth
|
|
2086
|
-
)
|
|
2087
|
-
|
|
2088
|
-
|