crc-pulpcore-client 20250819.1__py3-none-any.whl → 20250820.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of crc-pulpcore-client might be problematic. Click here for more details.
- crc-pulpcore-client/api_client.py +1 -1
- crc-pulpcore-client/configuration.py +3 -3
- crc-pulpcore-client/models/artifact_distribution_response.py +17 -17
- {crc_pulpcore_client-20250819.1.dist-info → crc_pulpcore_client-20250820.1.dist-info}/METADATA +1 -1
- crc_pulpcore_client-20250820.1.dist-info/RECORD +234 -0
- crc_pulpcore_client-20250820.1.dist-info/top_level.txt +1 -0
- crc_pulpcore_client-20250819.1.dist-info/RECORD +0 -464
- crc_pulpcore_client-20250819.1.dist-info/top_level.txt +0 -2
- services-pulpcore-client/__init__.py +0 -2
- services-pulpcore-client/api/__init__.py +0 -53
- services-pulpcore-client/api/access_policies_api.py +0 -1864
- services-pulpcore-client/api/artifacts_api.py +0 -1615
- services-pulpcore-client/api/content_api.py +0 -598
- services-pulpcore-client/api/content_openpgp_publickey_api.py +0 -1887
- services-pulpcore-client/api/content_openpgp_publicsubkey_api.py +0 -1518
- services-pulpcore-client/api/content_openpgp_signature_api.py +0 -1518
- services-pulpcore-client/api/content_openpgp_userattribute_api.py +0 -1518
- services-pulpcore-client/api/content_openpgp_userid_api.py +0 -1655
- services-pulpcore-client/api/contentguards_api.py +0 -667
- services-pulpcore-client/api/contentguards_composite_api.py +0 -3401
- services-pulpcore-client/api/contentguards_content_redirect_api.py +0 -3401
- services-pulpcore-client/api/contentguards_header_api.py +0 -3401
- services-pulpcore-client/api/contentguards_rbac_api.py +0 -3401
- services-pulpcore-client/api/distributions_api.py +0 -822
- services-pulpcore-client/api/distributions_artifacts_api.py +0 -1103
- services-pulpcore-client/api/distributions_openpgp_api.py +0 -2676
- services-pulpcore-client/api/domains_api.py +0 -3106
- services-pulpcore-client/api/exporters_filesystem_api.py +0 -2157
- services-pulpcore-client/api/exporters_filesystem_exports_api.py +0 -1288
- services-pulpcore-client/api/exporters_pulp_api.py +0 -2157
- services-pulpcore-client/api/exporters_pulp_exports_api.py +0 -1288
- services-pulpcore-client/api/groups_api.py +0 -3368
- services-pulpcore-client/api/groups_roles_api.py +0 -1496
- services-pulpcore-client/api/groups_users_api.py +0 -972
- services-pulpcore-client/api/importers_pulp_api.py +0 -2149
- services-pulpcore-client/api/importers_pulp_import_check_api.py +0 -350
- services-pulpcore-client/api/importers_pulp_imports_api.py +0 -1288
- services-pulpcore-client/api/livez_api.py +0 -329
- services-pulpcore-client/api/login_api.py +0 -897
- services-pulpcore-client/api/orphans_api.py +0 -319
- services-pulpcore-client/api/orphans_cleanup_api.py +0 -350
- services-pulpcore-client/api/publications_api.py +0 -765
- services-pulpcore-client/api/remotes_api.py +0 -850
- services-pulpcore-client/api/repair_api.py +0 -350
- services-pulpcore-client/api/repositories_api.py +0 -872
- services-pulpcore-client/api/repositories_openpgp_keyring_api.py +0 -4546
- services-pulpcore-client/api/repositories_reclaim_space_api.py +0 -350
- services-pulpcore-client/api/repository_versions_api.py +0 -764
- services-pulpcore-client/api/roles_api.py +0 -2269
- services-pulpcore-client/api/signing_services_api.py +0 -811
- services-pulpcore-client/api/status_api.py +0 -337
- services-pulpcore-client/api/task_groups_api.py +0 -1012
- services-pulpcore-client/api/task_schedules_api.py +0 -2114
- services-pulpcore-client/api/tasks_api.py +0 -4299
- services-pulpcore-client/api/uploads_api.py +0 -3346
- services-pulpcore-client/api/upstream_pulps_api.py +0 -4001
- services-pulpcore-client/api/users_api.py +0 -2373
- services-pulpcore-client/api/users_roles_api.py +0 -1496
- services-pulpcore-client/api/workers_api.py +0 -1148
- services-pulpcore-client/api_client.py +0 -798
- services-pulpcore-client/api_response.py +0 -21
- services-pulpcore-client/configuration.py +0 -628
- services-pulpcore-client/exceptions.py +0 -200
- services-pulpcore-client/models/__init__.py +0 -189
- services-pulpcore-client/models/access_policy.py +0 -94
- services-pulpcore-client/models/access_policy_response.py +0 -119
- services-pulpcore-client/models/api_app_status_response.py +0 -99
- services-pulpcore-client/models/artifact_distribution_response.py +0 -126
- services-pulpcore-client/models/artifact_response.py +0 -149
- services-pulpcore-client/models/async_operation_response.py +0 -88
- services-pulpcore-client/models/composite_content_guard.py +0 -98
- services-pulpcore-client/models/composite_content_guard_response.py +0 -114
- services-pulpcore-client/models/content_app_status_response.py +0 -99
- services-pulpcore-client/models/content_guard_response.py +0 -112
- services-pulpcore-client/models/content_redirect_content_guard.py +0 -96
- services-pulpcore-client/models/content_redirect_content_guard_response.py +0 -112
- services-pulpcore-client/models/content_settings_response.py +0 -95
- services-pulpcore-client/models/content_summary_response.py +0 -92
- services-pulpcore-client/models/database_connection_response.py +0 -88
- services-pulpcore-client/models/distribution_response.py +0 -133
- services-pulpcore-client/models/domain.py +0 -114
- services-pulpcore-client/models/domain_backend_migrator.py +0 -91
- services-pulpcore-client/models/domain_response.py +0 -131
- services-pulpcore-client/models/evaluation_response.py +0 -92
- services-pulpcore-client/models/filesystem_export.py +0 -99
- services-pulpcore-client/models/filesystem_export_response.py +0 -118
- services-pulpcore-client/models/filesystem_exporter.py +0 -94
- services-pulpcore-client/models/filesystem_exporter_response.py +0 -110
- services-pulpcore-client/models/generic_remote_response.py +0 -199
- services-pulpcore-client/models/generic_remote_response_hidden_fields_inner.py +0 -90
- services-pulpcore-client/models/generic_remote_response_policy_enum.py +0 -39
- services-pulpcore-client/models/group.py +0 -89
- services-pulpcore-client/models/group_progress_report_response.py +0 -111
- services-pulpcore-client/models/group_response.py +0 -101
- services-pulpcore-client/models/group_role.py +0 -110
- services-pulpcore-client/models/group_role_response.py +0 -134
- services-pulpcore-client/models/group_user.py +0 -89
- services-pulpcore-client/models/group_user_response.py +0 -97
- services-pulpcore-client/models/header_content_guard.py +0 -107
- services-pulpcore-client/models/header_content_guard_response.py +0 -123
- services-pulpcore-client/models/import_response.py +0 -107
- services-pulpcore-client/models/login_response.py +0 -98
- services-pulpcore-client/models/method_enum.py +0 -39
- services-pulpcore-client/models/minimal_task_response.py +0 -125
- services-pulpcore-client/models/multiple_artifact_content_response.py +0 -107
- services-pulpcore-client/models/my_permissions_response.py +0 -88
- services-pulpcore-client/models/nested_open_pgp_public_subkey.py +0 -92
- services-pulpcore-client/models/nested_open_pgp_public_subkey_response.py +0 -104
- services-pulpcore-client/models/nested_open_pgp_signature.py +0 -120
- services-pulpcore-client/models/nested_open_pgp_signature_response.py +0 -124
- services-pulpcore-client/models/nested_open_pgp_user_attribute.py +0 -89
- services-pulpcore-client/models/nested_open_pgp_user_attribute_response.py +0 -101
- services-pulpcore-client/models/nested_open_pgp_user_id.py +0 -89
- services-pulpcore-client/models/nested_open_pgp_user_id_response.py +0 -100
- services-pulpcore-client/models/nested_role.py +0 -93
- services-pulpcore-client/models/nested_role_response.py +0 -92
- services-pulpcore-client/models/object_roles_response.py +0 -96
- services-pulpcore-client/models/open_pgp_distribution.py +0 -116
- services-pulpcore-client/models/open_pgp_distribution_response.py +0 -140
- services-pulpcore-client/models/open_pgp_keyring.py +0 -112
- services-pulpcore-client/models/open_pgp_keyring_response.py +0 -137
- services-pulpcore-client/models/open_pgp_public_key_response.py +0 -150
- services-pulpcore-client/models/open_pgp_public_subkey_response.py +0 -126
- services-pulpcore-client/models/open_pgp_signature_response.py +0 -146
- services-pulpcore-client/models/open_pgp_user_attribute_response.py +0 -124
- services-pulpcore-client/models/open_pgp_user_id_response.py +0 -123
- services-pulpcore-client/models/orphans_cleanup.py +0 -96
- services-pulpcore-client/models/paginated_access_policy_response_list.py +0 -112
- services-pulpcore-client/models/paginated_artifact_distribution_response_list.py +0 -112
- services-pulpcore-client/models/paginated_artifact_response_list.py +0 -112
- services-pulpcore-client/models/paginated_composite_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_content_redirect_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_distribution_response_list.py +0 -112
- services-pulpcore-client/models/paginated_domain_response_list.py +0 -112
- services-pulpcore-client/models/paginated_filesystem_export_response_list.py +0 -112
- services-pulpcore-client/models/paginated_filesystem_exporter_response_list.py +0 -112
- services-pulpcore-client/models/paginated_generic_remote_response_list.py +0 -112
- services-pulpcore-client/models/paginated_group_response_list.py +0 -112
- services-pulpcore-client/models/paginated_group_role_response_list.py +0 -112
- services-pulpcore-client/models/paginated_group_user_response_list.py +0 -112
- services-pulpcore-client/models/paginated_header_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_import_response_list.py +0 -112
- services-pulpcore-client/models/paginated_multiple_artifact_content_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_distribution_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_keyring_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_public_key_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_public_subkey_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_signature_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_user_attribute_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_user_id_response_list.py +0 -112
- services-pulpcore-client/models/paginated_publication_response_list.py +0 -112
- services-pulpcore-client/models/paginated_pulp_export_response_list.py +0 -112
- services-pulpcore-client/models/paginated_pulp_exporter_response_list.py +0 -112
- services-pulpcore-client/models/paginated_pulp_importer_response_list.py +0 -112
- services-pulpcore-client/models/paginated_rbac_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_repository_response_list.py +0 -112
- services-pulpcore-client/models/paginated_repository_version_response_list.py +0 -112
- services-pulpcore-client/models/paginated_role_response_list.py +0 -112
- services-pulpcore-client/models/paginated_signing_service_response_list.py +0 -112
- services-pulpcore-client/models/paginated_task_group_response_list.py +0 -112
- services-pulpcore-client/models/paginated_task_response_list.py +0 -112
- services-pulpcore-client/models/paginated_task_schedule_response_list.py +0 -112
- services-pulpcore-client/models/paginated_upload_response_list.py +0 -112
- services-pulpcore-client/models/paginated_upstream_pulp_response_list.py +0 -112
- services-pulpcore-client/models/paginated_user_response_list.py +0 -112
- services-pulpcore-client/models/paginated_user_role_response_list.py +0 -112
- services-pulpcore-client/models/paginated_worker_response_list.py +0 -112
- services-pulpcore-client/models/patched_access_policy.py +0 -94
- services-pulpcore-client/models/patched_composite_content_guard.py +0 -98
- services-pulpcore-client/models/patched_content_redirect_content_guard.py +0 -96
- services-pulpcore-client/models/patched_domain.py +0 -117
- services-pulpcore-client/models/patched_filesystem_exporter.py +0 -94
- services-pulpcore-client/models/patched_group.py +0 -89
- services-pulpcore-client/models/patched_header_content_guard.py +0 -107
- services-pulpcore-client/models/patched_open_pgp_distribution.py +0 -116
- services-pulpcore-client/models/patched_open_pgp_keyring.py +0 -112
- services-pulpcore-client/models/patched_pulp_exporter.py +0 -100
- services-pulpcore-client/models/patched_pulp_importer.py +0 -91
- services-pulpcore-client/models/patched_rbac_content_guard.py +0 -96
- services-pulpcore-client/models/patched_role.py +0 -98
- services-pulpcore-client/models/patched_task_cancel.py +0 -89
- services-pulpcore-client/models/patched_upstream_pulp.py +0 -147
- services-pulpcore-client/models/patched_user.py +0 -106
- services-pulpcore-client/models/policy357_enum.py +0 -39
- services-pulpcore-client/models/profile_artifact_response.py +0 -88
- services-pulpcore-client/models/progress_report_response.py +0 -115
- services-pulpcore-client/models/publication_response.py +0 -107
- services-pulpcore-client/models/pulp_export.py +0 -104
- services-pulpcore-client/models/pulp_export_response.py +0 -126
- services-pulpcore-client/models/pulp_exporter.py +0 -100
- services-pulpcore-client/models/pulp_exporter_response.py +0 -116
- services-pulpcore-client/models/pulp_import.py +0 -93
- services-pulpcore-client/models/pulp_import_check.py +0 -93
- services-pulpcore-client/models/pulp_import_check_response.py +0 -102
- services-pulpcore-client/models/pulp_importer.py +0 -91
- services-pulpcore-client/models/pulp_importer_response.py +0 -107
- services-pulpcore-client/models/purge.py +0 -92
- services-pulpcore-client/models/rbac_content_guard.py +0 -96
- services-pulpcore-client/models/rbac_content_guard_response.py +0 -136
- services-pulpcore-client/models/reclaim_space.py +0 -90
- services-pulpcore-client/models/redis_connection_response.py +0 -88
- services-pulpcore-client/models/repair.py +0 -88
- services-pulpcore-client/models/repository_add_remove_content.py +0 -93
- services-pulpcore-client/models/repository_response.py +0 -137
- services-pulpcore-client/models/repository_version_response.py +0 -121
- services-pulpcore-client/models/role.py +0 -98
- services-pulpcore-client/models/role_response.py +0 -118
- services-pulpcore-client/models/set_label.py +0 -103
- services-pulpcore-client/models/set_label_response.py +0 -103
- services-pulpcore-client/models/signing_service_response.py +0 -111
- services-pulpcore-client/models/states_enum.py +0 -40
- services-pulpcore-client/models/status_response.py +0 -152
- services-pulpcore-client/models/storage_class_enum.py +0 -40
- services-pulpcore-client/models/storage_response.py +0 -108
- services-pulpcore-client/models/task_group_operation_response.py +0 -88
- services-pulpcore-client/models/task_group_response.py +0 -150
- services-pulpcore-client/models/task_response.py +0 -167
- services-pulpcore-client/models/task_schedule_response.py +0 -127
- services-pulpcore-client/models/unset_label.py +0 -96
- services-pulpcore-client/models/unset_label_response.py +0 -100
- services-pulpcore-client/models/upload.py +0 -88
- services-pulpcore-client/models/upload_chunk_response.py +0 -94
- services-pulpcore-client/models/upload_commit.py +0 -89
- services-pulpcore-client/models/upload_detail_response.py +0 -121
- services-pulpcore-client/models/upload_response.py +0 -109
- services-pulpcore-client/models/upstream_pulp.py +0 -147
- services-pulpcore-client/models/upstream_pulp_response.py +0 -158
- services-pulpcore-client/models/user.py +0 -106
- services-pulpcore-client/models/user_group.py +0 -89
- services-pulpcore-client/models/user_group_response.py +0 -97
- services-pulpcore-client/models/user_response.py +0 -140
- services-pulpcore-client/models/user_role.py +0 -110
- services-pulpcore-client/models/user_role_response.py +0 -134
- services-pulpcore-client/models/version_response.py +0 -96
- services-pulpcore-client/models/worker_response.py +0 -119
- services-pulpcore-client/py.typed +0 -0
- services-pulpcore-client/rest.py +0 -258
- {crc_pulpcore_client-20250819.1.dist-info → crc_pulpcore_client-20250820.1.dist-info}/WHEEL +0 -0
|
@@ -1,1103 +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, StrictBool, StrictInt, StrictStr, field_validator
|
|
21
|
-
from typing import List, Optional
|
|
22
|
-
from typing_extensions import Annotated
|
|
23
|
-
from services-pulpcore-client.models.artifact_distribution_response import ArtifactDistributionResponse
|
|
24
|
-
from services-pulpcore-client.models.paginated_artifact_distribution_response_list import PaginatedArtifactDistributionResponseList
|
|
25
|
-
|
|
26
|
-
from services-pulpcore-client.api_client import ApiClient, RequestSerialized
|
|
27
|
-
from services-pulpcore-client.api_response import ApiResponse
|
|
28
|
-
from services-pulpcore-client.rest import RESTResponseType
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class DistributionsArtifactsApi:
|
|
32
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
33
|
-
Ref: https://openapi-generator.tech
|
|
34
|
-
|
|
35
|
-
Do not edit the class manually.
|
|
36
|
-
"""
|
|
37
|
-
|
|
38
|
-
def __init__(self, api_client=None) -> None:
|
|
39
|
-
if api_client is None:
|
|
40
|
-
api_client = ApiClient.get_default()
|
|
41
|
-
self.api_client = api_client
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
@validate_call
|
|
45
|
-
def list(
|
|
46
|
-
self,
|
|
47
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
48
|
-
base_path: Annotated[Optional[StrictStr], Field(description="Filter results where base_path matches value")] = None,
|
|
49
|
-
base_path__contains: Annotated[Optional[StrictStr], Field(description="Filter results where base_path contains value")] = None,
|
|
50
|
-
base_path__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where base_path contains value")] = None,
|
|
51
|
-
base_path__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where base_path is in a comma-separated list of values")] = None,
|
|
52
|
-
checkpoint: Annotated[Optional[StrictBool], Field(description="Filter results where checkpoint matches value")] = None,
|
|
53
|
-
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
54
|
-
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
55
|
-
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
56
|
-
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
57
|
-
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
58
|
-
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
59
|
-
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
60
|
-
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
61
|
-
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
62
|
-
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
63
|
-
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
64
|
-
ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
65
|
-
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
66
|
-
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
67
|
-
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
68
|
-
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
69
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
70
|
-
repository: Annotated[Optional[StrictStr], Field(description="Filter results where repository matches value")] = None,
|
|
71
|
-
repository__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where repository is in a comma-separated list of values")] = None,
|
|
72
|
-
with_content: Annotated[Optional[StrictStr], Field(description="Filter distributions based on the content served by them")] = None,
|
|
73
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
74
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
75
|
-
pulp_domain: StrictStr = "default",
|
|
76
|
-
_request_timeout: Union[
|
|
77
|
-
None,
|
|
78
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
79
|
-
Tuple[
|
|
80
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
81
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
82
|
-
]
|
|
83
|
-
] = None,
|
|
84
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
85
|
-
_content_type: Optional[StrictStr] = None,
|
|
86
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
87
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
88
|
-
) -> PaginatedArtifactDistributionResponseList:
|
|
89
|
-
"""List artifact distributions
|
|
90
|
-
|
|
91
|
-
ViewSet for ArtifactDistribution.
|
|
92
|
-
|
|
93
|
-
:param pulp_domain: (required)
|
|
94
|
-
:type pulp_domain: str
|
|
95
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
96
|
-
:type x_task_diagnostics: List[str]
|
|
97
|
-
:param base_path: Filter results where base_path matches value
|
|
98
|
-
:type base_path: str
|
|
99
|
-
:param base_path__contains: Filter results where base_path contains value
|
|
100
|
-
:type base_path__contains: str
|
|
101
|
-
:param base_path__icontains: Filter results where base_path contains value
|
|
102
|
-
:type base_path__icontains: str
|
|
103
|
-
:param base_path__in: Filter results where base_path is in a comma-separated list of values
|
|
104
|
-
:type base_path__in: List[str]
|
|
105
|
-
:param checkpoint: Filter results where checkpoint matches value
|
|
106
|
-
:type checkpoint: bool
|
|
107
|
-
:param limit: Number of results to return per page.
|
|
108
|
-
:type limit: int
|
|
109
|
-
:param name: Filter results where name matches value
|
|
110
|
-
:type name: str
|
|
111
|
-
:param name__contains: Filter results where name contains value
|
|
112
|
-
:type name__contains: str
|
|
113
|
-
:param name__icontains: Filter results where name contains value
|
|
114
|
-
:type name__icontains: str
|
|
115
|
-
:param name__iexact: Filter results where name matches value
|
|
116
|
-
:type name__iexact: str
|
|
117
|
-
:param name__in: Filter results where name is in a comma-separated list of values
|
|
118
|
-
:type name__in: List[str]
|
|
119
|
-
:param name__iregex: Filter results where name matches regex value
|
|
120
|
-
:type name__iregex: str
|
|
121
|
-
:param name__istartswith: Filter results where name starts with value
|
|
122
|
-
:type name__istartswith: str
|
|
123
|
-
:param name__regex: Filter results where name matches regex value
|
|
124
|
-
:type name__regex: str
|
|
125
|
-
:param name__startswith: Filter results where name starts with value
|
|
126
|
-
:type name__startswith: str
|
|
127
|
-
:param offset: The initial index from which to return the results.
|
|
128
|
-
:type offset: int
|
|
129
|
-
:param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
130
|
-
:type ordering: List[str]
|
|
131
|
-
:param prn__in: Multiple values may be separated by commas.
|
|
132
|
-
:type prn__in: List[str]
|
|
133
|
-
:param pulp_href__in: Multiple values may be separated by commas.
|
|
134
|
-
:type pulp_href__in: List[str]
|
|
135
|
-
:param pulp_id__in: Multiple values may be separated by commas.
|
|
136
|
-
:type pulp_id__in: List[str]
|
|
137
|
-
:param pulp_label_select: Filter labels by search string
|
|
138
|
-
:type pulp_label_select: str
|
|
139
|
-
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
140
|
-
:type q: str
|
|
141
|
-
:param repository: Filter results where repository matches value
|
|
142
|
-
:type repository: str
|
|
143
|
-
:param repository__in: Filter results where repository is in a comma-separated list of values
|
|
144
|
-
:type repository__in: List[str]
|
|
145
|
-
:param with_content: Filter distributions based on the content served by them
|
|
146
|
-
:type with_content: str
|
|
147
|
-
:param fields: A list of fields to include in the response.
|
|
148
|
-
:type fields: List[str]
|
|
149
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
150
|
-
:type exclude_fields: List[str]
|
|
151
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
152
|
-
number provided, it will be total request
|
|
153
|
-
timeout. It can also be a pair (tuple) of
|
|
154
|
-
(connection, read) timeouts.
|
|
155
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
156
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
157
|
-
request; this effectively ignores the
|
|
158
|
-
authentication in the spec for a single request.
|
|
159
|
-
:type _request_auth: dict, optional
|
|
160
|
-
:param _content_type: force content-type for the request.
|
|
161
|
-
:type _content_type: str, Optional
|
|
162
|
-
:param _headers: set to override the headers for a single
|
|
163
|
-
request; this effectively ignores the headers
|
|
164
|
-
in the spec for a single request.
|
|
165
|
-
:type _headers: dict, optional
|
|
166
|
-
:param _host_index: set to override the host_index for a single
|
|
167
|
-
request; this effectively ignores the host_index
|
|
168
|
-
in the spec for a single request.
|
|
169
|
-
:type _host_index: int, optional
|
|
170
|
-
:return: Returns the result object.
|
|
171
|
-
""" # noqa: E501
|
|
172
|
-
|
|
173
|
-
_param = self._list_serialize(
|
|
174
|
-
pulp_domain=pulp_domain,
|
|
175
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
176
|
-
base_path=base_path,
|
|
177
|
-
base_path__contains=base_path__contains,
|
|
178
|
-
base_path__icontains=base_path__icontains,
|
|
179
|
-
base_path__in=base_path__in,
|
|
180
|
-
checkpoint=checkpoint,
|
|
181
|
-
limit=limit,
|
|
182
|
-
name=name,
|
|
183
|
-
name__contains=name__contains,
|
|
184
|
-
name__icontains=name__icontains,
|
|
185
|
-
name__iexact=name__iexact,
|
|
186
|
-
name__in=name__in,
|
|
187
|
-
name__iregex=name__iregex,
|
|
188
|
-
name__istartswith=name__istartswith,
|
|
189
|
-
name__regex=name__regex,
|
|
190
|
-
name__startswith=name__startswith,
|
|
191
|
-
offset=offset,
|
|
192
|
-
ordering=ordering,
|
|
193
|
-
prn__in=prn__in,
|
|
194
|
-
pulp_href__in=pulp_href__in,
|
|
195
|
-
pulp_id__in=pulp_id__in,
|
|
196
|
-
pulp_label_select=pulp_label_select,
|
|
197
|
-
q=q,
|
|
198
|
-
repository=repository,
|
|
199
|
-
repository__in=repository__in,
|
|
200
|
-
with_content=with_content,
|
|
201
|
-
fields=fields,
|
|
202
|
-
exclude_fields=exclude_fields,
|
|
203
|
-
_request_auth=_request_auth,
|
|
204
|
-
_content_type=_content_type,
|
|
205
|
-
_headers=_headers,
|
|
206
|
-
_host_index=_host_index
|
|
207
|
-
)
|
|
208
|
-
|
|
209
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
210
|
-
'200': "PaginatedArtifactDistributionResponseList",
|
|
211
|
-
}
|
|
212
|
-
response_data = self.api_client.call_api(
|
|
213
|
-
*_param,
|
|
214
|
-
_request_timeout=_request_timeout
|
|
215
|
-
)
|
|
216
|
-
response_data.read()
|
|
217
|
-
return self.api_client.response_deserialize(
|
|
218
|
-
response_data=response_data,
|
|
219
|
-
response_types_map=_response_types_map,
|
|
220
|
-
).data
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
@validate_call
|
|
224
|
-
def list_with_http_info(
|
|
225
|
-
self,
|
|
226
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
227
|
-
base_path: Annotated[Optional[StrictStr], Field(description="Filter results where base_path matches value")] = None,
|
|
228
|
-
base_path__contains: Annotated[Optional[StrictStr], Field(description="Filter results where base_path contains value")] = None,
|
|
229
|
-
base_path__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where base_path contains value")] = None,
|
|
230
|
-
base_path__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where base_path is in a comma-separated list of values")] = None,
|
|
231
|
-
checkpoint: Annotated[Optional[StrictBool], Field(description="Filter results where checkpoint matches value")] = None,
|
|
232
|
-
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
233
|
-
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
234
|
-
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
235
|
-
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
236
|
-
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
237
|
-
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
238
|
-
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
239
|
-
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
240
|
-
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
241
|
-
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
242
|
-
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
243
|
-
ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
244
|
-
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
245
|
-
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
246
|
-
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
247
|
-
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
248
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
249
|
-
repository: Annotated[Optional[StrictStr], Field(description="Filter results where repository matches value")] = None,
|
|
250
|
-
repository__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where repository is in a comma-separated list of values")] = None,
|
|
251
|
-
with_content: Annotated[Optional[StrictStr], Field(description="Filter distributions based on the content served by them")] = None,
|
|
252
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
253
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
254
|
-
pulp_domain: StrictStr = "default",
|
|
255
|
-
_request_timeout: Union[
|
|
256
|
-
None,
|
|
257
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
258
|
-
Tuple[
|
|
259
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
260
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
261
|
-
]
|
|
262
|
-
] = None,
|
|
263
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
264
|
-
_content_type: Optional[StrictStr] = None,
|
|
265
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
266
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
267
|
-
) -> ApiResponse[PaginatedArtifactDistributionResponseList]:
|
|
268
|
-
"""List artifact distributions
|
|
269
|
-
|
|
270
|
-
ViewSet for ArtifactDistribution.
|
|
271
|
-
|
|
272
|
-
:param pulp_domain: (required)
|
|
273
|
-
:type pulp_domain: str
|
|
274
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
275
|
-
:type x_task_diagnostics: List[str]
|
|
276
|
-
:param base_path: Filter results where base_path matches value
|
|
277
|
-
:type base_path: str
|
|
278
|
-
:param base_path__contains: Filter results where base_path contains value
|
|
279
|
-
:type base_path__contains: str
|
|
280
|
-
:param base_path__icontains: Filter results where base_path contains value
|
|
281
|
-
:type base_path__icontains: str
|
|
282
|
-
:param base_path__in: Filter results where base_path is in a comma-separated list of values
|
|
283
|
-
:type base_path__in: List[str]
|
|
284
|
-
:param checkpoint: Filter results where checkpoint matches value
|
|
285
|
-
:type checkpoint: bool
|
|
286
|
-
:param limit: Number of results to return per page.
|
|
287
|
-
:type limit: int
|
|
288
|
-
:param name: Filter results where name matches value
|
|
289
|
-
:type name: str
|
|
290
|
-
:param name__contains: Filter results where name contains value
|
|
291
|
-
:type name__contains: str
|
|
292
|
-
:param name__icontains: Filter results where name contains value
|
|
293
|
-
:type name__icontains: str
|
|
294
|
-
:param name__iexact: Filter results where name matches value
|
|
295
|
-
:type name__iexact: str
|
|
296
|
-
:param name__in: Filter results where name is in a comma-separated list of values
|
|
297
|
-
:type name__in: List[str]
|
|
298
|
-
:param name__iregex: Filter results where name matches regex value
|
|
299
|
-
:type name__iregex: str
|
|
300
|
-
:param name__istartswith: Filter results where name starts with value
|
|
301
|
-
:type name__istartswith: str
|
|
302
|
-
:param name__regex: Filter results where name matches regex value
|
|
303
|
-
:type name__regex: str
|
|
304
|
-
:param name__startswith: Filter results where name starts with value
|
|
305
|
-
:type name__startswith: str
|
|
306
|
-
:param offset: The initial index from which to return the results.
|
|
307
|
-
:type offset: int
|
|
308
|
-
:param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
309
|
-
:type ordering: List[str]
|
|
310
|
-
:param prn__in: Multiple values may be separated by commas.
|
|
311
|
-
:type prn__in: List[str]
|
|
312
|
-
:param pulp_href__in: Multiple values may be separated by commas.
|
|
313
|
-
:type pulp_href__in: List[str]
|
|
314
|
-
:param pulp_id__in: Multiple values may be separated by commas.
|
|
315
|
-
:type pulp_id__in: List[str]
|
|
316
|
-
:param pulp_label_select: Filter labels by search string
|
|
317
|
-
:type pulp_label_select: str
|
|
318
|
-
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
319
|
-
:type q: str
|
|
320
|
-
:param repository: Filter results where repository matches value
|
|
321
|
-
:type repository: str
|
|
322
|
-
:param repository__in: Filter results where repository is in a comma-separated list of values
|
|
323
|
-
:type repository__in: List[str]
|
|
324
|
-
:param with_content: Filter distributions based on the content served by them
|
|
325
|
-
:type with_content: str
|
|
326
|
-
:param fields: A list of fields to include in the response.
|
|
327
|
-
:type fields: List[str]
|
|
328
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
329
|
-
:type exclude_fields: List[str]
|
|
330
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
331
|
-
number provided, it will be total request
|
|
332
|
-
timeout. It can also be a pair (tuple) of
|
|
333
|
-
(connection, read) timeouts.
|
|
334
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
335
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
336
|
-
request; this effectively ignores the
|
|
337
|
-
authentication in the spec for a single request.
|
|
338
|
-
:type _request_auth: dict, optional
|
|
339
|
-
:param _content_type: force content-type for the request.
|
|
340
|
-
:type _content_type: str, Optional
|
|
341
|
-
:param _headers: set to override the headers for a single
|
|
342
|
-
request; this effectively ignores the headers
|
|
343
|
-
in the spec for a single request.
|
|
344
|
-
:type _headers: dict, optional
|
|
345
|
-
:param _host_index: set to override the host_index for a single
|
|
346
|
-
request; this effectively ignores the host_index
|
|
347
|
-
in the spec for a single request.
|
|
348
|
-
:type _host_index: int, optional
|
|
349
|
-
:return: Returns the result object.
|
|
350
|
-
""" # noqa: E501
|
|
351
|
-
|
|
352
|
-
_param = self._list_serialize(
|
|
353
|
-
pulp_domain=pulp_domain,
|
|
354
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
355
|
-
base_path=base_path,
|
|
356
|
-
base_path__contains=base_path__contains,
|
|
357
|
-
base_path__icontains=base_path__icontains,
|
|
358
|
-
base_path__in=base_path__in,
|
|
359
|
-
checkpoint=checkpoint,
|
|
360
|
-
limit=limit,
|
|
361
|
-
name=name,
|
|
362
|
-
name__contains=name__contains,
|
|
363
|
-
name__icontains=name__icontains,
|
|
364
|
-
name__iexact=name__iexact,
|
|
365
|
-
name__in=name__in,
|
|
366
|
-
name__iregex=name__iregex,
|
|
367
|
-
name__istartswith=name__istartswith,
|
|
368
|
-
name__regex=name__regex,
|
|
369
|
-
name__startswith=name__startswith,
|
|
370
|
-
offset=offset,
|
|
371
|
-
ordering=ordering,
|
|
372
|
-
prn__in=prn__in,
|
|
373
|
-
pulp_href__in=pulp_href__in,
|
|
374
|
-
pulp_id__in=pulp_id__in,
|
|
375
|
-
pulp_label_select=pulp_label_select,
|
|
376
|
-
q=q,
|
|
377
|
-
repository=repository,
|
|
378
|
-
repository__in=repository__in,
|
|
379
|
-
with_content=with_content,
|
|
380
|
-
fields=fields,
|
|
381
|
-
exclude_fields=exclude_fields,
|
|
382
|
-
_request_auth=_request_auth,
|
|
383
|
-
_content_type=_content_type,
|
|
384
|
-
_headers=_headers,
|
|
385
|
-
_host_index=_host_index
|
|
386
|
-
)
|
|
387
|
-
|
|
388
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
389
|
-
'200': "PaginatedArtifactDistributionResponseList",
|
|
390
|
-
}
|
|
391
|
-
response_data = self.api_client.call_api(
|
|
392
|
-
*_param,
|
|
393
|
-
_request_timeout=_request_timeout
|
|
394
|
-
)
|
|
395
|
-
response_data.read()
|
|
396
|
-
return self.api_client.response_deserialize(
|
|
397
|
-
response_data=response_data,
|
|
398
|
-
response_types_map=_response_types_map,
|
|
399
|
-
)
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
@validate_call
|
|
403
|
-
def list_without_preload_content(
|
|
404
|
-
self,
|
|
405
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
406
|
-
base_path: Annotated[Optional[StrictStr], Field(description="Filter results where base_path matches value")] = None,
|
|
407
|
-
base_path__contains: Annotated[Optional[StrictStr], Field(description="Filter results where base_path contains value")] = None,
|
|
408
|
-
base_path__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where base_path contains value")] = None,
|
|
409
|
-
base_path__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where base_path is in a comma-separated list of values")] = None,
|
|
410
|
-
checkpoint: Annotated[Optional[StrictBool], Field(description="Filter results where checkpoint matches value")] = None,
|
|
411
|
-
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
412
|
-
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
413
|
-
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
414
|
-
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
415
|
-
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
416
|
-
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
417
|
-
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
418
|
-
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
419
|
-
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
420
|
-
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
421
|
-
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
422
|
-
ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
423
|
-
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
424
|
-
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
425
|
-
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
426
|
-
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
427
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
428
|
-
repository: Annotated[Optional[StrictStr], Field(description="Filter results where repository matches value")] = None,
|
|
429
|
-
repository__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where repository is in a comma-separated list of values")] = None,
|
|
430
|
-
with_content: Annotated[Optional[StrictStr], Field(description="Filter distributions based on the content served by them")] = None,
|
|
431
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
432
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
433
|
-
pulp_domain: StrictStr = "default",
|
|
434
|
-
_request_timeout: Union[
|
|
435
|
-
None,
|
|
436
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
437
|
-
Tuple[
|
|
438
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
439
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
440
|
-
]
|
|
441
|
-
] = None,
|
|
442
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
443
|
-
_content_type: Optional[StrictStr] = None,
|
|
444
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
445
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
446
|
-
) -> RESTResponseType:
|
|
447
|
-
"""List artifact distributions
|
|
448
|
-
|
|
449
|
-
ViewSet for ArtifactDistribution.
|
|
450
|
-
|
|
451
|
-
:param pulp_domain: (required)
|
|
452
|
-
:type pulp_domain: str
|
|
453
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
454
|
-
:type x_task_diagnostics: List[str]
|
|
455
|
-
:param base_path: Filter results where base_path matches value
|
|
456
|
-
:type base_path: str
|
|
457
|
-
:param base_path__contains: Filter results where base_path contains value
|
|
458
|
-
:type base_path__contains: str
|
|
459
|
-
:param base_path__icontains: Filter results where base_path contains value
|
|
460
|
-
:type base_path__icontains: str
|
|
461
|
-
:param base_path__in: Filter results where base_path is in a comma-separated list of values
|
|
462
|
-
:type base_path__in: List[str]
|
|
463
|
-
:param checkpoint: Filter results where checkpoint matches value
|
|
464
|
-
:type checkpoint: bool
|
|
465
|
-
:param limit: Number of results to return per page.
|
|
466
|
-
:type limit: int
|
|
467
|
-
:param name: Filter results where name matches value
|
|
468
|
-
:type name: str
|
|
469
|
-
:param name__contains: Filter results where name contains value
|
|
470
|
-
:type name__contains: str
|
|
471
|
-
:param name__icontains: Filter results where name contains value
|
|
472
|
-
:type name__icontains: str
|
|
473
|
-
:param name__iexact: Filter results where name matches value
|
|
474
|
-
:type name__iexact: str
|
|
475
|
-
:param name__in: Filter results where name is in a comma-separated list of values
|
|
476
|
-
:type name__in: List[str]
|
|
477
|
-
:param name__iregex: Filter results where name matches regex value
|
|
478
|
-
:type name__iregex: str
|
|
479
|
-
:param name__istartswith: Filter results where name starts with value
|
|
480
|
-
:type name__istartswith: str
|
|
481
|
-
:param name__regex: Filter results where name matches regex value
|
|
482
|
-
:type name__regex: str
|
|
483
|
-
:param name__startswith: Filter results where name starts with value
|
|
484
|
-
:type name__startswith: str
|
|
485
|
-
:param offset: The initial index from which to return the results.
|
|
486
|
-
:type offset: int
|
|
487
|
-
:param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
488
|
-
:type ordering: List[str]
|
|
489
|
-
:param prn__in: Multiple values may be separated by commas.
|
|
490
|
-
:type prn__in: List[str]
|
|
491
|
-
:param pulp_href__in: Multiple values may be separated by commas.
|
|
492
|
-
:type pulp_href__in: List[str]
|
|
493
|
-
:param pulp_id__in: Multiple values may be separated by commas.
|
|
494
|
-
:type pulp_id__in: List[str]
|
|
495
|
-
:param pulp_label_select: Filter labels by search string
|
|
496
|
-
:type pulp_label_select: str
|
|
497
|
-
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
498
|
-
:type q: str
|
|
499
|
-
:param repository: Filter results where repository matches value
|
|
500
|
-
:type repository: str
|
|
501
|
-
:param repository__in: Filter results where repository is in a comma-separated list of values
|
|
502
|
-
:type repository__in: List[str]
|
|
503
|
-
:param with_content: Filter distributions based on the content served by them
|
|
504
|
-
:type with_content: str
|
|
505
|
-
:param fields: A list of fields to include in the response.
|
|
506
|
-
:type fields: List[str]
|
|
507
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
508
|
-
:type exclude_fields: List[str]
|
|
509
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
510
|
-
number provided, it will be total request
|
|
511
|
-
timeout. It can also be a pair (tuple) of
|
|
512
|
-
(connection, read) timeouts.
|
|
513
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
514
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
515
|
-
request; this effectively ignores the
|
|
516
|
-
authentication in the spec for a single request.
|
|
517
|
-
:type _request_auth: dict, optional
|
|
518
|
-
:param _content_type: force content-type for the request.
|
|
519
|
-
:type _content_type: str, Optional
|
|
520
|
-
:param _headers: set to override the headers for a single
|
|
521
|
-
request; this effectively ignores the headers
|
|
522
|
-
in the spec for a single request.
|
|
523
|
-
:type _headers: dict, optional
|
|
524
|
-
:param _host_index: set to override the host_index for a single
|
|
525
|
-
request; this effectively ignores the host_index
|
|
526
|
-
in the spec for a single request.
|
|
527
|
-
:type _host_index: int, optional
|
|
528
|
-
:return: Returns the result object.
|
|
529
|
-
""" # noqa: E501
|
|
530
|
-
|
|
531
|
-
_param = self._list_serialize(
|
|
532
|
-
pulp_domain=pulp_domain,
|
|
533
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
534
|
-
base_path=base_path,
|
|
535
|
-
base_path__contains=base_path__contains,
|
|
536
|
-
base_path__icontains=base_path__icontains,
|
|
537
|
-
base_path__in=base_path__in,
|
|
538
|
-
checkpoint=checkpoint,
|
|
539
|
-
limit=limit,
|
|
540
|
-
name=name,
|
|
541
|
-
name__contains=name__contains,
|
|
542
|
-
name__icontains=name__icontains,
|
|
543
|
-
name__iexact=name__iexact,
|
|
544
|
-
name__in=name__in,
|
|
545
|
-
name__iregex=name__iregex,
|
|
546
|
-
name__istartswith=name__istartswith,
|
|
547
|
-
name__regex=name__regex,
|
|
548
|
-
name__startswith=name__startswith,
|
|
549
|
-
offset=offset,
|
|
550
|
-
ordering=ordering,
|
|
551
|
-
prn__in=prn__in,
|
|
552
|
-
pulp_href__in=pulp_href__in,
|
|
553
|
-
pulp_id__in=pulp_id__in,
|
|
554
|
-
pulp_label_select=pulp_label_select,
|
|
555
|
-
q=q,
|
|
556
|
-
repository=repository,
|
|
557
|
-
repository__in=repository__in,
|
|
558
|
-
with_content=with_content,
|
|
559
|
-
fields=fields,
|
|
560
|
-
exclude_fields=exclude_fields,
|
|
561
|
-
_request_auth=_request_auth,
|
|
562
|
-
_content_type=_content_type,
|
|
563
|
-
_headers=_headers,
|
|
564
|
-
_host_index=_host_index
|
|
565
|
-
)
|
|
566
|
-
|
|
567
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
568
|
-
'200': "PaginatedArtifactDistributionResponseList",
|
|
569
|
-
}
|
|
570
|
-
response_data = self.api_client.call_api(
|
|
571
|
-
*_param,
|
|
572
|
-
_request_timeout=_request_timeout
|
|
573
|
-
)
|
|
574
|
-
return response_data.response
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
def _list_serialize(
|
|
578
|
-
self,
|
|
579
|
-
pulp_domain,
|
|
580
|
-
x_task_diagnostics,
|
|
581
|
-
base_path,
|
|
582
|
-
base_path__contains,
|
|
583
|
-
base_path__icontains,
|
|
584
|
-
base_path__in,
|
|
585
|
-
checkpoint,
|
|
586
|
-
limit,
|
|
587
|
-
name,
|
|
588
|
-
name__contains,
|
|
589
|
-
name__icontains,
|
|
590
|
-
name__iexact,
|
|
591
|
-
name__in,
|
|
592
|
-
name__iregex,
|
|
593
|
-
name__istartswith,
|
|
594
|
-
name__regex,
|
|
595
|
-
name__startswith,
|
|
596
|
-
offset,
|
|
597
|
-
ordering,
|
|
598
|
-
prn__in,
|
|
599
|
-
pulp_href__in,
|
|
600
|
-
pulp_id__in,
|
|
601
|
-
pulp_label_select,
|
|
602
|
-
q,
|
|
603
|
-
repository,
|
|
604
|
-
repository__in,
|
|
605
|
-
with_content,
|
|
606
|
-
fields,
|
|
607
|
-
exclude_fields,
|
|
608
|
-
_request_auth,
|
|
609
|
-
_content_type,
|
|
610
|
-
_headers,
|
|
611
|
-
_host_index,
|
|
612
|
-
) -> RequestSerialized:
|
|
613
|
-
|
|
614
|
-
_host = None
|
|
615
|
-
|
|
616
|
-
_collection_formats: Dict[str, str] = {
|
|
617
|
-
'X-Task-Diagnostics': 'csv',
|
|
618
|
-
'base_path__in': 'csv',
|
|
619
|
-
'name__in': 'csv',
|
|
620
|
-
'ordering': 'csv',
|
|
621
|
-
'prn__in': 'csv',
|
|
622
|
-
'pulp_href__in': 'csv',
|
|
623
|
-
'pulp_id__in': 'csv',
|
|
624
|
-
'repository__in': 'csv',
|
|
625
|
-
'fields': 'multi',
|
|
626
|
-
'exclude_fields': 'multi',
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
_path_params: Dict[str, str] = {}
|
|
630
|
-
_query_params: List[Tuple[str, str]] = []
|
|
631
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
632
|
-
_form_params: List[Tuple[str, str]] = []
|
|
633
|
-
_files: Dict[
|
|
634
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
635
|
-
] = {}
|
|
636
|
-
_body_params: Optional[bytes] = None
|
|
637
|
-
|
|
638
|
-
# process the path parameters
|
|
639
|
-
if pulp_domain is not None:
|
|
640
|
-
_path_params['pulp_domain'] = pulp_domain
|
|
641
|
-
# process the query parameters
|
|
642
|
-
if base_path is not None:
|
|
643
|
-
|
|
644
|
-
_query_params.append(('base_path', base_path))
|
|
645
|
-
|
|
646
|
-
if base_path__contains is not None:
|
|
647
|
-
|
|
648
|
-
_query_params.append(('base_path__contains', base_path__contains))
|
|
649
|
-
|
|
650
|
-
if base_path__icontains is not None:
|
|
651
|
-
|
|
652
|
-
_query_params.append(('base_path__icontains', base_path__icontains))
|
|
653
|
-
|
|
654
|
-
if base_path__in is not None:
|
|
655
|
-
|
|
656
|
-
_query_params.append(('base_path__in', base_path__in))
|
|
657
|
-
|
|
658
|
-
if checkpoint is not None:
|
|
659
|
-
|
|
660
|
-
_query_params.append(('checkpoint', checkpoint))
|
|
661
|
-
|
|
662
|
-
if limit is not None:
|
|
663
|
-
|
|
664
|
-
_query_params.append(('limit', limit))
|
|
665
|
-
|
|
666
|
-
if name is not None:
|
|
667
|
-
|
|
668
|
-
_query_params.append(('name', name))
|
|
669
|
-
|
|
670
|
-
if name__contains is not None:
|
|
671
|
-
|
|
672
|
-
_query_params.append(('name__contains', name__contains))
|
|
673
|
-
|
|
674
|
-
if name__icontains is not None:
|
|
675
|
-
|
|
676
|
-
_query_params.append(('name__icontains', name__icontains))
|
|
677
|
-
|
|
678
|
-
if name__iexact is not None:
|
|
679
|
-
|
|
680
|
-
_query_params.append(('name__iexact', name__iexact))
|
|
681
|
-
|
|
682
|
-
if name__in is not None:
|
|
683
|
-
|
|
684
|
-
_query_params.append(('name__in', name__in))
|
|
685
|
-
|
|
686
|
-
if name__iregex is not None:
|
|
687
|
-
|
|
688
|
-
_query_params.append(('name__iregex', name__iregex))
|
|
689
|
-
|
|
690
|
-
if name__istartswith is not None:
|
|
691
|
-
|
|
692
|
-
_query_params.append(('name__istartswith', name__istartswith))
|
|
693
|
-
|
|
694
|
-
if name__regex is not None:
|
|
695
|
-
|
|
696
|
-
_query_params.append(('name__regex', name__regex))
|
|
697
|
-
|
|
698
|
-
if name__startswith is not None:
|
|
699
|
-
|
|
700
|
-
_query_params.append(('name__startswith', name__startswith))
|
|
701
|
-
|
|
702
|
-
if offset is not None:
|
|
703
|
-
|
|
704
|
-
_query_params.append(('offset', offset))
|
|
705
|
-
|
|
706
|
-
if ordering is not None:
|
|
707
|
-
|
|
708
|
-
_query_params.append(('ordering', ordering))
|
|
709
|
-
|
|
710
|
-
if prn__in is not None:
|
|
711
|
-
|
|
712
|
-
_query_params.append(('prn__in', prn__in))
|
|
713
|
-
|
|
714
|
-
if pulp_href__in is not None:
|
|
715
|
-
|
|
716
|
-
_query_params.append(('pulp_href__in', pulp_href__in))
|
|
717
|
-
|
|
718
|
-
if pulp_id__in is not None:
|
|
719
|
-
|
|
720
|
-
_query_params.append(('pulp_id__in', pulp_id__in))
|
|
721
|
-
|
|
722
|
-
if pulp_label_select is not None:
|
|
723
|
-
|
|
724
|
-
_query_params.append(('pulp_label_select', pulp_label_select))
|
|
725
|
-
|
|
726
|
-
if q is not None:
|
|
727
|
-
|
|
728
|
-
_query_params.append(('q', q))
|
|
729
|
-
|
|
730
|
-
if repository is not None:
|
|
731
|
-
|
|
732
|
-
_query_params.append(('repository', repository))
|
|
733
|
-
|
|
734
|
-
if repository__in is not None:
|
|
735
|
-
|
|
736
|
-
_query_params.append(('repository__in', repository__in))
|
|
737
|
-
|
|
738
|
-
if with_content is not None:
|
|
739
|
-
|
|
740
|
-
_query_params.append(('with_content', with_content))
|
|
741
|
-
|
|
742
|
-
if fields is not None:
|
|
743
|
-
|
|
744
|
-
_query_params.append(('fields', fields))
|
|
745
|
-
|
|
746
|
-
if exclude_fields is not None:
|
|
747
|
-
|
|
748
|
-
_query_params.append(('exclude_fields', exclude_fields))
|
|
749
|
-
|
|
750
|
-
# process the header parameters
|
|
751
|
-
if x_task_diagnostics is not None:
|
|
752
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
753
|
-
# process the form parameters
|
|
754
|
-
# process the body parameter
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
# set the HTTP header `Accept`
|
|
758
|
-
if 'Accept' not in _header_params:
|
|
759
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
760
|
-
[
|
|
761
|
-
'application/json'
|
|
762
|
-
]
|
|
763
|
-
)
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
# authentication setting
|
|
767
|
-
_auth_settings: List[str] = [
|
|
768
|
-
'json_header_remote_authentication',
|
|
769
|
-
'basicAuth',
|
|
770
|
-
'cookieAuth'
|
|
771
|
-
]
|
|
772
|
-
|
|
773
|
-
return self.api_client.param_serialize(
|
|
774
|
-
method='GET',
|
|
775
|
-
resource_path='/api/pulp/{pulp_domain}/api/v3/distributions/core/artifacts/',
|
|
776
|
-
path_params=_path_params,
|
|
777
|
-
query_params=_query_params,
|
|
778
|
-
header_params=_header_params,
|
|
779
|
-
body=_body_params,
|
|
780
|
-
post_params=_form_params,
|
|
781
|
-
files=_files,
|
|
782
|
-
auth_settings=_auth_settings,
|
|
783
|
-
collection_formats=_collection_formats,
|
|
784
|
-
_host=_host,
|
|
785
|
-
_request_auth=_request_auth
|
|
786
|
-
)
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
@validate_call
|
|
792
|
-
def read(
|
|
793
|
-
self,
|
|
794
|
-
artifact_distribution_href: StrictStr,
|
|
795
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
796
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
797
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
798
|
-
_request_timeout: Union[
|
|
799
|
-
None,
|
|
800
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
801
|
-
Tuple[
|
|
802
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
803
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
804
|
-
]
|
|
805
|
-
] = None,
|
|
806
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
807
|
-
_content_type: Optional[StrictStr] = None,
|
|
808
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
809
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
810
|
-
) -> ArtifactDistributionResponse:
|
|
811
|
-
"""Inspect an artifact distribution
|
|
812
|
-
|
|
813
|
-
ViewSet for ArtifactDistribution.
|
|
814
|
-
|
|
815
|
-
:param artifact_distribution_href: (required)
|
|
816
|
-
:type artifact_distribution_href: str
|
|
817
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
818
|
-
:type x_task_diagnostics: List[str]
|
|
819
|
-
:param fields: A list of fields to include in the response.
|
|
820
|
-
:type fields: List[str]
|
|
821
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
822
|
-
:type exclude_fields: List[str]
|
|
823
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
824
|
-
number provided, it will be total request
|
|
825
|
-
timeout. It can also be a pair (tuple) of
|
|
826
|
-
(connection, read) timeouts.
|
|
827
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
828
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
829
|
-
request; this effectively ignores the
|
|
830
|
-
authentication in the spec for a single request.
|
|
831
|
-
:type _request_auth: dict, optional
|
|
832
|
-
:param _content_type: force content-type for the request.
|
|
833
|
-
:type _content_type: str, Optional
|
|
834
|
-
:param _headers: set to override the headers for a single
|
|
835
|
-
request; this effectively ignores the headers
|
|
836
|
-
in the spec for a single request.
|
|
837
|
-
:type _headers: dict, optional
|
|
838
|
-
:param _host_index: set to override the host_index for a single
|
|
839
|
-
request; this effectively ignores the host_index
|
|
840
|
-
in the spec for a single request.
|
|
841
|
-
:type _host_index: int, optional
|
|
842
|
-
:return: Returns the result object.
|
|
843
|
-
""" # noqa: E501
|
|
844
|
-
|
|
845
|
-
_param = self._read_serialize(
|
|
846
|
-
artifact_distribution_href=artifact_distribution_href,
|
|
847
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
848
|
-
fields=fields,
|
|
849
|
-
exclude_fields=exclude_fields,
|
|
850
|
-
_request_auth=_request_auth,
|
|
851
|
-
_content_type=_content_type,
|
|
852
|
-
_headers=_headers,
|
|
853
|
-
_host_index=_host_index
|
|
854
|
-
)
|
|
855
|
-
|
|
856
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
857
|
-
'200': "ArtifactDistributionResponse",
|
|
858
|
-
}
|
|
859
|
-
response_data = self.api_client.call_api(
|
|
860
|
-
*_param,
|
|
861
|
-
_request_timeout=_request_timeout
|
|
862
|
-
)
|
|
863
|
-
response_data.read()
|
|
864
|
-
return self.api_client.response_deserialize(
|
|
865
|
-
response_data=response_data,
|
|
866
|
-
response_types_map=_response_types_map,
|
|
867
|
-
).data
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
@validate_call
|
|
871
|
-
def read_with_http_info(
|
|
872
|
-
self,
|
|
873
|
-
artifact_distribution_href: StrictStr,
|
|
874
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
875
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
876
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
877
|
-
_request_timeout: Union[
|
|
878
|
-
None,
|
|
879
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
880
|
-
Tuple[
|
|
881
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
882
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
883
|
-
]
|
|
884
|
-
] = None,
|
|
885
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
886
|
-
_content_type: Optional[StrictStr] = None,
|
|
887
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
888
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
889
|
-
) -> ApiResponse[ArtifactDistributionResponse]:
|
|
890
|
-
"""Inspect an artifact distribution
|
|
891
|
-
|
|
892
|
-
ViewSet for ArtifactDistribution.
|
|
893
|
-
|
|
894
|
-
:param artifact_distribution_href: (required)
|
|
895
|
-
:type artifact_distribution_href: str
|
|
896
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
897
|
-
:type x_task_diagnostics: List[str]
|
|
898
|
-
:param fields: A list of fields to include in the response.
|
|
899
|
-
:type fields: List[str]
|
|
900
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
901
|
-
:type exclude_fields: List[str]
|
|
902
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
903
|
-
number provided, it will be total request
|
|
904
|
-
timeout. It can also be a pair (tuple) of
|
|
905
|
-
(connection, read) timeouts.
|
|
906
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
907
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
908
|
-
request; this effectively ignores the
|
|
909
|
-
authentication in the spec for a single request.
|
|
910
|
-
:type _request_auth: dict, optional
|
|
911
|
-
:param _content_type: force content-type for the request.
|
|
912
|
-
:type _content_type: str, Optional
|
|
913
|
-
:param _headers: set to override the headers for a single
|
|
914
|
-
request; this effectively ignores the headers
|
|
915
|
-
in the spec for a single request.
|
|
916
|
-
:type _headers: dict, optional
|
|
917
|
-
:param _host_index: set to override the host_index for a single
|
|
918
|
-
request; this effectively ignores the host_index
|
|
919
|
-
in the spec for a single request.
|
|
920
|
-
:type _host_index: int, optional
|
|
921
|
-
:return: Returns the result object.
|
|
922
|
-
""" # noqa: E501
|
|
923
|
-
|
|
924
|
-
_param = self._read_serialize(
|
|
925
|
-
artifact_distribution_href=artifact_distribution_href,
|
|
926
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
927
|
-
fields=fields,
|
|
928
|
-
exclude_fields=exclude_fields,
|
|
929
|
-
_request_auth=_request_auth,
|
|
930
|
-
_content_type=_content_type,
|
|
931
|
-
_headers=_headers,
|
|
932
|
-
_host_index=_host_index
|
|
933
|
-
)
|
|
934
|
-
|
|
935
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
936
|
-
'200': "ArtifactDistributionResponse",
|
|
937
|
-
}
|
|
938
|
-
response_data = self.api_client.call_api(
|
|
939
|
-
*_param,
|
|
940
|
-
_request_timeout=_request_timeout
|
|
941
|
-
)
|
|
942
|
-
response_data.read()
|
|
943
|
-
return self.api_client.response_deserialize(
|
|
944
|
-
response_data=response_data,
|
|
945
|
-
response_types_map=_response_types_map,
|
|
946
|
-
)
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
@validate_call
|
|
950
|
-
def read_without_preload_content(
|
|
951
|
-
self,
|
|
952
|
-
artifact_distribution_href: StrictStr,
|
|
953
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
954
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
955
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
956
|
-
_request_timeout: Union[
|
|
957
|
-
None,
|
|
958
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
959
|
-
Tuple[
|
|
960
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
961
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
962
|
-
]
|
|
963
|
-
] = None,
|
|
964
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
965
|
-
_content_type: Optional[StrictStr] = None,
|
|
966
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
967
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
968
|
-
) -> RESTResponseType:
|
|
969
|
-
"""Inspect an artifact distribution
|
|
970
|
-
|
|
971
|
-
ViewSet for ArtifactDistribution.
|
|
972
|
-
|
|
973
|
-
:param artifact_distribution_href: (required)
|
|
974
|
-
:type artifact_distribution_href: str
|
|
975
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
976
|
-
:type x_task_diagnostics: List[str]
|
|
977
|
-
:param fields: A list of fields to include in the response.
|
|
978
|
-
:type fields: List[str]
|
|
979
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
980
|
-
:type exclude_fields: List[str]
|
|
981
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
982
|
-
number provided, it will be total request
|
|
983
|
-
timeout. It can also be a pair (tuple) of
|
|
984
|
-
(connection, read) timeouts.
|
|
985
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
986
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
987
|
-
request; this effectively ignores the
|
|
988
|
-
authentication in the spec for a single request.
|
|
989
|
-
:type _request_auth: dict, optional
|
|
990
|
-
:param _content_type: force content-type for the request.
|
|
991
|
-
:type _content_type: str, Optional
|
|
992
|
-
:param _headers: set to override the headers for a single
|
|
993
|
-
request; this effectively ignores the headers
|
|
994
|
-
in the spec for a single request.
|
|
995
|
-
:type _headers: dict, optional
|
|
996
|
-
:param _host_index: set to override the host_index for a single
|
|
997
|
-
request; this effectively ignores the host_index
|
|
998
|
-
in the spec for a single request.
|
|
999
|
-
:type _host_index: int, optional
|
|
1000
|
-
:return: Returns the result object.
|
|
1001
|
-
""" # noqa: E501
|
|
1002
|
-
|
|
1003
|
-
_param = self._read_serialize(
|
|
1004
|
-
artifact_distribution_href=artifact_distribution_href,
|
|
1005
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1006
|
-
fields=fields,
|
|
1007
|
-
exclude_fields=exclude_fields,
|
|
1008
|
-
_request_auth=_request_auth,
|
|
1009
|
-
_content_type=_content_type,
|
|
1010
|
-
_headers=_headers,
|
|
1011
|
-
_host_index=_host_index
|
|
1012
|
-
)
|
|
1013
|
-
|
|
1014
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1015
|
-
'200': "ArtifactDistributionResponse",
|
|
1016
|
-
}
|
|
1017
|
-
response_data = self.api_client.call_api(
|
|
1018
|
-
*_param,
|
|
1019
|
-
_request_timeout=_request_timeout
|
|
1020
|
-
)
|
|
1021
|
-
return response_data.response
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
def _read_serialize(
|
|
1025
|
-
self,
|
|
1026
|
-
artifact_distribution_href,
|
|
1027
|
-
x_task_diagnostics,
|
|
1028
|
-
fields,
|
|
1029
|
-
exclude_fields,
|
|
1030
|
-
_request_auth,
|
|
1031
|
-
_content_type,
|
|
1032
|
-
_headers,
|
|
1033
|
-
_host_index,
|
|
1034
|
-
) -> RequestSerialized:
|
|
1035
|
-
|
|
1036
|
-
_host = None
|
|
1037
|
-
|
|
1038
|
-
_collection_formats: Dict[str, str] = {
|
|
1039
|
-
'X-Task-Diagnostics': 'csv',
|
|
1040
|
-
'fields': 'multi',
|
|
1041
|
-
'exclude_fields': 'multi',
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
_path_params: Dict[str, str] = {}
|
|
1045
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1046
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1047
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1048
|
-
_files: Dict[
|
|
1049
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1050
|
-
] = {}
|
|
1051
|
-
_body_params: Optional[bytes] = None
|
|
1052
|
-
|
|
1053
|
-
# process the path parameters
|
|
1054
|
-
if artifact_distribution_href is not None:
|
|
1055
|
-
_path_params['artifact_distribution_href'] = artifact_distribution_href
|
|
1056
|
-
# process the query parameters
|
|
1057
|
-
if fields is not None:
|
|
1058
|
-
|
|
1059
|
-
_query_params.append(('fields', fields))
|
|
1060
|
-
|
|
1061
|
-
if exclude_fields is not None:
|
|
1062
|
-
|
|
1063
|
-
_query_params.append(('exclude_fields', exclude_fields))
|
|
1064
|
-
|
|
1065
|
-
# process the header parameters
|
|
1066
|
-
if x_task_diagnostics is not None:
|
|
1067
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
1068
|
-
# process the form parameters
|
|
1069
|
-
# process the body parameter
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
# set the HTTP header `Accept`
|
|
1073
|
-
if 'Accept' not in _header_params:
|
|
1074
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1075
|
-
[
|
|
1076
|
-
'application/json'
|
|
1077
|
-
]
|
|
1078
|
-
)
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
# authentication setting
|
|
1082
|
-
_auth_settings: List[str] = [
|
|
1083
|
-
'json_header_remote_authentication',
|
|
1084
|
-
'basicAuth',
|
|
1085
|
-
'cookieAuth'
|
|
1086
|
-
]
|
|
1087
|
-
|
|
1088
|
-
return self.api_client.param_serialize(
|
|
1089
|
-
method='GET',
|
|
1090
|
-
resource_path='{artifact_distribution_href}',
|
|
1091
|
-
path_params=_path_params,
|
|
1092
|
-
query_params=_query_params,
|
|
1093
|
-
header_params=_header_params,
|
|
1094
|
-
body=_body_params,
|
|
1095
|
-
post_params=_form_params,
|
|
1096
|
-
files=_files,
|
|
1097
|
-
auth_settings=_auth_settings,
|
|
1098
|
-
collection_formats=_collection_formats,
|
|
1099
|
-
_host=_host,
|
|
1100
|
-
_request_auth=_request_auth
|
|
1101
|
-
)
|
|
1102
|
-
|
|
1103
|
-
|