crc-pulp-service-client 20250819.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of crc-pulp-service-client might be problematic. Click here for more details.

Files changed (118) hide show
  1. crc_pulp_service_client-20250819.1/PKG-INFO +25 -0
  2. crc_pulp_service_client-20250819.1/README.md +191 -0
  3. crc_pulp_service_client-20250819.1/crc-pulp_service-client/__init__.py +2 -0
  4. crc_pulp_service_client-20250819.1/crc-pulp_service-client/api/__init__.py +11 -0
  5. crc_pulp_service_client-20250819.1/crc-pulp_service-client/api/api_create_domain_api.py +335 -0
  6. crc_pulp_service_client-20250819.1/crc-pulp_service-client/api/api_debug_auth_header_api.py +329 -0
  7. crc_pulp_service_client-20250819.1/crc-pulp_service-client/api/api_test_tasks_api.py +326 -0
  8. crc_pulp_service_client-20250819.1/crc-pulp_service-client/api/content_rpmpackages_api.py +1899 -0
  9. crc_pulp_service_client-20250819.1/crc-pulp_service-client/api/contentguards_feature_api.py +3401 -0
  10. crc_pulp_service_client-20250819.1/crc-pulp_service-client/api/tasks_api.py +1504 -0
  11. crc_pulp_service_client-20250819.1/crc-pulp_service-client/api/vuln_report_api.py +1301 -0
  12. crc_pulp_service_client-20250819.1/crc-pulp_service-client/api_client.py +798 -0
  13. crc_pulp_service_client-20250819.1/crc-pulp_service-client/api_response.py +21 -0
  14. crc_pulp_service_client-20250819.1/crc-pulp_service-client/configuration.py +628 -0
  15. crc_pulp_service_client-20250819.1/crc-pulp_service-client/exceptions.py +200 -0
  16. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/__init__.py +40 -0
  17. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/async_operation_response.py +88 -0
  18. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/domain.py +114 -0
  19. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/domain_response.py +131 -0
  20. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/my_permissions_response.py +88 -0
  21. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/nested_role.py +93 -0
  22. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/nested_role_response.py +92 -0
  23. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/object_roles_response.py +96 -0
  24. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/paginated_task_response_list.py +112 -0
  25. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/paginatedrpm_package_response_list.py +112 -0
  26. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/paginatedservice_feature_content_guard_response_list.py +112 -0
  27. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/paginatedservice_vulnerability_report_response_list.py +112 -0
  28. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/patchedservice_feature_content_guard.py +107 -0
  29. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/progress_report_response.py +115 -0
  30. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/rpm_package_response.py +325 -0
  31. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/service_feature_content_guard.py +107 -0
  32. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/service_feature_content_guard_response.py +123 -0
  33. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/service_vulnerability_report_response.py +110 -0
  34. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/set_label.py +103 -0
  35. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/set_label_response.py +103 -0
  36. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/storage_class_enum.py +40 -0
  37. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/task_response.py +167 -0
  38. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/unset_label.py +96 -0
  39. crc_pulp_service_client-20250819.1/crc-pulp_service-client/models/unset_label_response.py +100 -0
  40. crc_pulp_service_client-20250819.1/crc-pulp_service-client/py.typed +0 -0
  41. crc_pulp_service_client-20250819.1/crc-pulp_service-client/rest.py +258 -0
  42. crc_pulp_service_client-20250819.1/crc_pulp_service_client.egg-info/PKG-INFO +25 -0
  43. crc_pulp_service_client-20250819.1/crc_pulp_service_client.egg-info/SOURCES.txt +117 -0
  44. crc_pulp_service_client-20250819.1/crc_pulp_service_client.egg-info/dependency_links.txt +1 -0
  45. crc_pulp_service_client-20250819.1/crc_pulp_service_client.egg-info/requires.txt +4 -0
  46. crc_pulp_service_client-20250819.1/crc_pulp_service_client.egg-info/top_level.txt +2 -0
  47. crc_pulp_service_client-20250819.1/pyproject.toml +89 -0
  48. crc_pulp_service_client-20250819.1/services-pulp_service-client/__init__.py +2 -0
  49. crc_pulp_service_client-20250819.1/services-pulp_service-client/api/__init__.py +11 -0
  50. crc_pulp_service_client-20250819.1/services-pulp_service-client/api/api_create_domain_api.py +335 -0
  51. crc_pulp_service_client-20250819.1/services-pulp_service-client/api/api_debug_auth_header_api.py +329 -0
  52. crc_pulp_service_client-20250819.1/services-pulp_service-client/api/api_test_tasks_api.py +326 -0
  53. crc_pulp_service_client-20250819.1/services-pulp_service-client/api/content_rpmpackages_api.py +1899 -0
  54. crc_pulp_service_client-20250819.1/services-pulp_service-client/api/contentguards_feature_api.py +3401 -0
  55. crc_pulp_service_client-20250819.1/services-pulp_service-client/api/tasks_api.py +1504 -0
  56. crc_pulp_service_client-20250819.1/services-pulp_service-client/api/vuln_report_api.py +1301 -0
  57. crc_pulp_service_client-20250819.1/services-pulp_service-client/api_client.py +798 -0
  58. crc_pulp_service_client-20250819.1/services-pulp_service-client/api_response.py +21 -0
  59. crc_pulp_service_client-20250819.1/services-pulp_service-client/configuration.py +628 -0
  60. crc_pulp_service_client-20250819.1/services-pulp_service-client/exceptions.py +200 -0
  61. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/__init__.py +40 -0
  62. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/async_operation_response.py +88 -0
  63. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/domain.py +114 -0
  64. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/domain_response.py +131 -0
  65. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/my_permissions_response.py +88 -0
  66. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/nested_role.py +93 -0
  67. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/nested_role_response.py +92 -0
  68. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/object_roles_response.py +96 -0
  69. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/paginated_task_response_list.py +112 -0
  70. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/paginatedrpm_package_response_list.py +112 -0
  71. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/paginatedservice_feature_content_guard_response_list.py +112 -0
  72. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/paginatedservice_vulnerability_report_response_list.py +112 -0
  73. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/patchedservice_feature_content_guard.py +107 -0
  74. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/progress_report_response.py +115 -0
  75. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/rpm_package_response.py +325 -0
  76. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/service_feature_content_guard.py +107 -0
  77. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/service_feature_content_guard_response.py +123 -0
  78. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/service_vulnerability_report_response.py +110 -0
  79. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/set_label.py +103 -0
  80. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/set_label_response.py +103 -0
  81. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/storage_class_enum.py +40 -0
  82. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/task_response.py +167 -0
  83. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/unset_label.py +96 -0
  84. crc_pulp_service_client-20250819.1/services-pulp_service-client/models/unset_label_response.py +100 -0
  85. crc_pulp_service_client-20250819.1/services-pulp_service-client/py.typed +0 -0
  86. crc_pulp_service_client-20250819.1/services-pulp_service-client/rest.py +258 -0
  87. crc_pulp_service_client-20250819.1/setup.cfg +7 -0
  88. crc_pulp_service_client-20250819.1/setup.py +52 -0
  89. crc_pulp_service_client-20250819.1/test/test_api_create_domain_api.py +39 -0
  90. crc_pulp_service_client-20250819.1/test/test_api_debug_auth_header_api.py +38 -0
  91. crc_pulp_service_client-20250819.1/test/test_api_test_tasks_api.py +38 -0
  92. crc_pulp_service_client-20250819.1/test/test_async_operation_response.py +53 -0
  93. crc_pulp_service_client-20250819.1/test/test_content_rpmpackages_api.py +67 -0
  94. crc_pulp_service_client-20250819.1/test/test_contentguards_feature_api.py +102 -0
  95. crc_pulp_service_client-20250819.1/test/test_domain.py +63 -0
  96. crc_pulp_service_client-20250819.1/test/test_domain_response.py +67 -0
  97. crc_pulp_service_client-20250819.1/test/test_my_permissions_response.py +57 -0
  98. crc_pulp_service_client-20250819.1/test/test_nested_role.py +59 -0
  99. crc_pulp_service_client-20250819.1/test/test_nested_role_response.py +59 -0
  100. crc_pulp_service_client-20250819.1/test/test_object_roles_response.py +71 -0
  101. crc_pulp_service_client-20250819.1/test/test_paginated_task_response_list.py +127 -0
  102. crc_pulp_service_client-20250819.1/test/test_paginatedrpm_package_response_list.py +161 -0
  103. crc_pulp_service_client-20250819.1/test/test_paginatedservice_feature_content_guard_response_list.py +83 -0
  104. crc_pulp_service_client-20250819.1/test/test_paginatedservice_vulnerability_report_response_list.py +71 -0
  105. crc_pulp_service_client-20250819.1/test/test_patchedservice_feature_content_guard.py +58 -0
  106. crc_pulp_service_client-20250819.1/test/test_progress_report_response.py +57 -0
  107. crc_pulp_service_client-20250819.1/test/test_rpm_package_response.py +101 -0
  108. crc_pulp_service_client-20250819.1/test/test_service_feature_content_guard.py +63 -0
  109. crc_pulp_service_client-20250819.1/test/test_service_feature_content_guard_response.py +67 -0
  110. crc_pulp_service_client-20250819.1/test/test_service_vulnerability_report_response.py +57 -0
  111. crc_pulp_service_client-20250819.1/test/test_set_label.py +55 -0
  112. crc_pulp_service_client-20250819.1/test/test_set_label_response.py +55 -0
  113. crc_pulp_service_client-20250819.1/test/test_storage_class_enum.py +34 -0
  114. crc_pulp_service_client-20250819.1/test/test_task_response.py +86 -0
  115. crc_pulp_service_client-20250819.1/test/test_tasks_api.py +38 -0
  116. crc_pulp_service_client-20250819.1/test/test_unset_label.py +53 -0
  117. crc_pulp_service_client-20250819.1/test/test_unset_label_response.py +54 -0
  118. crc_pulp_service_client-20250819.1/test/test_vuln_report_api.py +60 -0
@@ -0,0 +1,25 @@
1
+ Metadata-Version: 2.4
2
+ Name: crc-pulp_service-client
3
+ Version: 20250819.1
4
+ Summary: Pulp 3 API
5
+ Home-page:
6
+ Author: Pulp Team
7
+ Author-email: pulp-list@redhat.com
8
+ License: GPLv2+
9
+ Keywords: pulp,pulpcore,client,Pulp 3 API
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: urllib3<3.0.0,>=1.25.3
12
+ Requires-Dist: python-dateutil<2.10.0,>=2.8.1
13
+ Requires-Dist: pydantic>=2
14
+ Requires-Dist: typing-extensions>=4.7.1
15
+ Dynamic: author
16
+ Dynamic: author-email
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: keywords
20
+ Dynamic: license
21
+ Dynamic: requires-dist
22
+ Dynamic: summary
23
+
24
+ Fetch, Upload, Organize, and Distribute Software Packages
25
+
@@ -0,0 +1,191 @@
1
+ # crc-pulp_service-client
2
+ Fetch, Upload, Organize, and Distribute Software Packages
3
+
4
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
+
6
+ - API version: v3
7
+ - Package version: 20250819.1
8
+ - Generator version: 7.10.0
9
+ - Build package: org.openapitools.codegen.languages.PythonClientCodegen
10
+ For more information, please visit [https://pulpproject.org](https://pulpproject.org)
11
+
12
+ ## Requirements.
13
+
14
+ Python 3.8+
15
+
16
+ ## Installation & Usage
17
+ ### pip install
18
+
19
+ If the python package is hosted on a repository, you can install directly using:
20
+
21
+ ```sh
22
+ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
23
+ ```
24
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
25
+
26
+ Then import the package:
27
+ ```python
28
+ import crc-pulp_service-client
29
+ ```
30
+
31
+ ### Setuptools
32
+
33
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
34
+
35
+ ```sh
36
+ python setup.py install --user
37
+ ```
38
+ (or `sudo python setup.py install` to install the package for all users)
39
+
40
+ Then import the package:
41
+ ```python
42
+ import crc-pulp_service-client
43
+ ```
44
+
45
+ ### Tests
46
+
47
+ Execute `pytest` to run the tests.
48
+
49
+ ## Getting Started
50
+
51
+ Please follow the [installation procedure](#installation--usage) and then run the following:
52
+
53
+ ```python
54
+
55
+ import crc-pulp_service-client
56
+ from crc-pulp_service-client.rest import ApiException
57
+ from pprint import pprint
58
+
59
+ # Defining the host is optional and defaults to https://env-ephemeral-pkrsh0.apps.crc-eph.r9lp.p1.openshiftapps.com
60
+ # See configuration.py for a list of all supported configuration parameters.
61
+ configuration = crc-pulp_service-client.Configuration(
62
+ host = "https://env-ephemeral-pkrsh0.apps.crc-eph.r9lp.p1.openshiftapps.com"
63
+ )
64
+
65
+ # The client must configure the authentication and authorization parameters
66
+ # in accordance with the API server security policy.
67
+ # Examples for each auth method are provided below, use the example that
68
+ # satisfies your auth use case.
69
+
70
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
71
+
72
+ # Configure HTTP basic authorization: basicAuth
73
+ configuration = crc-pulp_service-client.Configuration(
74
+ username = os.environ["USERNAME"],
75
+ password = os.environ["PASSWORD"]
76
+ )
77
+
78
+ # Configure API key authorization: cookieAuth
79
+ configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
80
+
81
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
82
+ # configuration.api_key_prefix['cookieAuth'] = 'Bearer'
83
+
84
+
85
+ # Enter a context with an instance of the API client
86
+ with crc-pulp_service-client.ApiClient(configuration) as api_client:
87
+ # Create an instance of the API class
88
+ api_instance = crc-pulp_service-client.ApiCreateDomainApi(api_client)
89
+ domain = crc-pulp_service-client.Domain() # Domain |
90
+ x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
91
+
92
+ try:
93
+ # Create domain
94
+ api_response = api_instance.post(domain, x_task_diagnostics=x_task_diagnostics)
95
+ print("The response of ApiCreateDomainApi->post:\n")
96
+ pprint(api_response)
97
+ except ApiException as e:
98
+ print("Exception when calling ApiCreateDomainApi->post: %s\n" % e)
99
+
100
+ ```
101
+
102
+ ## Documentation for API Endpoints
103
+
104
+ All URIs are relative to *https://env-ephemeral-pkrsh0.apps.crc-eph.r9lp.p1.openshiftapps.com*
105
+
106
+ Class | Method | HTTP request | Description
107
+ ------------ | ------------- | ------------- | -------------
108
+ *ApiCreateDomainApi* | [**post**](docs/ApiCreateDomainApi.md#post) | **POST** /api/pulp/create-domain/ | Create domain
109
+ *ApiDebugAuthHeaderApi* | [**get**](docs/ApiDebugAuthHeaderApi.md#get) | **GET** /api/pulp/debug_auth_header/ |
110
+ *ApiTestTasksApi* | [**get**](docs/ApiTestTasksApi.md#get) | **GET** /api/pulp/test/tasks/ |
111
+ *ContentRpmpackagesApi* | [**create**](docs/ContentRpmpackagesApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/content/rpm/rpmpackages/ | Create a package
112
+ *ContentRpmpackagesApi* | [**list**](docs/ContentRpmpackagesApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/content/rpm/rpmpackages/ | List packages
113
+ *ContentRpmpackagesApi* | [**read**](docs/ContentRpmpackagesApi.md#read) | **GET** {rpm_package_href} | Inspect a package
114
+ *ContentRpmpackagesApi* | [**set_label**](docs/ContentRpmpackagesApi.md#set_label) | **POST** {rpm_package_href}set_label/ | Set a label
115
+ *ContentRpmpackagesApi* | [**unset_label**](docs/ContentRpmpackagesApi.md#unset_label) | **POST** {rpm_package_href}unset_label/ | Unset a label
116
+ *ContentguardsFeatureApi* | [**add_role**](docs/ContentguardsFeatureApi.md#add_role) | **POST** {service_feature_content_guard_href}add_role/ | Add a role
117
+ *ContentguardsFeatureApi* | [**create**](docs/ContentguardsFeatureApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/contentguards/service/feature/ | Create a feature content guard
118
+ *ContentguardsFeatureApi* | [**delete**](docs/ContentguardsFeatureApi.md#delete) | **DELETE** {service_feature_content_guard_href} | Delete a feature content guard
119
+ *ContentguardsFeatureApi* | [**list**](docs/ContentguardsFeatureApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/contentguards/service/feature/ | List feature content guards
120
+ *ContentguardsFeatureApi* | [**list_roles**](docs/ContentguardsFeatureApi.md#list_roles) | **GET** {service_feature_content_guard_href}list_roles/ | List roles
121
+ *ContentguardsFeatureApi* | [**my_permissions**](docs/ContentguardsFeatureApi.md#my_permissions) | **GET** {service_feature_content_guard_href}my_permissions/ | List user permissions
122
+ *ContentguardsFeatureApi* | [**partial_update**](docs/ContentguardsFeatureApi.md#partial_update) | **PATCH** {service_feature_content_guard_href} | Update a feature content guard
123
+ *ContentguardsFeatureApi* | [**read**](docs/ContentguardsFeatureApi.md#read) | **GET** {service_feature_content_guard_href} | Inspect a feature content guard
124
+ *ContentguardsFeatureApi* | [**remove_role**](docs/ContentguardsFeatureApi.md#remove_role) | **POST** {service_feature_content_guard_href}remove_role/ | Remove a role
125
+ *ContentguardsFeatureApi* | [**update**](docs/ContentguardsFeatureApi.md#update) | **PUT** {service_feature_content_guard_href} | Update a feature content guard
126
+ *TasksApi* | [**admin_tasks**](docs/TasksApi.md#admin_tasks) | **GET** /api/pulp/admin/tasks/ |
127
+ *VulnReportApi* | [**create**](docs/VulnReportApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/vuln_report/ | Generate vulnerability report
128
+ *VulnReportApi* | [**delete**](docs/VulnReportApi.md#delete) | **DELETE** {service_vulnerability_report_href} | Delete a vulnerability report
129
+ *VulnReportApi* | [**list**](docs/VulnReportApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/vuln_report/ | List vulnerability reports
130
+ *VulnReportApi* | [**read**](docs/VulnReportApi.md#read) | **GET** {service_vulnerability_report_href} | Inspect a vulnerability report
131
+
132
+
133
+ ## Documentation For Models
134
+
135
+ - [AsyncOperationResponse](docs/AsyncOperationResponse.md)
136
+ - [Domain](docs/Domain.md)
137
+ - [DomainResponse](docs/DomainResponse.md)
138
+ - [MyPermissionsResponse](docs/MyPermissionsResponse.md)
139
+ - [NestedRole](docs/NestedRole.md)
140
+ - [NestedRoleResponse](docs/NestedRoleResponse.md)
141
+ - [ObjectRolesResponse](docs/ObjectRolesResponse.md)
142
+ - [PaginatedTaskResponseList](docs/PaginatedTaskResponseList.md)
143
+ - [PaginatedrpmPackageResponseList](docs/PaginatedrpmPackageResponseList.md)
144
+ - [PaginatedserviceFeatureContentGuardResponseList](docs/PaginatedserviceFeatureContentGuardResponseList.md)
145
+ - [PaginatedserviceVulnerabilityReportResponseList](docs/PaginatedserviceVulnerabilityReportResponseList.md)
146
+ - [PatchedserviceFeatureContentGuard](docs/PatchedserviceFeatureContentGuard.md)
147
+ - [ProgressReportResponse](docs/ProgressReportResponse.md)
148
+ - [RpmPackageResponse](docs/RpmPackageResponse.md)
149
+ - [ServiceFeatureContentGuard](docs/ServiceFeatureContentGuard.md)
150
+ - [ServiceFeatureContentGuardResponse](docs/ServiceFeatureContentGuardResponse.md)
151
+ - [ServiceVulnerabilityReportResponse](docs/ServiceVulnerabilityReportResponse.md)
152
+ - [SetLabel](docs/SetLabel.md)
153
+ - [SetLabelResponse](docs/SetLabelResponse.md)
154
+ - [StorageClassEnum](docs/StorageClassEnum.md)
155
+ - [TaskResponse](docs/TaskResponse.md)
156
+ - [UnsetLabel](docs/UnsetLabel.md)
157
+ - [UnsetLabelResponse](docs/UnsetLabelResponse.md)
158
+
159
+
160
+ <a id="documentation-for-authorization"></a>
161
+ ## Documentation For Authorization
162
+
163
+
164
+ Authentication schemes defined for the API:
165
+ <a id="basicAuth"></a>
166
+ ### basicAuth
167
+
168
+ - **Type**: HTTP basic authentication
169
+
170
+ <a id="cookieAuth"></a>
171
+ ### cookieAuth
172
+
173
+ - **Type**: API key
174
+ - **API key parameter name**: sessionid
175
+ - **Location**:
176
+
177
+ <a id="json_header_remote_authentication"></a>
178
+ ### json_header_remote_authentication
179
+
180
+ - **Type**: OAuth
181
+ - **Flow**: application
182
+ - **Authorization URL**:
183
+ - **Scopes**:
184
+ - **api.console**: grant_access_to_pulp
185
+
186
+
187
+ ## Author
188
+
189
+ pulp-list@redhat.com
190
+
191
+
@@ -0,0 +1,2 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
@@ -0,0 +1,11 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from crc-pulp_service-client.api.api_create_domain_api import ApiCreateDomainApi
5
+ from crc-pulp_service-client.api.api_debug_auth_header_api import ApiDebugAuthHeaderApi
6
+ from crc-pulp_service-client.api.api_test_tasks_api import ApiTestTasksApi
7
+ from crc-pulp_service-client.api.content_rpmpackages_api import ContentRpmpackagesApi
8
+ from crc-pulp_service-client.api.contentguards_feature_api import ContentguardsFeatureApi
9
+ from crc-pulp_service-client.api.tasks_api import TasksApi
10
+ from crc-pulp_service-client.api.vuln_report_api import VulnReportApi
11
+
@@ -0,0 +1,335 @@
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, StrictStr
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+ from crc-pulp_service-client.models.domain import Domain
24
+ from crc-pulp_service-client.models.domain_response import DomainResponse
25
+
26
+ from crc-pulp_service-client.api_client import ApiClient, RequestSerialized
27
+ from crc-pulp_service-client.api_response import ApiResponse
28
+ from crc-pulp_service-client.rest import RESTResponseType
29
+
30
+
31
+ class ApiCreateDomainApi:
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 post(
46
+ self,
47
+ domain: Domain,
48
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
49
+ _request_timeout: Union[
50
+ None,
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Tuple[
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Annotated[StrictFloat, Field(gt=0)]
55
+ ]
56
+ ] = None,
57
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
58
+ _content_type: Optional[StrictStr] = None,
59
+ _headers: Optional[Dict[StrictStr, Any]] = None,
60
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
61
+ ) -> DomainResponse:
62
+ """Create domain
63
+
64
+ Create a new domain for from S3 template domain, self-service path
65
+
66
+ :param domain: (required)
67
+ :type domain: Domain
68
+ :param x_task_diagnostics: List of profilers to use on tasks.
69
+ :type x_task_diagnostics: List[str]
70
+ :param _request_timeout: timeout setting for this request. If one
71
+ number provided, it will be total request
72
+ timeout. It can also be a pair (tuple) of
73
+ (connection, read) timeouts.
74
+ :type _request_timeout: int, tuple(int, int), optional
75
+ :param _request_auth: set to override the auth_settings for an a single
76
+ request; this effectively ignores the
77
+ authentication in the spec for a single request.
78
+ :type _request_auth: dict, optional
79
+ :param _content_type: force content-type for the request.
80
+ :type _content_type: str, Optional
81
+ :param _headers: set to override the headers for a single
82
+ request; this effectively ignores the headers
83
+ in the spec for a single request.
84
+ :type _headers: dict, optional
85
+ :param _host_index: set to override the host_index for a single
86
+ request; this effectively ignores the host_index
87
+ in the spec for a single request.
88
+ :type _host_index: int, optional
89
+ :return: Returns the result object.
90
+ """ # noqa: E501
91
+
92
+ _param = self._post_serialize(
93
+ domain=domain,
94
+ x_task_diagnostics=x_task_diagnostics,
95
+ _request_auth=_request_auth,
96
+ _content_type=_content_type,
97
+ _headers=_headers,
98
+ _host_index=_host_index
99
+ )
100
+
101
+ _response_types_map: Dict[str, Optional[str]] = {
102
+ '201': "DomainResponse",
103
+ }
104
+ response_data = self.api_client.call_api(
105
+ *_param,
106
+ _request_timeout=_request_timeout
107
+ )
108
+ response_data.read()
109
+ return self.api_client.response_deserialize(
110
+ response_data=response_data,
111
+ response_types_map=_response_types_map,
112
+ ).data
113
+
114
+
115
+ @validate_call
116
+ def post_with_http_info(
117
+ self,
118
+ domain: Domain,
119
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
120
+ _request_timeout: Union[
121
+ None,
122
+ Annotated[StrictFloat, Field(gt=0)],
123
+ Tuple[
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Annotated[StrictFloat, Field(gt=0)]
126
+ ]
127
+ ] = None,
128
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
129
+ _content_type: Optional[StrictStr] = None,
130
+ _headers: Optional[Dict[StrictStr, Any]] = None,
131
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
132
+ ) -> ApiResponse[DomainResponse]:
133
+ """Create domain
134
+
135
+ Create a new domain for from S3 template domain, self-service path
136
+
137
+ :param domain: (required)
138
+ :type domain: Domain
139
+ :param x_task_diagnostics: List of profilers to use on tasks.
140
+ :type x_task_diagnostics: List[str]
141
+ :param _request_timeout: timeout setting for this request. If one
142
+ number provided, it will be total request
143
+ timeout. It can also be a pair (tuple) of
144
+ (connection, read) timeouts.
145
+ :type _request_timeout: int, tuple(int, int), optional
146
+ :param _request_auth: set to override the auth_settings for an a single
147
+ request; this effectively ignores the
148
+ authentication in the spec for a single request.
149
+ :type _request_auth: dict, optional
150
+ :param _content_type: force content-type for the request.
151
+ :type _content_type: str, Optional
152
+ :param _headers: set to override the headers for a single
153
+ request; this effectively ignores the headers
154
+ in the spec for a single request.
155
+ :type _headers: dict, optional
156
+ :param _host_index: set to override the host_index for a single
157
+ request; this effectively ignores the host_index
158
+ in the spec for a single request.
159
+ :type _host_index: int, optional
160
+ :return: Returns the result object.
161
+ """ # noqa: E501
162
+
163
+ _param = self._post_serialize(
164
+ domain=domain,
165
+ x_task_diagnostics=x_task_diagnostics,
166
+ _request_auth=_request_auth,
167
+ _content_type=_content_type,
168
+ _headers=_headers,
169
+ _host_index=_host_index
170
+ )
171
+
172
+ _response_types_map: Dict[str, Optional[str]] = {
173
+ '201': "DomainResponse",
174
+ }
175
+ response_data = self.api_client.call_api(
176
+ *_param,
177
+ _request_timeout=_request_timeout
178
+ )
179
+ response_data.read()
180
+ return self.api_client.response_deserialize(
181
+ response_data=response_data,
182
+ response_types_map=_response_types_map,
183
+ )
184
+
185
+
186
+ @validate_call
187
+ def post_without_preload_content(
188
+ self,
189
+ domain: Domain,
190
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
191
+ _request_timeout: Union[
192
+ None,
193
+ Annotated[StrictFloat, Field(gt=0)],
194
+ Tuple[
195
+ Annotated[StrictFloat, Field(gt=0)],
196
+ Annotated[StrictFloat, Field(gt=0)]
197
+ ]
198
+ ] = None,
199
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
200
+ _content_type: Optional[StrictStr] = None,
201
+ _headers: Optional[Dict[StrictStr, Any]] = None,
202
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
203
+ ) -> RESTResponseType:
204
+ """Create domain
205
+
206
+ Create a new domain for from S3 template domain, self-service path
207
+
208
+ :param domain: (required)
209
+ :type domain: Domain
210
+ :param x_task_diagnostics: List of profilers to use on tasks.
211
+ :type x_task_diagnostics: List[str]
212
+ :param _request_timeout: timeout setting for this request. If one
213
+ number provided, it will be total request
214
+ timeout. It can also be a pair (tuple) of
215
+ (connection, read) timeouts.
216
+ :type _request_timeout: int, tuple(int, int), optional
217
+ :param _request_auth: set to override the auth_settings for an a single
218
+ request; this effectively ignores the
219
+ authentication in the spec for a single request.
220
+ :type _request_auth: dict, optional
221
+ :param _content_type: force content-type for the request.
222
+ :type _content_type: str, Optional
223
+ :param _headers: set to override the headers for a single
224
+ request; this effectively ignores the headers
225
+ in the spec for a single request.
226
+ :type _headers: dict, optional
227
+ :param _host_index: set to override the host_index for a single
228
+ request; this effectively ignores the host_index
229
+ in the spec for a single request.
230
+ :type _host_index: int, optional
231
+ :return: Returns the result object.
232
+ """ # noqa: E501
233
+
234
+ _param = self._post_serialize(
235
+ domain=domain,
236
+ x_task_diagnostics=x_task_diagnostics,
237
+ _request_auth=_request_auth,
238
+ _content_type=_content_type,
239
+ _headers=_headers,
240
+ _host_index=_host_index
241
+ )
242
+
243
+ _response_types_map: Dict[str, Optional[str]] = {
244
+ '201': "DomainResponse",
245
+ }
246
+ response_data = self.api_client.call_api(
247
+ *_param,
248
+ _request_timeout=_request_timeout
249
+ )
250
+ return response_data.response
251
+
252
+
253
+ def _post_serialize(
254
+ self,
255
+ domain,
256
+ x_task_diagnostics,
257
+ _request_auth,
258
+ _content_type,
259
+ _headers,
260
+ _host_index,
261
+ ) -> RequestSerialized:
262
+
263
+ _host = None
264
+
265
+ _collection_formats: Dict[str, str] = {
266
+ 'X-Task-Diagnostics': 'csv',
267
+ }
268
+
269
+ _path_params: Dict[str, str] = {}
270
+ _query_params: List[Tuple[str, str]] = []
271
+ _header_params: Dict[str, Optional[str]] = _headers or {}
272
+ _form_params: List[Tuple[str, str]] = []
273
+ _files: Dict[
274
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
275
+ ] = {}
276
+ _body_params: Optional[bytes] = None
277
+
278
+ # process the path parameters
279
+ # process the query parameters
280
+ # process the header parameters
281
+ if x_task_diagnostics is not None:
282
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
283
+ # process the form parameters
284
+ # process the body parameter
285
+ if domain is not None:
286
+ _body_params = domain
287
+
288
+
289
+ # set the HTTP header `Accept`
290
+ if 'Accept' not in _header_params:
291
+ _header_params['Accept'] = self.api_client.select_header_accept(
292
+ [
293
+ 'application/json'
294
+ ]
295
+ )
296
+
297
+ # set the HTTP header `Content-Type`
298
+ if _content_type:
299
+ _header_params['Content-Type'] = _content_type
300
+ else:
301
+ _default_content_type = (
302
+ self.api_client.select_header_content_type(
303
+ [
304
+ 'application/json',
305
+ 'application/x-www-form-urlencoded',
306
+ 'multipart/form-data'
307
+ ]
308
+ )
309
+ )
310
+ if _default_content_type is not None:
311
+ _header_params['Content-Type'] = _default_content_type
312
+
313
+ # authentication setting
314
+ _auth_settings: List[str] = [
315
+ 'json_header_remote_authentication',
316
+ 'basicAuth',
317
+ 'cookieAuth'
318
+ ]
319
+
320
+ return self.api_client.param_serialize(
321
+ method='POST',
322
+ resource_path='/api/pulp/create-domain/',
323
+ path_params=_path_params,
324
+ query_params=_query_params,
325
+ header_params=_header_params,
326
+ body=_body_params,
327
+ post_params=_form_params,
328
+ files=_files,
329
+ auth_settings=_auth_settings,
330
+ collection_formats=_collection_formats,
331
+ _host=_host,
332
+ _request_auth=_request_auth
333
+ )
334
+
335
+