pulpcore_client 3.9.1 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -16
  3. data/docs/AccessPoliciesApi.md +12 -0
  4. data/docs/AccessPolicy.md +1 -3
  5. data/docs/AccessPolicyResponse.md +4 -2
  6. data/docs/ContentApi.md +78 -0
  7. data/docs/ContentGuardResponse.md +23 -0
  8. data/docs/ContentGuardsApi.md +82 -0
  9. data/docs/EvaluationResponse.md +21 -0
  10. data/docs/ExportersCoreExportsApi.md +15 -15
  11. data/docs/ExportersPulpApi.md +6 -0
  12. data/docs/GroupsApi.md +14 -0
  13. data/docs/GroupsModelPermissionsApi.md +118 -5
  14. data/docs/GroupsObjectPermissionsApi.md +15 -15
  15. data/docs/GroupsUsersApi.md +10 -10
  16. data/docs/ImportersCoreImportCheckApi.md +62 -0
  17. data/docs/ImportersCoreImportsApi.md +15 -15
  18. data/docs/ImportersPulpApi.md +6 -0
  19. data/docs/MultipleArtifactContentResponse.md +21 -0
  20. data/docs/PaginatedContentGuardResponseList.md +23 -0
  21. data/docs/PaginatedMultipleArtifactContentResponseList.md +23 -0
  22. data/docs/PaginatedRepositoryResponseList.md +23 -0
  23. data/docs/PatchedAccessPolicy.md +1 -3
  24. data/docs/PermissionResponse.md +1 -1
  25. data/docs/PulpImportCheck.md +21 -0
  26. data/docs/PulpImportCheckResponse.md +21 -0
  27. data/docs/RepositoriesApi.md +84 -0
  28. data/docs/RepositoryResponse.md +31 -0
  29. data/docs/SigningServiceResponse.md +4 -0
  30. data/docs/UsersApi.md +44 -0
  31. data/docs/WorkerResponse.md +3 -3
  32. data/docs/WorkersApi.md +6 -0
  33. data/lib/pulpcore_client/api/access_policies_api.rb +18 -0
  34. data/lib/pulpcore_client/api/content_api.rb +102 -0
  35. data/lib/pulpcore_client/api/content_guards_api.rb +108 -0
  36. data/lib/pulpcore_client/api/exporters_core_exports_api.rb +27 -27
  37. data/lib/pulpcore_client/api/exporters_pulp_api.rb +9 -0
  38. data/lib/pulpcore_client/api/groups_api.rb +21 -0
  39. data/lib/pulpcore_client/api/groups_model_permissions_api.rb +137 -9
  40. data/lib/pulpcore_client/api/groups_object_permissions_api.rb +27 -27
  41. data/lib/pulpcore_client/api/groups_users_api.rb +18 -18
  42. data/lib/pulpcore_client/api/importers_core_import_check_api.rb +86 -0
  43. data/lib/pulpcore_client/api/importers_core_imports_api.rb +27 -27
  44. data/lib/pulpcore_client/api/importers_pulp_api.rb +9 -0
  45. data/lib/pulpcore_client/api/repositories_api.rb +111 -0
  46. data/lib/pulpcore_client/api/users_api.rb +66 -0
  47. data/lib/pulpcore_client/api/workers_api.rb +9 -0
  48. data/lib/pulpcore_client/models/access_policy.rb +4 -19
  49. data/lib/pulpcore_client/models/access_policy_response.rb +14 -9
  50. data/lib/pulpcore_client/models/content_guard_response.rb +243 -0
  51. data/lib/pulpcore_client/models/evaluation_response.rb +245 -0
  52. data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +232 -0
  53. data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +237 -0
  54. data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +237 -0
  55. data/lib/pulpcore_client/models/paginated_repository_response_list.rb +237 -0
  56. data/lib/pulpcore_client/models/patched_access_policy.rb +4 -14
  57. data/lib/pulpcore_client/models/permission_response.rb +1 -1
  58. data/lib/pulpcore_client/models/pulp_import_check.rb +228 -0
  59. data/lib/pulpcore_client/models/pulp_import_check_response.rb +228 -0
  60. data/lib/pulpcore_client/models/repository_response.rb +280 -0
  61. data/lib/pulpcore_client/models/signing_service_response.rb +31 -1
  62. data/lib/pulpcore_client/models/worker_response.rb +10 -10
  63. data/lib/pulpcore_client/version.rb +1 -1
  64. data/lib/pulpcore_client.rb +13 -0
  65. data/spec/api/access_policies_api_spec.rb +6 -0
  66. data/spec/api/content_api_spec.rb +54 -0
  67. data/spec/api/content_guards_api_spec.rb +56 -0
  68. data/spec/api/exporters_core_exports_api_spec.rb +3 -3
  69. data/spec/api/exporters_pulp_api_spec.rb +3 -0
  70. data/spec/api/groups_api_spec.rb +7 -0
  71. data/spec/api/groups_model_permissions_api_spec.rb +27 -1
  72. data/spec/api/groups_object_permissions_api_spec.rb +3 -3
  73. data/spec/api/groups_users_api_spec.rb +2 -2
  74. data/spec/api/importers_core_import_check_api_spec.rb +47 -0
  75. data/spec/api/importers_core_imports_api_spec.rb +3 -3
  76. data/spec/api/importers_pulp_api_spec.rb +3 -0
  77. data/spec/api/repositories_api_spec.rb +57 -0
  78. data/spec/api/users_api_spec.rb +22 -0
  79. data/spec/api/workers_api_spec.rb +3 -0
  80. data/spec/models/access_policy_response_spec.rb +6 -0
  81. data/spec/models/access_policy_spec.rb +0 -6
  82. data/spec/models/content_guard_response_spec.rb +59 -0
  83. data/spec/models/evaluation_response_spec.rb +53 -0
  84. data/spec/models/multiple_artifact_content_response_spec.rb +53 -0
  85. data/spec/models/paginated_content_guard_response_list_spec.rb +59 -0
  86. data/spec/models/paginated_multiple_artifact_content_response_list_spec.rb +59 -0
  87. data/spec/models/paginated_repository_response_list_spec.rb +59 -0
  88. data/spec/models/patched_access_policy_spec.rb +0 -6
  89. data/spec/models/pulp_import_check_response_spec.rb +53 -0
  90. data/spec/models/pulp_import_check_spec.rb +53 -0
  91. data/spec/models/repository_response_spec.rb +83 -0
  92. data/spec/models/signing_service_response_spec.rb +12 -0
  93. data/spec/models/worker_response_spec.rb +2 -2
  94. metadata +112 -60
@@ -0,0 +1,21 @@
1
+ # PulpcoreClient::PulpImportCheck
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **path** | **String** | Path to export-tar-gz that will be imported. | [optional]
8
+ **toc** | **String** | Path to a table-of-contents file describing chunks to be validated, reassembled, and imported. | [optional]
9
+ **repo_mapping** | **String** | Mapping of repo names in an export file to the repo names in Pulp. For example, if the export has a repo named 'foo' and the repo to import content into was 'bar', the mapping would be \"{'foo': 'bar'}\". | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpcoreClient'
15
+
16
+ instance = PulpcoreClient::PulpImportCheck.new(path: null,
17
+ toc: null,
18
+ repo_mapping: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,21 @@
1
+ # PulpcoreClient::PulpImportCheckResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **toc** | [**EvaluationResponse**](EvaluationResponse.md) | Evaluation of proposed 'toc' file for PulpImport | [optional]
8
+ **path** | [**EvaluationResponse**](EvaluationResponse.md) | Evaluation of proposed 'path' file for PulpImport | [optional]
9
+ **repo_mapping** | [**EvaluationResponse**](EvaluationResponse.md) | Evaluation of proposed 'repo_mapping' file for PulpImport | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpcoreClient'
15
+
16
+ instance = PulpcoreClient::PulpImportCheckResponse.new(toc: null,
17
+ path: null,
18
+ repo_mapping: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,84 @@
1
+ # PulpcoreClient::RepositoriesApi
2
+
3
+ All URIs are relative to *http://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list**](RepositoriesApi.md#list) | **GET** /pulp/api/v3/repositories/ | List repositories
8
+
9
+
10
+
11
+ ## list
12
+
13
+ > PaginatedRepositoryResponseList list(opts)
14
+
15
+ List repositories
16
+
17
+ Endpoint to list all repositories.
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'pulpcore_client'
24
+ # setup authorization
25
+ PulpcoreClient.configure do |config|
26
+ # Configure HTTP basic authorization: basicAuth
27
+ config.username = 'YOUR USERNAME'
28
+ config.password = 'YOUR PASSWORD'
29
+ end
30
+
31
+ api_instance = PulpcoreClient::RepositoriesApi.new
32
+ opts = {
33
+ limit: 56, # Integer | Number of results to return per page.
34
+ name: 'name_example', # String | name
35
+ name__contains: 'name__contains_example', # String | name__contains
36
+ name__icontains: 'name__icontains_example', # String | name__icontains
37
+ name__in: 'name__in_example', # String | name__in
38
+ name__startswith: 'name__startswith_example', # String | name__startswith
39
+ offset: 56, # Integer | The initial index from which to return the results.
40
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
41
+ pulp_label_select: 'pulp_label_select_example', # String | pulp_label_select
42
+ fields: 'fields_example', # String | A list of fields to include in the response.
43
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
44
+ }
45
+
46
+ begin
47
+ #List repositories
48
+ result = api_instance.list(opts)
49
+ p result
50
+ rescue PulpcoreClient::ApiError => e
51
+ puts "Exception when calling RepositoriesApi->list: #{e}"
52
+ end
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+
58
+ Name | Type | Description | Notes
59
+ ------------- | ------------- | ------------- | -------------
60
+ **limit** | **Integer**| Number of results to return per page. | [optional]
61
+ **name** | **String**| name | [optional]
62
+ **name__contains** | **String**| name__contains | [optional]
63
+ **name__icontains** | **String**| name__icontains | [optional]
64
+ **name__in** | **String**| name__in | [optional]
65
+ **name__startswith** | **String**| name__startswith | [optional]
66
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
67
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
68
+ **pulp_label_select** | **String**| pulp_label_select | [optional]
69
+ **fields** | **String**| A list of fields to include in the response. | [optional]
70
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
71
+
72
+ ### Return type
73
+
74
+ [**PaginatedRepositoryResponseList**](PaginatedRepositoryResponseList.md)
75
+
76
+ ### Authorization
77
+
78
+ [basicAuth](../README.md#basicAuth)
79
+
80
+ ### HTTP request headers
81
+
82
+ - **Content-Type**: Not defined
83
+ - **Accept**: application/json
84
+
@@ -0,0 +1,31 @@
1
+ # PulpcoreClient::RepositoryResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **versions_href** | **String** | | [optional] [readonly]
10
+ **pulp_labels** | [**Object**](.md) | | [optional]
11
+ **latest_version_href** | **String** | | [optional] [readonly]
12
+ **name** | **String** | A unique name for this repository. |
13
+ **description** | **String** | An optional description. | [optional]
14
+ **remote** | **String** | | [optional]
15
+
16
+ ## Code Sample
17
+
18
+ ```ruby
19
+ require 'PulpcoreClient'
20
+
21
+ instance = PulpcoreClient::RepositoryResponse.new(pulp_href: null,
22
+ pulp_created: null,
23
+ versions_href: null,
24
+ pulp_labels: null,
25
+ latest_version_href: null,
26
+ name: null,
27
+ description: null,
28
+ remote: null)
29
+ ```
30
+
31
+
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **name** | **String** | A unique name used to recognize a script. |
10
+ **public_key** | **String** | The value of a public key used for the repository verification. |
11
+ **pubkey_fingerprint** | **String** | The fingerprint of the public key. |
10
12
  **script** | **String** | An absolute path to a script which is going to be used for the signing. |
11
13
 
12
14
  ## Code Sample
@@ -17,6 +19,8 @@ require 'PulpcoreClient'
17
19
  instance = PulpcoreClient::SigningServiceResponse.new(pulp_href: null,
18
20
  pulp_created: null,
19
21
  name: null,
22
+ public_key: null,
23
+ pubkey_fingerprint: null,
20
24
  script: null)
21
25
  ```
22
26
 
data/docs/UsersApi.md CHANGED
@@ -32,9 +32,31 @@ end
32
32
 
33
33
  api_instance = PulpcoreClient::UsersApi.new
34
34
  opts = {
35
+ email: 'email_example', # String | email
36
+ email__contains: 'email__contains_example', # String | email__contains
37
+ email__icontains: 'email__icontains_example', # String | email__icontains
38
+ email__iexact: 'email__iexact_example', # String | email__iexact
39
+ email__in: 'email__in_example', # String | email__in
40
+ first_name: 'first_name_example', # String | first_name
41
+ first_name__contains: 'first_name__contains_example', # String | first_name__contains
42
+ first_name__icontains: 'first_name__icontains_example', # String | first_name__icontains
43
+ first_name__iexact: 'first_name__iexact_example', # String | first_name__iexact
44
+ first_name__in: 'first_name__in_example', # String | first_name__in
45
+ is_active: 'is_active_example', # String | is_active
46
+ is_staff: 'is_staff_example', # String | is_staff
47
+ last_name: 'last_name_example', # String | last_name
48
+ last_name__contains: 'last_name__contains_example', # String | last_name__contains
49
+ last_name__icontains: 'last_name__icontains_example', # String | last_name__icontains
50
+ last_name__iexact: 'last_name__iexact_example', # String | last_name__iexact
51
+ last_name__in: 'last_name__in_example', # String | last_name__in
35
52
  limit: 56, # Integer | Number of results to return per page.
36
53
  offset: 56, # Integer | The initial index from which to return the results.
37
54
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
55
+ username: 'username_example', # String | username
56
+ username__contains: 'username__contains_example', # String | username__contains
57
+ username__icontains: 'username__icontains_example', # String | username__icontains
58
+ username__iexact: 'username__iexact_example', # String | username__iexact
59
+ username__in: 'username__in_example', # String | username__in
38
60
  fields: 'fields_example', # String | A list of fields to include in the response.
39
61
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
40
62
  }
@@ -53,9 +75,31 @@ end
53
75
 
54
76
  Name | Type | Description | Notes
55
77
  ------------- | ------------- | ------------- | -------------
78
+ **email** | **String**| email | [optional]
79
+ **email__contains** | **String**| email__contains | [optional]
80
+ **email__icontains** | **String**| email__icontains | [optional]
81
+ **email__iexact** | **String**| email__iexact | [optional]
82
+ **email__in** | **String**| email__in | [optional]
83
+ **first_name** | **String**| first_name | [optional]
84
+ **first_name__contains** | **String**| first_name__contains | [optional]
85
+ **first_name__icontains** | **String**| first_name__icontains | [optional]
86
+ **first_name__iexact** | **String**| first_name__iexact | [optional]
87
+ **first_name__in** | **String**| first_name__in | [optional]
88
+ **is_active** | **String**| is_active | [optional]
89
+ **is_staff** | **String**| is_staff | [optional]
90
+ **last_name** | **String**| last_name | [optional]
91
+ **last_name__contains** | **String**| last_name__contains | [optional]
92
+ **last_name__icontains** | **String**| last_name__icontains | [optional]
93
+ **last_name__iexact** | **String**| last_name__iexact | [optional]
94
+ **last_name__in** | **String**| last_name__in | [optional]
56
95
  **limit** | **Integer**| Number of results to return per page. | [optional]
57
96
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
58
97
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
98
+ **username** | **String**| username | [optional]
99
+ **username__contains** | **String**| username__contains | [optional]
100
+ **username__icontains** | **String**| username__icontains | [optional]
101
+ **username__iexact** | **String**| username__iexact | [optional]
102
+ **username__in** | **String**| username__in | [optional]
59
103
  **fields** | **String**| A list of fields to include in the response. | [optional]
60
104
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
61
105
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **pulp_href** | **String** | | [optional] [readonly]
8
7
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
8
+ **pulp_href** | **String** | | [optional] [readonly]
9
9
  **name** | **String** | The name of the worker. | [optional] [readonly]
10
10
  **last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional] [readonly]
11
11
 
@@ -14,8 +14,8 @@ Name | Type | Description | Notes
14
14
  ```ruby
15
15
  require 'PulpcoreClient'
16
16
 
17
- instance = PulpcoreClient::WorkerResponse.new(pulp_href: null,
18
- pulp_created: null,
17
+ instance = PulpcoreClient::WorkerResponse.new(pulp_created: null,
18
+ pulp_href: null,
19
19
  name: null,
20
20
  last_heartbeat: null)
21
21
  ```
data/docs/WorkersApi.md CHANGED
@@ -40,7 +40,10 @@ opts = {
40
40
  limit: 56, # Integer | Number of results to return per page.
41
41
  missing: 'missing_example', # String | missing
42
42
  name: 'name_example', # String | name
43
+ name__contains: 'name__contains_example', # String | name__contains
44
+ name__icontains: 'name__icontains_example', # String | name__icontains
43
45
  name__in: 'name__in_example', # String | name__in
46
+ name__startswith: 'name__startswith_example', # String | name__startswith
44
47
  offset: 56, # Integer | The initial index from which to return the results.
45
48
  online: 'online_example', # String | online
46
49
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
@@ -71,7 +74,10 @@ Name | Type | Description | Notes
71
74
  **limit** | **Integer**| Number of results to return per page. | [optional]
72
75
  **missing** | **String**| missing | [optional]
73
76
  **name** | **String**| name | [optional]
77
+ **name__contains** | **String**| name__contains | [optional]
78
+ **name__icontains** | **String**| name__icontains | [optional]
74
79
  **name__in** | **String**| name__in | [optional]
80
+ **name__startswith** | **String**| name__startswith | [optional]
75
81
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
76
82
  **online** | **String**| online | [optional]
77
83
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
@@ -22,9 +22,15 @@ module PulpcoreClient
22
22
  # List access policys
23
23
  # ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :customized customized
25
26
  # @option opts [Integer] :limit Number of results to return per page.
26
27
  # @option opts [Integer] :offset The initial index from which to return the results.
27
28
  # @option opts [String] :ordering Which field to use when ordering the results.
29
+ # @option opts [String] :viewset_name viewset_name
30
+ # @option opts [String] :viewset_name__contains viewset_name__contains
31
+ # @option opts [String] :viewset_name__icontains viewset_name__icontains
32
+ # @option opts [String] :viewset_name__in viewset_name__in
33
+ # @option opts [String] :viewset_name__startswith viewset_name__startswith
28
34
  # @option opts [String] :fields A list of fields to include in the response.
29
35
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
30
36
  # @return [PaginatedAccessPolicyResponseList]
@@ -36,9 +42,15 @@ module PulpcoreClient
36
42
  # List access policys
37
43
  # ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
38
44
  # @param [Hash] opts the optional parameters
45
+ # @option opts [String] :customized customized
39
46
  # @option opts [Integer] :limit Number of results to return per page.
40
47
  # @option opts [Integer] :offset The initial index from which to return the results.
41
48
  # @option opts [String] :ordering Which field to use when ordering the results.
49
+ # @option opts [String] :viewset_name viewset_name
50
+ # @option opts [String] :viewset_name__contains viewset_name__contains
51
+ # @option opts [String] :viewset_name__icontains viewset_name__icontains
52
+ # @option opts [String] :viewset_name__in viewset_name__in
53
+ # @option opts [String] :viewset_name__startswith viewset_name__startswith
42
54
  # @option opts [String] :fields A list of fields to include in the response.
43
55
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
44
56
  # @return [Array<(PaginatedAccessPolicyResponseList, Integer, Hash)>] PaginatedAccessPolicyResponseList data, response status code and response headers
@@ -51,9 +63,15 @@ module PulpcoreClient
51
63
 
52
64
  # query parameters
53
65
  query_params = opts[:query_params] || {}
66
+ query_params[:'customized'] = opts[:'customized'] if !opts[:'customized'].nil?
54
67
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
55
68
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
56
69
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
70
+ query_params[:'viewset_name'] = opts[:'viewset_name'] if !opts[:'viewset_name'].nil?
71
+ query_params[:'viewset_name__contains'] = opts[:'viewset_name__contains'] if !opts[:'viewset_name__contains'].nil?
72
+ query_params[:'viewset_name__icontains'] = opts[:'viewset_name__icontains'] if !opts[:'viewset_name__icontains'].nil?
73
+ query_params[:'viewset_name__in'] = opts[:'viewset_name__in'] if !opts[:'viewset_name__in'].nil?
74
+ query_params[:'viewset_name__startswith'] = opts[:'viewset_name__startswith'] if !opts[:'viewset_name__startswith'].nil?
57
75
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
58
76
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
59
77
 
@@ -0,0 +1,102 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class ContentApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List content
23
+ # Endpoint to list all content.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Integer] :limit Number of results to return per page.
26
+ # @option opts [Integer] :offset The initial index from which to return the results.
27
+ # @option opts [String] :ordering Which field to use when ordering the results.
28
+ # @option opts [String] :repository_version repository_version
29
+ # @option opts [String] :repository_version_added repository_version_added
30
+ # @option opts [String] :repository_version_removed repository_version_removed
31
+ # @option opts [String] :fields A list of fields to include in the response.
32
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
33
+ # @return [PaginatedMultipleArtifactContentResponseList]
34
+ def list(opts = {})
35
+ data, _status_code, _headers = list_with_http_info(opts)
36
+ data
37
+ end
38
+
39
+ # List content
40
+ # Endpoint to list all content.
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [Integer] :limit Number of results to return per page.
43
+ # @option opts [Integer] :offset The initial index from which to return the results.
44
+ # @option opts [String] :ordering Which field to use when ordering the results.
45
+ # @option opts [String] :repository_version repository_version
46
+ # @option opts [String] :repository_version_added repository_version_added
47
+ # @option opts [String] :repository_version_removed repository_version_removed
48
+ # @option opts [String] :fields A list of fields to include in the response.
49
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
50
+ # @return [Array<(PaginatedMultipleArtifactContentResponseList, Integer, Hash)>] PaginatedMultipleArtifactContentResponseList data, response status code and response headers
51
+ def list_with_http_info(opts = {})
52
+ if @api_client.config.debugging
53
+ @api_client.config.logger.debug 'Calling API: ContentApi.list ...'
54
+ end
55
+ # resource path
56
+ local_var_path = '/pulp/api/v3/content/'
57
+
58
+ # query parameters
59
+ query_params = opts[:query_params] || {}
60
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
63
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
64
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
65
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
66
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
67
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
68
+
69
+ # header parameters
70
+ header_params = opts[:header_params] || {}
71
+ # HTTP header 'Accept' (if needed)
72
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
73
+
74
+ # form parameters
75
+ form_params = opts[:form_params] || {}
76
+
77
+ # http body (model)
78
+ post_body = opts[:body]
79
+
80
+ # return_type
81
+ return_type = opts[:return_type] || 'PaginatedMultipleArtifactContentResponseList'
82
+
83
+ # auth_names
84
+ auth_names = opts[:auth_names] || ['basicAuth']
85
+
86
+ new_options = opts.merge(
87
+ :header_params => header_params,
88
+ :query_params => query_params,
89
+ :form_params => form_params,
90
+ :body => post_body,
91
+ :auth_names => auth_names,
92
+ :return_type => return_type
93
+ )
94
+
95
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: ContentApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ return data, status_code, headers
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,108 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class ContentGuardsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List content guards
23
+ # Endpoint to list all content_guards.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Integer] :limit Number of results to return per page.
26
+ # @option opts [String] :name name
27
+ # @option opts [String] :name__contains name__contains
28
+ # @option opts [String] :name__icontains name__icontains
29
+ # @option opts [String] :name__in name__in
30
+ # @option opts [String] :name__startswith name__startswith
31
+ # @option opts [Integer] :offset The initial index from which to return the results.
32
+ # @option opts [String] :ordering Which field to use when ordering the results.
33
+ # @option opts [String] :fields A list of fields to include in the response.
34
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
35
+ # @return [PaginatedContentGuardResponseList]
36
+ def list(opts = {})
37
+ data, _status_code, _headers = list_with_http_info(opts)
38
+ data
39
+ end
40
+
41
+ # List content guards
42
+ # Endpoint to list all content_guards.
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [Integer] :limit Number of results to return per page.
45
+ # @option opts [String] :name name
46
+ # @option opts [String] :name__contains name__contains
47
+ # @option opts [String] :name__icontains name__icontains
48
+ # @option opts [String] :name__in name__in
49
+ # @option opts [String] :name__startswith name__startswith
50
+ # @option opts [Integer] :offset The initial index from which to return the results.
51
+ # @option opts [String] :ordering Which field to use when ordering the results.
52
+ # @option opts [String] :fields A list of fields to include in the response.
53
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
54
+ # @return [Array<(PaginatedContentGuardResponseList, Integer, Hash)>] PaginatedContentGuardResponseList data, response status code and response headers
55
+ def list_with_http_info(opts = {})
56
+ if @api_client.config.debugging
57
+ @api_client.config.logger.debug 'Calling API: ContentGuardsApi.list ...'
58
+ end
59
+ # resource path
60
+ local_var_path = '/pulp/api/v3/content_guards/'
61
+
62
+ # query parameters
63
+ query_params = opts[:query_params] || {}
64
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
65
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
66
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
67
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
68
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
69
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
70
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
71
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
72
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
73
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
74
+
75
+ # header parameters
76
+ header_params = opts[:header_params] || {}
77
+ # HTTP header 'Accept' (if needed)
78
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
79
+
80
+ # form parameters
81
+ form_params = opts[:form_params] || {}
82
+
83
+ # http body (model)
84
+ post_body = opts[:body]
85
+
86
+ # return_type
87
+ return_type = opts[:return_type] || 'PaginatedContentGuardResponseList'
88
+
89
+ # auth_names
90
+ auth_names = opts[:auth_names] || ['basicAuth']
91
+
92
+ new_options = opts.merge(
93
+ :header_params => header_params,
94
+ :query_params => query_params,
95
+ :form_params => form_params,
96
+ :body => post_body,
97
+ :auth_names => auth_names,
98
+ :return_type => return_type
99
+ )
100
+
101
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug "API called: ContentGuardsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
104
+ end
105
+ return data, status_code, headers
106
+ end
107
+ end
108
+ end