pulp_deb_client 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -4
- data/docs/DebReleaseComponentResponse.md +3 -1
- data/docs/DebSourcePackageResponse.md +2 -0
- data/docs/DistributionsAptApi.md +232 -0
- 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/PublicationsAptApi.md +232 -0
- data/docs/PublicationsVerbatimApi.md +232 -0
- data/docs/RemotesAptApi.md +232 -0
- data/docs/RepositoriesAptApi.md +232 -0
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +276 -0
- data/lib/pulp_deb_client/api/publications_apt_api.rb +276 -0
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +276 -0
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +276 -0
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +276 -0
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +20 -20
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +20 -20
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +14 -4
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +11 -1
- data/lib/pulp_deb_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_deb_client/models/nested_role.rb +253 -0
- data/lib/pulp_deb_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_deb_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +20 -20
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +4 -0
- data/spec/api/distributions_apt_api_spec.rb +54 -0
- data/spec/api/publications_apt_api_spec.rb +54 -0
- data/spec/api/publications_verbatim_api_spec.rb +54 -0
- data/spec/api/remotes_apt_api_spec.rb +54 -0
- data/spec/api/repositories_apt_api_spec.rb +54 -0
- data/spec/models/deb_release_component_response_spec.rb +6 -0
- data/spec/models/deb_source_package_response_spec.rb +6 -0
- 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 +95 -79
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 364d224e742756b09740d3d8a42d5217e5bb659440a12cb8ae2974061480a493
|
4
|
+
data.tar.gz: 478fbf2a2a73323017850f32a4eb41d451bca660801488bc71d873f467de2faa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43cd78ecbbac507e22ab16900c1c340d5bc83a7f9abdd50bccced48a5db77fb2167ba847f56b557e963dccb4f4838ef20a3013d5ffad585e90bab62152326b41
|
7
|
+
data.tar.gz: c73df7929dd11c50d1aedc7e49c330f34b6cf9385d287a4b18d0834635883406e36d91b471e37b278d8af8613e77ccf6481b67b7c2eafd299e3bbb1b0f3f3857
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 3.
|
10
|
+
- Package version: 3.5.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_deb_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_deb_client-3.
|
27
|
+
gem install ./pulp_deb_client-3.5.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_deb_client-3.
|
30
|
+
(for development, run `gem install --dev ./pulp_deb_client-3.5.0.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_deb_client', '~> 3.
|
36
|
+
gem 'pulp_deb_client', '~> 3.5.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -130,36 +130,56 @@ Class | Method | HTTP request | Description
|
|
130
130
|
*PulpDebClient::ContentSourceReleaseComponentsApi* | [**list**](docs/ContentSourceReleaseComponentsApi.md#list) | **GET** /pulp/api/v3/content/deb/source_release_components/ | List source package release components
|
131
131
|
*PulpDebClient::ContentSourceReleaseComponentsApi* | [**read**](docs/ContentSourceReleaseComponentsApi.md#read) | **GET** {deb_source_package_release_component_href} | Inspect a source package release component
|
132
132
|
*PulpDebClient::DebCopyApi* | [**copy_content**](docs/DebCopyApi.md#copy_content) | **POST** /pulp/api/v3/deb/copy/ | Copy content
|
133
|
+
*PulpDebClient::DistributionsAptApi* | [**add_role**](docs/DistributionsAptApi.md#add_role) | **POST** {deb_apt_distribution_href}add_role/ | Add a role
|
133
134
|
*PulpDebClient::DistributionsAptApi* | [**create**](docs/DistributionsAptApi.md#create) | **POST** /pulp/api/v3/distributions/deb/apt/ | Create an apt distribution
|
134
135
|
*PulpDebClient::DistributionsAptApi* | [**delete**](docs/DistributionsAptApi.md#delete) | **DELETE** {deb_apt_distribution_href} | Delete an apt distribution
|
135
136
|
*PulpDebClient::DistributionsAptApi* | [**list**](docs/DistributionsAptApi.md#list) | **GET** /pulp/api/v3/distributions/deb/apt/ | List apt distributions
|
137
|
+
*PulpDebClient::DistributionsAptApi* | [**list_roles**](docs/DistributionsAptApi.md#list_roles) | **GET** {deb_apt_distribution_href}list_roles/ | List roles
|
138
|
+
*PulpDebClient::DistributionsAptApi* | [**my_permissions**](docs/DistributionsAptApi.md#my_permissions) | **GET** {deb_apt_distribution_href}my_permissions/ | List user permissions
|
136
139
|
*PulpDebClient::DistributionsAptApi* | [**partial_update**](docs/DistributionsAptApi.md#partial_update) | **PATCH** {deb_apt_distribution_href} | Update an apt distribution
|
137
140
|
*PulpDebClient::DistributionsAptApi* | [**read**](docs/DistributionsAptApi.md#read) | **GET** {deb_apt_distribution_href} | Inspect an apt distribution
|
141
|
+
*PulpDebClient::DistributionsAptApi* | [**remove_role**](docs/DistributionsAptApi.md#remove_role) | **POST** {deb_apt_distribution_href}remove_role/ | Remove a role
|
138
142
|
*PulpDebClient::DistributionsAptApi* | [**set_label**](docs/DistributionsAptApi.md#set_label) | **POST** {deb_apt_distribution_href}set_label/ | Set a label
|
139
143
|
*PulpDebClient::DistributionsAptApi* | [**unset_label**](docs/DistributionsAptApi.md#unset_label) | **POST** {deb_apt_distribution_href}unset_label/ | Unset a label
|
140
144
|
*PulpDebClient::DistributionsAptApi* | [**update**](docs/DistributionsAptApi.md#update) | **PUT** {deb_apt_distribution_href} | Update an apt distribution
|
145
|
+
*PulpDebClient::PublicationsAptApi* | [**add_role**](docs/PublicationsAptApi.md#add_role) | **POST** {deb_apt_publication_href}add_role/ | Add a role
|
141
146
|
*PulpDebClient::PublicationsAptApi* | [**create**](docs/PublicationsAptApi.md#create) | **POST** /pulp/api/v3/publications/deb/apt/ | Create an apt publication
|
142
147
|
*PulpDebClient::PublicationsAptApi* | [**delete**](docs/PublicationsAptApi.md#delete) | **DELETE** {deb_apt_publication_href} | Delete an apt publication
|
143
148
|
*PulpDebClient::PublicationsAptApi* | [**list**](docs/PublicationsAptApi.md#list) | **GET** /pulp/api/v3/publications/deb/apt/ | List apt publications
|
149
|
+
*PulpDebClient::PublicationsAptApi* | [**list_roles**](docs/PublicationsAptApi.md#list_roles) | **GET** {deb_apt_publication_href}list_roles/ | List roles
|
150
|
+
*PulpDebClient::PublicationsAptApi* | [**my_permissions**](docs/PublicationsAptApi.md#my_permissions) | **GET** {deb_apt_publication_href}my_permissions/ | List user permissions
|
144
151
|
*PulpDebClient::PublicationsAptApi* | [**read**](docs/PublicationsAptApi.md#read) | **GET** {deb_apt_publication_href} | Inspect an apt publication
|
152
|
+
*PulpDebClient::PublicationsAptApi* | [**remove_role**](docs/PublicationsAptApi.md#remove_role) | **POST** {deb_apt_publication_href}remove_role/ | Remove a role
|
153
|
+
*PulpDebClient::PublicationsVerbatimApi* | [**add_role**](docs/PublicationsVerbatimApi.md#add_role) | **POST** {deb_verbatim_publication_href}add_role/ | Add a role
|
145
154
|
*PulpDebClient::PublicationsVerbatimApi* | [**create**](docs/PublicationsVerbatimApi.md#create) | **POST** /pulp/api/v3/publications/deb/verbatim/ | Create a verbatim publication
|
146
155
|
*PulpDebClient::PublicationsVerbatimApi* | [**delete**](docs/PublicationsVerbatimApi.md#delete) | **DELETE** {deb_verbatim_publication_href} | Delete a verbatim publication
|
147
156
|
*PulpDebClient::PublicationsVerbatimApi* | [**list**](docs/PublicationsVerbatimApi.md#list) | **GET** /pulp/api/v3/publications/deb/verbatim/ | List verbatim publications
|
157
|
+
*PulpDebClient::PublicationsVerbatimApi* | [**list_roles**](docs/PublicationsVerbatimApi.md#list_roles) | **GET** {deb_verbatim_publication_href}list_roles/ | List roles
|
158
|
+
*PulpDebClient::PublicationsVerbatimApi* | [**my_permissions**](docs/PublicationsVerbatimApi.md#my_permissions) | **GET** {deb_verbatim_publication_href}my_permissions/ | List user permissions
|
148
159
|
*PulpDebClient::PublicationsVerbatimApi* | [**read**](docs/PublicationsVerbatimApi.md#read) | **GET** {deb_verbatim_publication_href} | Inspect a verbatim publication
|
160
|
+
*PulpDebClient::PublicationsVerbatimApi* | [**remove_role**](docs/PublicationsVerbatimApi.md#remove_role) | **POST** {deb_verbatim_publication_href}remove_role/ | Remove a role
|
161
|
+
*PulpDebClient::RemotesAptApi* | [**add_role**](docs/RemotesAptApi.md#add_role) | **POST** {deb_apt_remote_href}add_role/ | Add a role
|
149
162
|
*PulpDebClient::RemotesAptApi* | [**create**](docs/RemotesAptApi.md#create) | **POST** /pulp/api/v3/remotes/deb/apt/ | Create an apt remote
|
150
163
|
*PulpDebClient::RemotesAptApi* | [**delete**](docs/RemotesAptApi.md#delete) | **DELETE** {deb_apt_remote_href} | Delete an apt remote
|
151
164
|
*PulpDebClient::RemotesAptApi* | [**list**](docs/RemotesAptApi.md#list) | **GET** /pulp/api/v3/remotes/deb/apt/ | List apt remotes
|
165
|
+
*PulpDebClient::RemotesAptApi* | [**list_roles**](docs/RemotesAptApi.md#list_roles) | **GET** {deb_apt_remote_href}list_roles/ | List roles
|
166
|
+
*PulpDebClient::RemotesAptApi* | [**my_permissions**](docs/RemotesAptApi.md#my_permissions) | **GET** {deb_apt_remote_href}my_permissions/ | List user permissions
|
152
167
|
*PulpDebClient::RemotesAptApi* | [**partial_update**](docs/RemotesAptApi.md#partial_update) | **PATCH** {deb_apt_remote_href} | Update an apt remote
|
153
168
|
*PulpDebClient::RemotesAptApi* | [**read**](docs/RemotesAptApi.md#read) | **GET** {deb_apt_remote_href} | Inspect an apt remote
|
169
|
+
*PulpDebClient::RemotesAptApi* | [**remove_role**](docs/RemotesAptApi.md#remove_role) | **POST** {deb_apt_remote_href}remove_role/ | Remove a role
|
154
170
|
*PulpDebClient::RemotesAptApi* | [**set_label**](docs/RemotesAptApi.md#set_label) | **POST** {deb_apt_remote_href}set_label/ | Set a label
|
155
171
|
*PulpDebClient::RemotesAptApi* | [**unset_label**](docs/RemotesAptApi.md#unset_label) | **POST** {deb_apt_remote_href}unset_label/ | Unset a label
|
156
172
|
*PulpDebClient::RemotesAptApi* | [**update**](docs/RemotesAptApi.md#update) | **PUT** {deb_apt_remote_href} | Update an apt remote
|
173
|
+
*PulpDebClient::RepositoriesAptApi* | [**add_role**](docs/RepositoriesAptApi.md#add_role) | **POST** {deb_apt_repository_href}add_role/ | Add a role
|
157
174
|
*PulpDebClient::RepositoriesAptApi* | [**create**](docs/RepositoriesAptApi.md#create) | **POST** /pulp/api/v3/repositories/deb/apt/ | Create an apt repository
|
158
175
|
*PulpDebClient::RepositoriesAptApi* | [**delete**](docs/RepositoriesAptApi.md#delete) | **DELETE** {deb_apt_repository_href} | Delete an apt repository
|
159
176
|
*PulpDebClient::RepositoriesAptApi* | [**list**](docs/RepositoriesAptApi.md#list) | **GET** /pulp/api/v3/repositories/deb/apt/ | List apt repositorys
|
177
|
+
*PulpDebClient::RepositoriesAptApi* | [**list_roles**](docs/RepositoriesAptApi.md#list_roles) | **GET** {deb_apt_repository_href}list_roles/ | List roles
|
160
178
|
*PulpDebClient::RepositoriesAptApi* | [**modify**](docs/RepositoriesAptApi.md#modify) | **POST** {deb_apt_repository_href}modify/ | Modify Repository Content
|
179
|
+
*PulpDebClient::RepositoriesAptApi* | [**my_permissions**](docs/RepositoriesAptApi.md#my_permissions) | **GET** {deb_apt_repository_href}my_permissions/ | List user permissions
|
161
180
|
*PulpDebClient::RepositoriesAptApi* | [**partial_update**](docs/RepositoriesAptApi.md#partial_update) | **PATCH** {deb_apt_repository_href} | Update an apt repository
|
162
181
|
*PulpDebClient::RepositoriesAptApi* | [**read**](docs/RepositoriesAptApi.md#read) | **GET** {deb_apt_repository_href} | Inspect an apt repository
|
182
|
+
*PulpDebClient::RepositoriesAptApi* | [**remove_role**](docs/RepositoriesAptApi.md#remove_role) | **POST** {deb_apt_repository_href}remove_role/ | Remove a role
|
163
183
|
*PulpDebClient::RepositoriesAptApi* | [**set_label**](docs/RepositoriesAptApi.md#set_label) | **POST** {deb_apt_repository_href}set_label/ | Set a label
|
164
184
|
*PulpDebClient::RepositoriesAptApi* | [**sync**](docs/RepositoriesAptApi.md#sync) | **POST** {deb_apt_repository_href}sync/ | Sync from remote
|
165
185
|
*PulpDebClient::RepositoriesAptApi* | [**unset_label**](docs/RepositoriesAptApi.md#unset_label) | **POST** {deb_apt_repository_href}unset_label/ | Unset a label
|
@@ -213,6 +233,10 @@ Class | Method | HTTP request | Description
|
|
213
233
|
- [PulpDebClient::DebSourcePackageResponse](docs/DebSourcePackageResponse.md)
|
214
234
|
- [PulpDebClient::DebVerbatimPublication](docs/DebVerbatimPublication.md)
|
215
235
|
- [PulpDebClient::DebVerbatimPublicationResponse](docs/DebVerbatimPublicationResponse.md)
|
236
|
+
- [PulpDebClient::MyPermissionsResponse](docs/MyPermissionsResponse.md)
|
237
|
+
- [PulpDebClient::NestedRole](docs/NestedRole.md)
|
238
|
+
- [PulpDebClient::NestedRoleResponse](docs/NestedRoleResponse.md)
|
239
|
+
- [PulpDebClient::ObjectRolesResponse](docs/ObjectRolesResponse.md)
|
216
240
|
- [PulpDebClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
|
217
241
|
- [PulpDebClient::PaginateddebAptDistributionResponseList](docs/PaginateddebAptDistributionResponseList.md)
|
218
242
|
- [PulpDebClient::PaginateddebAptPublicationResponseList](docs/PaginateddebAptPublicationResponseList.md)
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**pulp_last_updated** | **DateTime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
|
11
11
|
**component** | **String** | Name of the component. |
|
12
12
|
**distribution** | **String** | Name of the distribution. |
|
13
|
+
**plain_component** | **String** | Name of the component without any path prefixes. | [optional] [readonly]
|
13
14
|
|
14
15
|
## Code Sample
|
15
16
|
|
@@ -21,7 +22,8 @@ instance = PulpDebClient::DebReleaseComponentResponse.new(pulp_href: null,
|
|
21
22
|
pulp_created: null,
|
22
23
|
pulp_last_updated: null,
|
23
24
|
component: null,
|
24
|
-
distribution: null
|
25
|
+
distribution: null,
|
26
|
+
plain_component: null)
|
25
27
|
```
|
26
28
|
|
27
29
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**pulp_last_updated** | **DateTime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
|
11
11
|
**artifacts** | [**Object**](.md) | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/' | [readonly]
|
12
12
|
**relative_path** | **String** | Relative path of the Debian Source Control (dsc) file.It is normally advised to let Pulp generate this. | [optional]
|
13
|
+
**sha256** | **String** | sha256 digest of the dsc file. | [optional] [readonly]
|
13
14
|
**format** | **String** | | [optional] [readonly]
|
14
15
|
**source** | **String** | | [optional] [readonly]
|
15
16
|
**binary** | **String** | | [optional] [readonly]
|
@@ -49,6 +50,7 @@ instance = PulpDebClient::DebSourcePackageResponse.new(pulp_href: null,
|
|
49
50
|
pulp_last_updated: null,
|
50
51
|
artifacts: null,
|
51
52
|
relative_path: null,
|
53
|
+
sha256: null,
|
52
54
|
format: null,
|
53
55
|
source: null,
|
54
56
|
binary: null,
|
data/docs/DistributionsAptApi.md
CHANGED
@@ -4,17 +4,76 @@ All URIs are relative to *http://localhost:24817*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**add_role**](DistributionsAptApi.md#add_role) | **POST** {deb_apt_distribution_href}add_role/ | Add a role
|
7
8
|
[**create**](DistributionsAptApi.md#create) | **POST** /pulp/api/v3/distributions/deb/apt/ | Create an apt distribution
|
8
9
|
[**delete**](DistributionsAptApi.md#delete) | **DELETE** {deb_apt_distribution_href} | Delete an apt distribution
|
9
10
|
[**list**](DistributionsAptApi.md#list) | **GET** /pulp/api/v3/distributions/deb/apt/ | List apt distributions
|
11
|
+
[**list_roles**](DistributionsAptApi.md#list_roles) | **GET** {deb_apt_distribution_href}list_roles/ | List roles
|
12
|
+
[**my_permissions**](DistributionsAptApi.md#my_permissions) | **GET** {deb_apt_distribution_href}my_permissions/ | List user permissions
|
10
13
|
[**partial_update**](DistributionsAptApi.md#partial_update) | **PATCH** {deb_apt_distribution_href} | Update an apt distribution
|
11
14
|
[**read**](DistributionsAptApi.md#read) | **GET** {deb_apt_distribution_href} | Inspect an apt distribution
|
15
|
+
[**remove_role**](DistributionsAptApi.md#remove_role) | **POST** {deb_apt_distribution_href}remove_role/ | Remove a role
|
12
16
|
[**set_label**](DistributionsAptApi.md#set_label) | **POST** {deb_apt_distribution_href}set_label/ | Set a label
|
13
17
|
[**unset_label**](DistributionsAptApi.md#unset_label) | **POST** {deb_apt_distribution_href}unset_label/ | Unset a label
|
14
18
|
[**update**](DistributionsAptApi.md#update) | **PUT** {deb_apt_distribution_href} | Update an apt distribution
|
15
19
|
|
16
20
|
|
17
21
|
|
22
|
+
## add_role
|
23
|
+
|
24
|
+
> NestedRoleResponse add_role(deb_apt_distribution_href, nested_role)
|
25
|
+
|
26
|
+
Add a role
|
27
|
+
|
28
|
+
Add a role for this object to users/groups.
|
29
|
+
|
30
|
+
### Example
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
# load the gem
|
34
|
+
require 'pulp_deb_client'
|
35
|
+
# setup authorization
|
36
|
+
PulpDebClient.configure do |config|
|
37
|
+
# Configure HTTP basic authorization: basicAuth
|
38
|
+
config.username = 'YOUR USERNAME'
|
39
|
+
config.password = 'YOUR PASSWORD'
|
40
|
+
end
|
41
|
+
|
42
|
+
api_instance = PulpDebClient::DistributionsAptApi.new
|
43
|
+
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
44
|
+
nested_role = PulpDebClient::NestedRole.new # NestedRole |
|
45
|
+
|
46
|
+
begin
|
47
|
+
#Add a role
|
48
|
+
result = api_instance.add_role(deb_apt_distribution_href, nested_role)
|
49
|
+
p result
|
50
|
+
rescue PulpDebClient::ApiError => e
|
51
|
+
puts "Exception when calling DistributionsAptApi->add_role: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
### Parameters
|
56
|
+
|
57
|
+
|
58
|
+
Name | Type | Description | Notes
|
59
|
+
------------- | ------------- | ------------- | -------------
|
60
|
+
**deb_apt_distribution_href** | **String**| |
|
61
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[basicAuth](../README.md#basicAuth)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
74
|
+
- **Accept**: application/json
|
75
|
+
|
76
|
+
|
18
77
|
## create
|
19
78
|
|
20
79
|
> AsyncOperationResponse create(deb_apt_distribution)
|
@@ -226,6 +285,124 @@ Name | Type | Description | Notes
|
|
226
285
|
- **Accept**: application/json
|
227
286
|
|
228
287
|
|
288
|
+
## list_roles
|
289
|
+
|
290
|
+
> ObjectRolesResponse list_roles(deb_apt_distribution_href, opts)
|
291
|
+
|
292
|
+
List roles
|
293
|
+
|
294
|
+
List roles assigned to this object.
|
295
|
+
|
296
|
+
### Example
|
297
|
+
|
298
|
+
```ruby
|
299
|
+
# load the gem
|
300
|
+
require 'pulp_deb_client'
|
301
|
+
# setup authorization
|
302
|
+
PulpDebClient.configure do |config|
|
303
|
+
# Configure HTTP basic authorization: basicAuth
|
304
|
+
config.username = 'YOUR USERNAME'
|
305
|
+
config.password = 'YOUR PASSWORD'
|
306
|
+
end
|
307
|
+
|
308
|
+
api_instance = PulpDebClient::DistributionsAptApi.new
|
309
|
+
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
310
|
+
opts = {
|
311
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
312
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
313
|
+
}
|
314
|
+
|
315
|
+
begin
|
316
|
+
#List roles
|
317
|
+
result = api_instance.list_roles(deb_apt_distribution_href, opts)
|
318
|
+
p result
|
319
|
+
rescue PulpDebClient::ApiError => e
|
320
|
+
puts "Exception when calling DistributionsAptApi->list_roles: #{e}"
|
321
|
+
end
|
322
|
+
```
|
323
|
+
|
324
|
+
### Parameters
|
325
|
+
|
326
|
+
|
327
|
+
Name | Type | Description | Notes
|
328
|
+
------------- | ------------- | ------------- | -------------
|
329
|
+
**deb_apt_distribution_href** | **String**| |
|
330
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
331
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
332
|
+
|
333
|
+
### Return type
|
334
|
+
|
335
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
336
|
+
|
337
|
+
### Authorization
|
338
|
+
|
339
|
+
[basicAuth](../README.md#basicAuth)
|
340
|
+
|
341
|
+
### HTTP request headers
|
342
|
+
|
343
|
+
- **Content-Type**: Not defined
|
344
|
+
- **Accept**: application/json
|
345
|
+
|
346
|
+
|
347
|
+
## my_permissions
|
348
|
+
|
349
|
+
> MyPermissionsResponse my_permissions(deb_apt_distribution_href, opts)
|
350
|
+
|
351
|
+
List user permissions
|
352
|
+
|
353
|
+
List permissions available to the current user on this object.
|
354
|
+
|
355
|
+
### Example
|
356
|
+
|
357
|
+
```ruby
|
358
|
+
# load the gem
|
359
|
+
require 'pulp_deb_client'
|
360
|
+
# setup authorization
|
361
|
+
PulpDebClient.configure do |config|
|
362
|
+
# Configure HTTP basic authorization: basicAuth
|
363
|
+
config.username = 'YOUR USERNAME'
|
364
|
+
config.password = 'YOUR PASSWORD'
|
365
|
+
end
|
366
|
+
|
367
|
+
api_instance = PulpDebClient::DistributionsAptApi.new
|
368
|
+
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
369
|
+
opts = {
|
370
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
371
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
372
|
+
}
|
373
|
+
|
374
|
+
begin
|
375
|
+
#List user permissions
|
376
|
+
result = api_instance.my_permissions(deb_apt_distribution_href, opts)
|
377
|
+
p result
|
378
|
+
rescue PulpDebClient::ApiError => e
|
379
|
+
puts "Exception when calling DistributionsAptApi->my_permissions: #{e}"
|
380
|
+
end
|
381
|
+
```
|
382
|
+
|
383
|
+
### Parameters
|
384
|
+
|
385
|
+
|
386
|
+
Name | Type | Description | Notes
|
387
|
+
------------- | ------------- | ------------- | -------------
|
388
|
+
**deb_apt_distribution_href** | **String**| |
|
389
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
390
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
391
|
+
|
392
|
+
### Return type
|
393
|
+
|
394
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
395
|
+
|
396
|
+
### Authorization
|
397
|
+
|
398
|
+
[basicAuth](../README.md#basicAuth)
|
399
|
+
|
400
|
+
### HTTP request headers
|
401
|
+
|
402
|
+
- **Content-Type**: Not defined
|
403
|
+
- **Accept**: application/json
|
404
|
+
|
405
|
+
|
229
406
|
## partial_update
|
230
407
|
|
231
408
|
> AsyncOperationResponse partial_update(deb_apt_distribution_href, patcheddeb_apt_distribution)
|
@@ -340,6 +517,61 @@ Name | Type | Description | Notes
|
|
340
517
|
- **Accept**: application/json
|
341
518
|
|
342
519
|
|
520
|
+
## remove_role
|
521
|
+
|
522
|
+
> NestedRoleResponse remove_role(deb_apt_distribution_href, nested_role)
|
523
|
+
|
524
|
+
Remove a role
|
525
|
+
|
526
|
+
Remove a role for this object from users/groups.
|
527
|
+
|
528
|
+
### Example
|
529
|
+
|
530
|
+
```ruby
|
531
|
+
# load the gem
|
532
|
+
require 'pulp_deb_client'
|
533
|
+
# setup authorization
|
534
|
+
PulpDebClient.configure do |config|
|
535
|
+
# Configure HTTP basic authorization: basicAuth
|
536
|
+
config.username = 'YOUR USERNAME'
|
537
|
+
config.password = 'YOUR PASSWORD'
|
538
|
+
end
|
539
|
+
|
540
|
+
api_instance = PulpDebClient::DistributionsAptApi.new
|
541
|
+
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
542
|
+
nested_role = PulpDebClient::NestedRole.new # NestedRole |
|
543
|
+
|
544
|
+
begin
|
545
|
+
#Remove a role
|
546
|
+
result = api_instance.remove_role(deb_apt_distribution_href, nested_role)
|
547
|
+
p result
|
548
|
+
rescue PulpDebClient::ApiError => e
|
549
|
+
puts "Exception when calling DistributionsAptApi->remove_role: #{e}"
|
550
|
+
end
|
551
|
+
```
|
552
|
+
|
553
|
+
### Parameters
|
554
|
+
|
555
|
+
|
556
|
+
Name | Type | Description | Notes
|
557
|
+
------------- | ------------- | ------------- | -------------
|
558
|
+
**deb_apt_distribution_href** | **String**| |
|
559
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
560
|
+
|
561
|
+
### Return type
|
562
|
+
|
563
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
564
|
+
|
565
|
+
### Authorization
|
566
|
+
|
567
|
+
[basicAuth](../README.md#basicAuth)
|
568
|
+
|
569
|
+
### HTTP request headers
|
570
|
+
|
571
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
572
|
+
- **Accept**: application/json
|
573
|
+
|
574
|
+
|
343
575
|
## set_label
|
344
576
|
|
345
577
|
> SetLabelResponse set_label(deb_apt_distribution_href, set_label)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpDebClient::MyPermissionsResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**permissions** | **Array<String>** | |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpDebClient'
|
13
|
+
|
14
|
+
instance = PulpDebClient::MyPermissionsResponse.new(permissions: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/NestedRole.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# PulpDebClient::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 'PulpDebClient'
|
15
|
+
|
16
|
+
instance = PulpDebClient::NestedRole.new(users: null,
|
17
|
+
groups: null,
|
18
|
+
role: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# PulpDebClient::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 'PulpDebClient'
|
15
|
+
|
16
|
+
instance = PulpDebClient::NestedRoleResponse.new(users: null,
|
17
|
+
groups: null,
|
18
|
+
role: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpDebClient::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 'PulpDebClient'
|
13
|
+
|
14
|
+
instance = PulpDebClient::ObjectRolesResponse.new(roles: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|