pulp_rpm_client 3.18.19 → 3.19.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.
- checksums.yaml +4 -4
- data/README.md +36 -8
- data/docs/AcsRpmApi.md +230 -6
- data/docs/ContentAdvisoriesApi.md +2 -6
- data/docs/ContentDistributionTreesApi.md +2 -6
- data/docs/ContentModulemdDefaultsApi.md +2 -6
- data/docs/ContentModulemdObsoletesApi.md +2 -6
- data/docs/ContentModulemdsApi.md +2 -6
- data/docs/ContentPackagecategoriesApi.md +2 -6
- data/docs/ContentPackageenvironmentsApi.md +2 -6
- data/docs/ContentPackagegroupsApi.md +2 -6
- data/docs/ContentPackagelangpacksApi.md +2 -6
- data/docs/ContentPackagesApi.md +4 -8
- data/docs/ContentRepoMetadataFilesApi.md +2 -6
- data/docs/DistributionsRpmApi.md +230 -10
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PatchedrpmRpmRemote.md +1 -1
- data/docs/PatchedrpmRpmRepository.md +3 -3
- data/docs/PatchedrpmUlnRemote.md +1 -1
- data/docs/PublicationsRpmApi.md +230 -6
- data/docs/RemotesRpmApi.md +230 -6
- data/docs/RemotesUlnApi.md +230 -6
- data/docs/RepositoriesRpmApi.md +230 -22
- data/docs/RepositoriesRpmVersionsApi.md +2 -4
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RpmModulemdObsolete.md +2 -2
- data/docs/RpmModulemdObsoleteResponse.md +2 -2
- data/docs/RpmRepositorySyncURL.md +1 -1
- data/docs/RpmRpmPublication.md +2 -2
- data/docs/RpmRpmPublicationResponse.md +2 -2
- data/docs/RpmRpmRemote.md +1 -1
- data/docs/RpmRpmRemoteResponse.md +1 -1
- data/docs/RpmRpmRepository.md +3 -3
- data/docs/RpmRpmRepositoryResponse.md +3 -3
- data/docs/RpmUlnRemote.md +1 -1
- data/docs/RpmUlnRemoteResponse.md +1 -1
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +270 -8
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_packages_api.rb +4 -10
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +2 -8
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +270 -14
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +270 -8
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +270 -8
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +270 -8
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +270 -32
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +2 -5
- data/lib/pulp_rpm_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_rpm_client/models/nested_role.rb +234 -0
- data/lib/pulp_rpm_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_rpm_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +3 -3
- data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +2 -2
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +36 -2
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +2 -2
- data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +2 -2
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +2 -2
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +4 -0
- data/spec/api/acs_rpm_api_spec.rb +51 -3
- data/spec/api/content_advisories_api_spec.rb +1 -3
- data/spec/api/content_distribution_trees_api_spec.rb +1 -3
- data/spec/api/content_modulemd_defaults_api_spec.rb +1 -3
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +1 -3
- data/spec/api/content_modulemds_api_spec.rb +1 -3
- data/spec/api/content_packagecategories_api_spec.rb +1 -3
- data/spec/api/content_packageenvironments_api_spec.rb +1 -3
- data/spec/api/content_packagegroups_api_spec.rb +1 -3
- data/spec/api/content_packagelangpacks_api_spec.rb +1 -3
- data/spec/api/content_packages_api_spec.rb +2 -4
- data/spec/api/content_repo_metadata_files_api_spec.rb +1 -3
- data/spec/api/distributions_rpm_api_spec.rb +51 -5
- data/spec/api/publications_rpm_api_spec.rb +51 -3
- data/spec/api/remotes_rpm_api_spec.rb +51 -3
- data/spec/api/remotes_uln_api_spec.rb +51 -3
- data/spec/api/repositories_rpm_api_spec.rb +51 -11
- data/spec/api/repositories_rpm_versions_api_spec.rb +1 -2
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- metadata +90 -74
|
@@ -33,9 +33,7 @@ api_instance = PulpRpmClient::ContentPackagelangpacksApi.new
|
|
|
33
33
|
opts = {
|
|
34
34
|
limit: 56, # Integer | Number of results to return per page.
|
|
35
35
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
36
|
-
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
37
|
-
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
|
38
|
-
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
|
36
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
39
37
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
40
38
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
|
41
39
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
|
@@ -59,9 +57,7 @@ Name | Type | Description | Notes
|
|
|
59
57
|
------------- | ------------- | ------------- | -------------
|
|
60
58
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
61
59
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
62
|
-
**ordering** | [**Array<String>**](String.md)| Ordering
|
|
63
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
|
64
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
|
60
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
65
61
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
|
66
62
|
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
|
67
63
|
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
data/docs/ContentPackagesApi.md
CHANGED
|
@@ -98,7 +98,7 @@ opts = {
|
|
|
98
98
|
arch: 'arch_example', # String | Filter results where arch matches value
|
|
99
99
|
arch__in: ['arch__in_example'], # Array<String> | Filter results where arch is in a comma-separated list of values
|
|
100
100
|
arch__ne: 'arch__ne_example', # String | Filter results where arch not equal to value
|
|
101
|
-
checksum_type: 'checksum_type_example', # String | Filter results where checksum_type matches value
|
|
101
|
+
checksum_type: 'checksum_type_example', # String | Filter results where checksum_type matches value
|
|
102
102
|
checksum_type__in: ['checksum_type__in_example'], # Array<String> | Filter results where checksum_type is in a comma-separated list of values
|
|
103
103
|
checksum_type__ne: 'checksum_type__ne_example', # String | Filter results where checksum_type not equal to value
|
|
104
104
|
epoch: 'epoch_example', # String | Filter results where epoch matches value
|
|
@@ -109,11 +109,9 @@ opts = {
|
|
|
109
109
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
110
110
|
name__ne: 'name__ne_example', # String | Filter results where name not equal to value
|
|
111
111
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
112
|
-
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
112
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
113
113
|
pkg_id: 'pkg_id_example', # String | Filter results where pkgId matches value
|
|
114
114
|
pkg_id__in: ['pkg_id__in_example'], # Array<String> | Filter results where pkgId is in a comma-separated list of values
|
|
115
|
-
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
|
116
|
-
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
|
117
115
|
release: 'release_example', # String | Filter results where release matches value
|
|
118
116
|
release__in: ['release__in_example'], # Array<String> | Filter results where release is in a comma-separated list of values
|
|
119
117
|
release__ne: 'release__ne_example', # String | Filter results where release not equal to value
|
|
@@ -145,7 +143,7 @@ Name | Type | Description | Notes
|
|
|
145
143
|
**arch** | **String**| Filter results where arch matches value | [optional]
|
|
146
144
|
**arch__in** | [**Array<String>**](String.md)| Filter results where arch is in a comma-separated list of values | [optional]
|
|
147
145
|
**arch__ne** | **String**| Filter results where arch not equal to value | [optional]
|
|
148
|
-
**checksum_type** | **String**| Filter results where checksum_type matches value
|
|
146
|
+
**checksum_type** | **String**| Filter results where checksum_type matches value | [optional]
|
|
149
147
|
**checksum_type__in** | [**Array<String>**](String.md)| Filter results where checksum_type is in a comma-separated list of values | [optional]
|
|
150
148
|
**checksum_type__ne** | **String**| Filter results where checksum_type not equal to value | [optional]
|
|
151
149
|
**epoch** | **String**| Filter results where epoch matches value | [optional]
|
|
@@ -156,11 +154,9 @@ Name | Type | Description | Notes
|
|
|
156
154
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
157
155
|
**name__ne** | **String**| Filter results where name not equal to value | [optional]
|
|
158
156
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
159
|
-
**ordering** | [**Array<String>**](String.md)| Ordering
|
|
157
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
160
158
|
**pkg_id** | **String**| Filter results where pkgId matches value | [optional]
|
|
161
159
|
**pkg_id__in** | [**Array<String>**](String.md)| Filter results where pkgId is in a comma-separated list of values | [optional]
|
|
162
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
|
163
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
|
164
160
|
**release** | **String**| Filter results where release matches value | [optional]
|
|
165
161
|
**release__in** | [**Array<String>**](String.md)| Filter results where release is in a comma-separated list of values | [optional]
|
|
166
162
|
**release__ne** | **String**| Filter results where release not equal to value | [optional]
|
|
@@ -33,9 +33,7 @@ api_instance = PulpRpmClient::ContentRepoMetadataFilesApi.new
|
|
|
33
33
|
opts = {
|
|
34
34
|
limit: 56, # Integer | Number of results to return per page.
|
|
35
35
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
36
|
-
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
37
|
-
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
|
38
|
-
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
|
36
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
39
37
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
40
38
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
|
41
39
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
|
@@ -59,9 +57,7 @@ Name | Type | Description | Notes
|
|
|
59
57
|
------------- | ------------- | ------------- | -------------
|
|
60
58
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
61
59
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
62
|
-
**ordering** | [**Array<String>**](String.md)| Ordering
|
|
63
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
|
64
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
|
60
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
65
61
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
|
66
62
|
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
|
67
63
|
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
data/docs/DistributionsRpmApi.md
CHANGED
|
@@ -4,15 +4,73 @@ All URIs are relative to *https://pulp*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
+
[**add_role**](DistributionsRpmApi.md#add_role) | **POST** {rpm_rpm_distribution_href}add_role/ |
|
|
7
8
|
[**create**](DistributionsRpmApi.md#create) | **POST** /pulp/api/v3/distributions/rpm/rpm/ | Create a rpm distribution
|
|
8
9
|
[**delete**](DistributionsRpmApi.md#delete) | **DELETE** {rpm_rpm_distribution_href} | Delete a rpm distribution
|
|
9
10
|
[**list**](DistributionsRpmApi.md#list) | **GET** /pulp/api/v3/distributions/rpm/rpm/ | List rpm distributions
|
|
11
|
+
[**list_roles**](DistributionsRpmApi.md#list_roles) | **GET** {rpm_rpm_distribution_href}list_roles/ |
|
|
12
|
+
[**my_permissions**](DistributionsRpmApi.md#my_permissions) | **GET** {rpm_rpm_distribution_href}my_permissions/ |
|
|
10
13
|
[**partial_update**](DistributionsRpmApi.md#partial_update) | **PATCH** {rpm_rpm_distribution_href} | Update a rpm distribution
|
|
11
14
|
[**read**](DistributionsRpmApi.md#read) | **GET** {rpm_rpm_distribution_href} | Inspect a rpm distribution
|
|
15
|
+
[**remove_role**](DistributionsRpmApi.md#remove_role) | **POST** {rpm_rpm_distribution_href}remove_role/ |
|
|
12
16
|
[**update**](DistributionsRpmApi.md#update) | **PUT** {rpm_rpm_distribution_href} | Update a rpm distribution
|
|
13
17
|
|
|
14
18
|
|
|
15
19
|
|
|
20
|
+
## add_role
|
|
21
|
+
|
|
22
|
+
> NestedRoleResponse add_role(rpm_rpm_distribution_href, nested_role)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Add a role for this object to users/groups.
|
|
27
|
+
|
|
28
|
+
### Example
|
|
29
|
+
|
|
30
|
+
```ruby
|
|
31
|
+
# load the gem
|
|
32
|
+
require 'pulp_rpm_client'
|
|
33
|
+
# setup authorization
|
|
34
|
+
PulpRpmClient.configure do |config|
|
|
35
|
+
# Configure HTTP basic authorization: basicAuth
|
|
36
|
+
config.username = 'YOUR USERNAME'
|
|
37
|
+
config.password = 'YOUR PASSWORD'
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
api_instance = PulpRpmClient::DistributionsRpmApi.new
|
|
41
|
+
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # String |
|
|
42
|
+
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
|
43
|
+
|
|
44
|
+
begin
|
|
45
|
+
result = api_instance.add_role(rpm_rpm_distribution_href, nested_role)
|
|
46
|
+
p result
|
|
47
|
+
rescue PulpRpmClient::ApiError => e
|
|
48
|
+
puts "Exception when calling DistributionsRpmApi->add_role: #{e}"
|
|
49
|
+
end
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Parameters
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
Name | Type | Description | Notes
|
|
56
|
+
------------- | ------------- | ------------- | -------------
|
|
57
|
+
**rpm_rpm_distribution_href** | **String**| |
|
|
58
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
|
59
|
+
|
|
60
|
+
### Return type
|
|
61
|
+
|
|
62
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
63
|
+
|
|
64
|
+
### Authorization
|
|
65
|
+
|
|
66
|
+
[basicAuth](../README.md#basicAuth)
|
|
67
|
+
|
|
68
|
+
### HTTP request headers
|
|
69
|
+
|
|
70
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
71
|
+
- **Accept**: application/json
|
|
72
|
+
|
|
73
|
+
|
|
16
74
|
## create
|
|
17
75
|
|
|
18
76
|
> AsyncOperationResponse create(rpm_rpm_distribution)
|
|
@@ -152,12 +210,8 @@ opts = {
|
|
|
152
210
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
153
211
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
154
212
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
155
|
-
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
156
|
-
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
|
157
|
-
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
|
213
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
158
214
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
159
|
-
repository: 'repository_example', # String | Filter results where repository matches value
|
|
160
|
-
repository__in: ['repository__in_example'], # Array<String> | Filter results where repository is in a comma-separated list of values
|
|
161
215
|
with_content: 'with_content_example', # String | Filter distributions based on the content served by them
|
|
162
216
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
|
163
217
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
|
@@ -188,12 +242,8 @@ Name | Type | Description | Notes
|
|
|
188
242
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
189
243
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
|
190
244
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
191
|
-
**ordering** | [**Array<String>**](String.md)| Ordering
|
|
192
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
|
193
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
|
245
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
194
246
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
|
195
|
-
**repository** | **String**| Filter results where repository matches value | [optional]
|
|
196
|
-
**repository__in** | [**Array<String>**](String.md)| Filter results where repository is in a comma-separated list of values | [optional]
|
|
197
247
|
**with_content** | **String**| Filter distributions based on the content served by them | [optional]
|
|
198
248
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
|
199
249
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
|
@@ -212,6 +262,122 @@ Name | Type | Description | Notes
|
|
|
212
262
|
- **Accept**: application/json
|
|
213
263
|
|
|
214
264
|
|
|
265
|
+
## list_roles
|
|
266
|
+
|
|
267
|
+
> ObjectRolesResponse list_roles(rpm_rpm_distribution_href, opts)
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
List roles assigned to this object.
|
|
272
|
+
|
|
273
|
+
### Example
|
|
274
|
+
|
|
275
|
+
```ruby
|
|
276
|
+
# load the gem
|
|
277
|
+
require 'pulp_rpm_client'
|
|
278
|
+
# setup authorization
|
|
279
|
+
PulpRpmClient.configure do |config|
|
|
280
|
+
# Configure HTTP basic authorization: basicAuth
|
|
281
|
+
config.username = 'YOUR USERNAME'
|
|
282
|
+
config.password = 'YOUR PASSWORD'
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
api_instance = PulpRpmClient::DistributionsRpmApi.new
|
|
286
|
+
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # String |
|
|
287
|
+
opts = {
|
|
288
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
|
289
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
begin
|
|
293
|
+
result = api_instance.list_roles(rpm_rpm_distribution_href, opts)
|
|
294
|
+
p result
|
|
295
|
+
rescue PulpRpmClient::ApiError => e
|
|
296
|
+
puts "Exception when calling DistributionsRpmApi->list_roles: #{e}"
|
|
297
|
+
end
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### Parameters
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
Name | Type | Description | Notes
|
|
304
|
+
------------- | ------------- | ------------- | -------------
|
|
305
|
+
**rpm_rpm_distribution_href** | **String**| |
|
|
306
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
|
307
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
|
308
|
+
|
|
309
|
+
### Return type
|
|
310
|
+
|
|
311
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
|
312
|
+
|
|
313
|
+
### Authorization
|
|
314
|
+
|
|
315
|
+
[basicAuth](../README.md#basicAuth)
|
|
316
|
+
|
|
317
|
+
### HTTP request headers
|
|
318
|
+
|
|
319
|
+
- **Content-Type**: Not defined
|
|
320
|
+
- **Accept**: application/json
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
## my_permissions
|
|
324
|
+
|
|
325
|
+
> MyPermissionsResponse my_permissions(rpm_rpm_distribution_href, opts)
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
List permissions available to the current user on this object.
|
|
330
|
+
|
|
331
|
+
### Example
|
|
332
|
+
|
|
333
|
+
```ruby
|
|
334
|
+
# load the gem
|
|
335
|
+
require 'pulp_rpm_client'
|
|
336
|
+
# setup authorization
|
|
337
|
+
PulpRpmClient.configure do |config|
|
|
338
|
+
# Configure HTTP basic authorization: basicAuth
|
|
339
|
+
config.username = 'YOUR USERNAME'
|
|
340
|
+
config.password = 'YOUR PASSWORD'
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
api_instance = PulpRpmClient::DistributionsRpmApi.new
|
|
344
|
+
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # String |
|
|
345
|
+
opts = {
|
|
346
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
|
347
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
begin
|
|
351
|
+
result = api_instance.my_permissions(rpm_rpm_distribution_href, opts)
|
|
352
|
+
p result
|
|
353
|
+
rescue PulpRpmClient::ApiError => e
|
|
354
|
+
puts "Exception when calling DistributionsRpmApi->my_permissions: #{e}"
|
|
355
|
+
end
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
### Parameters
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
Name | Type | Description | Notes
|
|
362
|
+
------------- | ------------- | ------------- | -------------
|
|
363
|
+
**rpm_rpm_distribution_href** | **String**| |
|
|
364
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
|
365
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
|
366
|
+
|
|
367
|
+
### Return type
|
|
368
|
+
|
|
369
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
|
370
|
+
|
|
371
|
+
### Authorization
|
|
372
|
+
|
|
373
|
+
[basicAuth](../README.md#basicAuth)
|
|
374
|
+
|
|
375
|
+
### HTTP request headers
|
|
376
|
+
|
|
377
|
+
- **Content-Type**: Not defined
|
|
378
|
+
- **Accept**: application/json
|
|
379
|
+
|
|
380
|
+
|
|
215
381
|
## partial_update
|
|
216
382
|
|
|
217
383
|
> AsyncOperationResponse partial_update(rpm_rpm_distribution_href, patchedrpm_rpm_distribution)
|
|
@@ -326,6 +492,60 @@ Name | Type | Description | Notes
|
|
|
326
492
|
- **Accept**: application/json
|
|
327
493
|
|
|
328
494
|
|
|
495
|
+
## remove_role
|
|
496
|
+
|
|
497
|
+
> NestedRoleResponse remove_role(rpm_rpm_distribution_href, nested_role)
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
Remove a role for this object from users/groups.
|
|
502
|
+
|
|
503
|
+
### Example
|
|
504
|
+
|
|
505
|
+
```ruby
|
|
506
|
+
# load the gem
|
|
507
|
+
require 'pulp_rpm_client'
|
|
508
|
+
# setup authorization
|
|
509
|
+
PulpRpmClient.configure do |config|
|
|
510
|
+
# Configure HTTP basic authorization: basicAuth
|
|
511
|
+
config.username = 'YOUR USERNAME'
|
|
512
|
+
config.password = 'YOUR PASSWORD'
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
api_instance = PulpRpmClient::DistributionsRpmApi.new
|
|
516
|
+
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # String |
|
|
517
|
+
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
|
518
|
+
|
|
519
|
+
begin
|
|
520
|
+
result = api_instance.remove_role(rpm_rpm_distribution_href, nested_role)
|
|
521
|
+
p result
|
|
522
|
+
rescue PulpRpmClient::ApiError => e
|
|
523
|
+
puts "Exception when calling DistributionsRpmApi->remove_role: #{e}"
|
|
524
|
+
end
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
### Parameters
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
Name | Type | Description | Notes
|
|
531
|
+
------------- | ------------- | ------------- | -------------
|
|
532
|
+
**rpm_rpm_distribution_href** | **String**| |
|
|
533
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
|
534
|
+
|
|
535
|
+
### Return type
|
|
536
|
+
|
|
537
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
538
|
+
|
|
539
|
+
### Authorization
|
|
540
|
+
|
|
541
|
+
[basicAuth](../README.md#basicAuth)
|
|
542
|
+
|
|
543
|
+
### HTTP request headers
|
|
544
|
+
|
|
545
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
546
|
+
- **Accept**: application/json
|
|
547
|
+
|
|
548
|
+
|
|
329
549
|
## update
|
|
330
550
|
|
|
331
551
|
> AsyncOperationResponse update(rpm_rpm_distribution_href, rpm_rpm_distribution)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# PulpRpmClient::MyPermissionsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**permissions** | **Array<String>** | |
|
|
8
|
+
|
|
9
|
+
## Code Sample
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'PulpRpmClient'
|
|
13
|
+
|
|
14
|
+
instance = PulpRpmClient::MyPermissionsResponse.new(permissions: null)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
data/docs/NestedRole.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# PulpRpmClient::NestedRole
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**users** | **Array<String>** | | [optional]
|
|
8
|
+
**groups** | **Array<String>** | | [optional]
|
|
9
|
+
**role** | **String** | |
|
|
10
|
+
|
|
11
|
+
## Code Sample
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'PulpRpmClient'
|
|
15
|
+
|
|
16
|
+
instance = PulpRpmClient::NestedRole.new(users: null,
|
|
17
|
+
groups: null,
|
|
18
|
+
role: null)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# PulpRpmClient::NestedRoleResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**users** | **Array<String>** | | [optional]
|
|
8
|
+
**groups** | **Array<String>** | | [optional]
|
|
9
|
+
**role** | **String** | |
|
|
10
|
+
|
|
11
|
+
## Code Sample
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'PulpRpmClient'
|
|
15
|
+
|
|
16
|
+
instance = PulpRpmClient::NestedRoleResponse.new(users: null,
|
|
17
|
+
groups: null,
|
|
18
|
+
role: null)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# PulpRpmClient::ObjectRolesResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**roles** | [**Array<NestedRoleResponse>**](NestedRoleResponse.md) | |
|
|
8
|
+
|
|
9
|
+
## Code Sample
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'PulpRpmClient'
|
|
13
|
+
|
|
14
|
+
instance = PulpRpmClient::ObjectRolesResponse.new(roles: null)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
data/docs/PatchedrpmRpmRemote.md
CHANGED
|
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
|
|
|
18
18
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
|
19
19
|
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
20
20
|
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
21
|
-
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
|
21
|
+
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
|
|
22
22
|
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
23
23
|
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
24
24
|
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
@@ -7,13 +7,13 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
|
8
8
|
**name** | **String** | A unique name for this repository. | [optional]
|
|
9
9
|
**description** | **String** | An optional description. | [optional]
|
|
10
|
-
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
|
10
|
+
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
|
11
11
|
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
|
12
12
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
|
13
13
|
**metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
|
14
14
|
**retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
|
|
15
|
-
**metadata_checksum_type** | [**MetadataChecksumTypeEnum**](MetadataChecksumTypeEnum.md) | The checksum type for metadata.
|
|
16
|
-
**package_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | The checksum type for packages.
|
|
15
|
+
**metadata_checksum_type** | [**MetadataChecksumTypeEnum**](MetadataChecksumTypeEnum.md) | The checksum type for metadata. | [optional]
|
|
16
|
+
**package_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | The checksum type for packages. | [optional]
|
|
17
17
|
**gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on packages. | [optional] [default to 0]
|
|
18
18
|
**repo_gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on the repodata. | [optional] [default to 0]
|
|
19
19
|
**sqlite_metadata** | **Boolean** | DEPRECATED: An option specifying whether Pulp should generate SQLite metadata. | [optional] [default to false]
|
data/docs/PatchedrpmUlnRemote.md
CHANGED
|
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
|
|
|
18
18
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
|
19
19
|
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
20
20
|
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
21
|
-
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
|
21
|
+
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
|
|
22
22
|
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
23
23
|
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
24
24
|
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|