pulp_gem_client 0.3.0 → 0.4.1
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 +24 -4
- data/docs/ContentGemApi.md +2 -0
- data/docs/DistributionsGemApi.md +236 -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/PublicationsGemApi.md +232 -0
- data/docs/RemotesGemApi.md +236 -0
- data/docs/RepositoriesGemApi.md +236 -0
- data/lib/pulp_gem_client/api/content_gem_api.rb +3 -0
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +282 -0
- data/lib/pulp_gem_client/api/publications_gem_api.rb +276 -0
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +282 -0
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +282 -0
- data/lib/pulp_gem_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_gem_client/models/nested_role.rb +253 -0
- data/lib/pulp_gem_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_gem_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_gem_client/version.rb +1 -1
- data/lib/pulp_gem_client.rb +4 -0
- data/spec/api/content_gem_api_spec.rb +1 -0
- data/spec/api/distributions_gem_api_spec.rb +56 -0
- data/spec/api/publications_gem_api_spec.rb +54 -0
- data/spec/api/remotes_gem_api_spec.rb +56 -0
- data/spec/api/repositories_gem_api_spec.rb +56 -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 +41 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73c993b1c0029a08b867fa97060b000454d69df8aec8d6504286b018f878fa46
|
4
|
+
data.tar.gz: 69d38a4f5650c1a9a471c7dab1c2a4e944102869a35d365624be914328fecb42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e34de3029aa3e91092c745087153363cf3a1c5d3e88a8cc5c571dad55cf43edb090502538ac37c4230e8847966fed71cd0c02158fbd7500d9898dbd2e219754
|
7
|
+
data.tar.gz: bcc1e0b7961c424a68f94ad9894e0923ad319e303f9f6346065d8d3fccfb3e82a4040de77e0594298a895fbd6c7c9b0df4da50d9bd777dbd759a078b1c632d97
|
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: 0.
|
10
|
+
- Package version: 0.4.1
|
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_gem_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_gem_client-0.
|
27
|
+
gem install ./pulp_gem_client-0.4.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_gem_client-0.
|
30
|
+
(for development, run `gem install --dev ./pulp_gem_client-0.4.1.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_gem_client', '~> 0.
|
36
|
+
gem 'pulp_gem_client', '~> 0.4.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -90,32 +90,48 @@ Class | Method | HTTP request | Description
|
|
90
90
|
*PulpGemClient::ContentGemApi* | [**create**](docs/ContentGemApi.md#create) | **POST** /pulp/api/v3/content/gem/gem/ | Create a gem content
|
91
91
|
*PulpGemClient::ContentGemApi* | [**list**](docs/ContentGemApi.md#list) | **GET** /pulp/api/v3/content/gem/gem/ | List gem contents
|
92
92
|
*PulpGemClient::ContentGemApi* | [**read**](docs/ContentGemApi.md#read) | **GET** {gem_gem_content_href} | Inspect a gem content
|
93
|
+
*PulpGemClient::DistributionsGemApi* | [**add_role**](docs/DistributionsGemApi.md#add_role) | **POST** {gem_gem_distribution_href}add_role/ | Add a role
|
93
94
|
*PulpGemClient::DistributionsGemApi* | [**create**](docs/DistributionsGemApi.md#create) | **POST** /pulp/api/v3/distributions/gem/gem/ | Create a gem distribution
|
94
95
|
*PulpGemClient::DistributionsGemApi* | [**delete**](docs/DistributionsGemApi.md#delete) | **DELETE** {gem_gem_distribution_href} | Delete a gem distribution
|
95
96
|
*PulpGemClient::DistributionsGemApi* | [**list**](docs/DistributionsGemApi.md#list) | **GET** /pulp/api/v3/distributions/gem/gem/ | List gem distributions
|
97
|
+
*PulpGemClient::DistributionsGemApi* | [**list_roles**](docs/DistributionsGemApi.md#list_roles) | **GET** {gem_gem_distribution_href}list_roles/ | List roles
|
98
|
+
*PulpGemClient::DistributionsGemApi* | [**my_permissions**](docs/DistributionsGemApi.md#my_permissions) | **GET** {gem_gem_distribution_href}my_permissions/ | List user permissions
|
96
99
|
*PulpGemClient::DistributionsGemApi* | [**partial_update**](docs/DistributionsGemApi.md#partial_update) | **PATCH** {gem_gem_distribution_href} | Update a gem distribution
|
97
100
|
*PulpGemClient::DistributionsGemApi* | [**read**](docs/DistributionsGemApi.md#read) | **GET** {gem_gem_distribution_href} | Inspect a gem distribution
|
101
|
+
*PulpGemClient::DistributionsGemApi* | [**remove_role**](docs/DistributionsGemApi.md#remove_role) | **POST** {gem_gem_distribution_href}remove_role/ | Remove a role
|
98
102
|
*PulpGemClient::DistributionsGemApi* | [**set_label**](docs/DistributionsGemApi.md#set_label) | **POST** {gem_gem_distribution_href}set_label/ | Set a label
|
99
103
|
*PulpGemClient::DistributionsGemApi* | [**unset_label**](docs/DistributionsGemApi.md#unset_label) | **POST** {gem_gem_distribution_href}unset_label/ | Unset a label
|
100
104
|
*PulpGemClient::DistributionsGemApi* | [**update**](docs/DistributionsGemApi.md#update) | **PUT** {gem_gem_distribution_href} | Update a gem distribution
|
105
|
+
*PulpGemClient::PublicationsGemApi* | [**add_role**](docs/PublicationsGemApi.md#add_role) | **POST** {gem_gem_publication_href}add_role/ | Add a role
|
101
106
|
*PulpGemClient::PublicationsGemApi* | [**create**](docs/PublicationsGemApi.md#create) | **POST** /pulp/api/v3/publications/gem/gem/ | Create a gem publication
|
102
107
|
*PulpGemClient::PublicationsGemApi* | [**delete**](docs/PublicationsGemApi.md#delete) | **DELETE** {gem_gem_publication_href} | Delete a gem publication
|
103
108
|
*PulpGemClient::PublicationsGemApi* | [**list**](docs/PublicationsGemApi.md#list) | **GET** /pulp/api/v3/publications/gem/gem/ | List gem publications
|
109
|
+
*PulpGemClient::PublicationsGemApi* | [**list_roles**](docs/PublicationsGemApi.md#list_roles) | **GET** {gem_gem_publication_href}list_roles/ | List roles
|
110
|
+
*PulpGemClient::PublicationsGemApi* | [**my_permissions**](docs/PublicationsGemApi.md#my_permissions) | **GET** {gem_gem_publication_href}my_permissions/ | List user permissions
|
104
111
|
*PulpGemClient::PublicationsGemApi* | [**read**](docs/PublicationsGemApi.md#read) | **GET** {gem_gem_publication_href} | Inspect a gem publication
|
112
|
+
*PulpGemClient::PublicationsGemApi* | [**remove_role**](docs/PublicationsGemApi.md#remove_role) | **POST** {gem_gem_publication_href}remove_role/ | Remove a role
|
113
|
+
*PulpGemClient::RemotesGemApi* | [**add_role**](docs/RemotesGemApi.md#add_role) | **POST** {gem_gem_remote_href}add_role/ | Add a role
|
105
114
|
*PulpGemClient::RemotesGemApi* | [**create**](docs/RemotesGemApi.md#create) | **POST** /pulp/api/v3/remotes/gem/gem/ | Create a gem remote
|
106
115
|
*PulpGemClient::RemotesGemApi* | [**delete**](docs/RemotesGemApi.md#delete) | **DELETE** {gem_gem_remote_href} | Delete a gem remote
|
107
116
|
*PulpGemClient::RemotesGemApi* | [**list**](docs/RemotesGemApi.md#list) | **GET** /pulp/api/v3/remotes/gem/gem/ | List gem remotes
|
117
|
+
*PulpGemClient::RemotesGemApi* | [**list_roles**](docs/RemotesGemApi.md#list_roles) | **GET** {gem_gem_remote_href}list_roles/ | List roles
|
118
|
+
*PulpGemClient::RemotesGemApi* | [**my_permissions**](docs/RemotesGemApi.md#my_permissions) | **GET** {gem_gem_remote_href}my_permissions/ | List user permissions
|
108
119
|
*PulpGemClient::RemotesGemApi* | [**partial_update**](docs/RemotesGemApi.md#partial_update) | **PATCH** {gem_gem_remote_href} | Update a gem remote
|
109
120
|
*PulpGemClient::RemotesGemApi* | [**read**](docs/RemotesGemApi.md#read) | **GET** {gem_gem_remote_href} | Inspect a gem remote
|
121
|
+
*PulpGemClient::RemotesGemApi* | [**remove_role**](docs/RemotesGemApi.md#remove_role) | **POST** {gem_gem_remote_href}remove_role/ | Remove a role
|
110
122
|
*PulpGemClient::RemotesGemApi* | [**set_label**](docs/RemotesGemApi.md#set_label) | **POST** {gem_gem_remote_href}set_label/ | Set a label
|
111
123
|
*PulpGemClient::RemotesGemApi* | [**unset_label**](docs/RemotesGemApi.md#unset_label) | **POST** {gem_gem_remote_href}unset_label/ | Unset a label
|
112
124
|
*PulpGemClient::RemotesGemApi* | [**update**](docs/RemotesGemApi.md#update) | **PUT** {gem_gem_remote_href} | Update a gem remote
|
125
|
+
*PulpGemClient::RepositoriesGemApi* | [**add_role**](docs/RepositoriesGemApi.md#add_role) | **POST** {gem_gem_repository_href}add_role/ | Add a role
|
113
126
|
*PulpGemClient::RepositoriesGemApi* | [**create**](docs/RepositoriesGemApi.md#create) | **POST** /pulp/api/v3/repositories/gem/gem/ | Create a gem repository
|
114
127
|
*PulpGemClient::RepositoriesGemApi* | [**delete**](docs/RepositoriesGemApi.md#delete) | **DELETE** {gem_gem_repository_href} | Delete a gem repository
|
115
128
|
*PulpGemClient::RepositoriesGemApi* | [**list**](docs/RepositoriesGemApi.md#list) | **GET** /pulp/api/v3/repositories/gem/gem/ | List gem repositorys
|
129
|
+
*PulpGemClient::RepositoriesGemApi* | [**list_roles**](docs/RepositoriesGemApi.md#list_roles) | **GET** {gem_gem_repository_href}list_roles/ | List roles
|
116
130
|
*PulpGemClient::RepositoriesGemApi* | [**modify**](docs/RepositoriesGemApi.md#modify) | **POST** {gem_gem_repository_href}modify/ | Modify Repository Content
|
131
|
+
*PulpGemClient::RepositoriesGemApi* | [**my_permissions**](docs/RepositoriesGemApi.md#my_permissions) | **GET** {gem_gem_repository_href}my_permissions/ | List user permissions
|
117
132
|
*PulpGemClient::RepositoriesGemApi* | [**partial_update**](docs/RepositoriesGemApi.md#partial_update) | **PATCH** {gem_gem_repository_href} | Update a gem repository
|
118
133
|
*PulpGemClient::RepositoriesGemApi* | [**read**](docs/RepositoriesGemApi.md#read) | **GET** {gem_gem_repository_href} | Inspect a gem repository
|
134
|
+
*PulpGemClient::RepositoriesGemApi* | [**remove_role**](docs/RepositoriesGemApi.md#remove_role) | **POST** {gem_gem_repository_href}remove_role/ | Remove a role
|
119
135
|
*PulpGemClient::RepositoriesGemApi* | [**set_label**](docs/RepositoriesGemApi.md#set_label) | **POST** {gem_gem_repository_href}set_label/ | Set a label
|
120
136
|
*PulpGemClient::RepositoriesGemApi* | [**sync**](docs/RepositoriesGemApi.md#sync) | **POST** {gem_gem_repository_href}sync/ | Sync from a remote
|
121
137
|
*PulpGemClient::RepositoriesGemApi* | [**unset_label**](docs/RepositoriesGemApi.md#unset_label) | **POST** {gem_gem_repository_href}unset_label/ | Unset a label
|
@@ -141,6 +157,10 @@ Class | Method | HTTP request | Description
|
|
141
157
|
- [PulpGemClient::GemGemRemoteResponseHiddenFields](docs/GemGemRemoteResponseHiddenFields.md)
|
142
158
|
- [PulpGemClient::GemGemRepository](docs/GemGemRepository.md)
|
143
159
|
- [PulpGemClient::GemGemRepositoryResponse](docs/GemGemRepositoryResponse.md)
|
160
|
+
- [PulpGemClient::MyPermissionsResponse](docs/MyPermissionsResponse.md)
|
161
|
+
- [PulpGemClient::NestedRole](docs/NestedRole.md)
|
162
|
+
- [PulpGemClient::NestedRoleResponse](docs/NestedRoleResponse.md)
|
163
|
+
- [PulpGemClient::ObjectRolesResponse](docs/ObjectRolesResponse.md)
|
144
164
|
- [PulpGemClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
|
145
165
|
- [PulpGemClient::PaginatedgemGemContentResponseList](docs/PaginatedgemGemContentResponseList.md)
|
146
166
|
- [PulpGemClient::PaginatedgemGemDistributionResponseList](docs/PaginatedgemGemDistributionResponseList.md)
|
data/docs/ContentGemApi.md
CHANGED
@@ -96,6 +96,7 @@ opts = {
|
|
96
96
|
name: 'name_example', # String | Filter results where name matches value
|
97
97
|
offset: 56, # Integer | The initial index from which to return the results.
|
98
98
|
ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `platform` - Platform * `-platform` - Platform (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `prerelease` - Prerelease * `-prerelease` - Prerelease (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `required_ruby_version` - Required ruby version * `-required_ruby_version` - Required ruby version (descending) * `required_rubygems_version` - Required rubygems version * `-required_rubygems_version` - Required rubygems version (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
99
|
+
orphaned_for: 3.4, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
99
100
|
prerelease: true, # Boolean | Filter results where prerelease matches value
|
100
101
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
101
102
|
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
@@ -127,6 +128,7 @@ Name | Type | Description | Notes
|
|
127
128
|
**name** | **String**| Filter results where name matches value | [optional]
|
128
129
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
129
130
|
**ordering** | [**Array<String>**](String.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `platform` - Platform * `-platform` - Platform (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `prerelease` - Prerelease * `-prerelease` - Prerelease (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `required_ruby_version` - Required ruby version * `-required_ruby_version` - Required ruby version (descending) * `required_rubygems_version` - Required rubygems version * `-required_rubygems_version` - Required rubygems version (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
131
|
+
**orphaned_for** | **Float**| Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional]
|
130
132
|
**prerelease** | **Boolean**| Filter results where prerelease matches value | [optional]
|
131
133
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
132
134
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
data/docs/DistributionsGemApi.md
CHANGED
@@ -4,17 +4,76 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**add_role**](DistributionsGemApi.md#add_role) | **POST** {gem_gem_distribution_href}add_role/ | Add a role
|
7
8
|
[**create**](DistributionsGemApi.md#create) | **POST** /pulp/api/v3/distributions/gem/gem/ | Create a gem distribution
|
8
9
|
[**delete**](DistributionsGemApi.md#delete) | **DELETE** {gem_gem_distribution_href} | Delete a gem distribution
|
9
10
|
[**list**](DistributionsGemApi.md#list) | **GET** /pulp/api/v3/distributions/gem/gem/ | List gem distributions
|
11
|
+
[**list_roles**](DistributionsGemApi.md#list_roles) | **GET** {gem_gem_distribution_href}list_roles/ | List roles
|
12
|
+
[**my_permissions**](DistributionsGemApi.md#my_permissions) | **GET** {gem_gem_distribution_href}my_permissions/ | List user permissions
|
10
13
|
[**partial_update**](DistributionsGemApi.md#partial_update) | **PATCH** {gem_gem_distribution_href} | Update a gem distribution
|
11
14
|
[**read**](DistributionsGemApi.md#read) | **GET** {gem_gem_distribution_href} | Inspect a gem distribution
|
15
|
+
[**remove_role**](DistributionsGemApi.md#remove_role) | **POST** {gem_gem_distribution_href}remove_role/ | Remove a role
|
12
16
|
[**set_label**](DistributionsGemApi.md#set_label) | **POST** {gem_gem_distribution_href}set_label/ | Set a label
|
13
17
|
[**unset_label**](DistributionsGemApi.md#unset_label) | **POST** {gem_gem_distribution_href}unset_label/ | Unset a label
|
14
18
|
[**update**](DistributionsGemApi.md#update) | **PUT** {gem_gem_distribution_href} | Update a gem distribution
|
15
19
|
|
16
20
|
|
17
21
|
|
22
|
+
## add_role
|
23
|
+
|
24
|
+
> NestedRoleResponse add_role(gem_gem_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_gem_client'
|
35
|
+
# setup authorization
|
36
|
+
PulpGemClient.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 = PulpGemClient::DistributionsGemApi.new
|
43
|
+
gem_gem_distribution_href = 'gem_gem_distribution_href_example' # String |
|
44
|
+
nested_role = PulpGemClient::NestedRole.new # NestedRole |
|
45
|
+
|
46
|
+
begin
|
47
|
+
#Add a role
|
48
|
+
result = api_instance.add_role(gem_gem_distribution_href, nested_role)
|
49
|
+
p result
|
50
|
+
rescue PulpGemClient::ApiError => e
|
51
|
+
puts "Exception when calling DistributionsGemApi->add_role: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
### Parameters
|
56
|
+
|
57
|
+
|
58
|
+
Name | Type | Description | Notes
|
59
|
+
------------- | ------------- | ------------- | -------------
|
60
|
+
**gem_gem_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(gem_gem_distribution)
|
@@ -153,7 +212,9 @@ opts = {
|
|
153
212
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
154
213
|
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
155
214
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
215
|
+
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
156
216
|
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
217
|
+
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
157
218
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
158
219
|
offset: 56, # Integer | The initial index from which to return the results.
|
159
220
|
ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -192,7 +253,9 @@ Name | Type | Description | Notes
|
|
192
253
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
193
254
|
**name__iexact** | **String**| Filter results where name matches value | [optional]
|
194
255
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
256
|
+
**name__iregex** | **String**| Filter results where name matches regex value | [optional]
|
195
257
|
**name__istartswith** | **String**| Filter results where name starts with value | [optional]
|
258
|
+
**name__regex** | **String**| Filter results where name matches regex value | [optional]
|
196
259
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
197
260
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
198
261
|
**ordering** | [**Array<String>**](String.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
@@ -220,6 +283,124 @@ Name | Type | Description | Notes
|
|
220
283
|
- **Accept**: application/json
|
221
284
|
|
222
285
|
|
286
|
+
## list_roles
|
287
|
+
|
288
|
+
> ObjectRolesResponse list_roles(gem_gem_distribution_href, opts)
|
289
|
+
|
290
|
+
List roles
|
291
|
+
|
292
|
+
List roles assigned to this object.
|
293
|
+
|
294
|
+
### Example
|
295
|
+
|
296
|
+
```ruby
|
297
|
+
# load the gem
|
298
|
+
require 'pulp_gem_client'
|
299
|
+
# setup authorization
|
300
|
+
PulpGemClient.configure do |config|
|
301
|
+
# Configure HTTP basic authorization: basicAuth
|
302
|
+
config.username = 'YOUR USERNAME'
|
303
|
+
config.password = 'YOUR PASSWORD'
|
304
|
+
end
|
305
|
+
|
306
|
+
api_instance = PulpGemClient::DistributionsGemApi.new
|
307
|
+
gem_gem_distribution_href = 'gem_gem_distribution_href_example' # String |
|
308
|
+
opts = {
|
309
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
310
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
311
|
+
}
|
312
|
+
|
313
|
+
begin
|
314
|
+
#List roles
|
315
|
+
result = api_instance.list_roles(gem_gem_distribution_href, opts)
|
316
|
+
p result
|
317
|
+
rescue PulpGemClient::ApiError => e
|
318
|
+
puts "Exception when calling DistributionsGemApi->list_roles: #{e}"
|
319
|
+
end
|
320
|
+
```
|
321
|
+
|
322
|
+
### Parameters
|
323
|
+
|
324
|
+
|
325
|
+
Name | Type | Description | Notes
|
326
|
+
------------- | ------------- | ------------- | -------------
|
327
|
+
**gem_gem_distribution_href** | **String**| |
|
328
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
329
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
330
|
+
|
331
|
+
### Return type
|
332
|
+
|
333
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
334
|
+
|
335
|
+
### Authorization
|
336
|
+
|
337
|
+
[basicAuth](../README.md#basicAuth)
|
338
|
+
|
339
|
+
### HTTP request headers
|
340
|
+
|
341
|
+
- **Content-Type**: Not defined
|
342
|
+
- **Accept**: application/json
|
343
|
+
|
344
|
+
|
345
|
+
## my_permissions
|
346
|
+
|
347
|
+
> MyPermissionsResponse my_permissions(gem_gem_distribution_href, opts)
|
348
|
+
|
349
|
+
List user permissions
|
350
|
+
|
351
|
+
List permissions available to the current user on this object.
|
352
|
+
|
353
|
+
### Example
|
354
|
+
|
355
|
+
```ruby
|
356
|
+
# load the gem
|
357
|
+
require 'pulp_gem_client'
|
358
|
+
# setup authorization
|
359
|
+
PulpGemClient.configure do |config|
|
360
|
+
# Configure HTTP basic authorization: basicAuth
|
361
|
+
config.username = 'YOUR USERNAME'
|
362
|
+
config.password = 'YOUR PASSWORD'
|
363
|
+
end
|
364
|
+
|
365
|
+
api_instance = PulpGemClient::DistributionsGemApi.new
|
366
|
+
gem_gem_distribution_href = 'gem_gem_distribution_href_example' # String |
|
367
|
+
opts = {
|
368
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
369
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
370
|
+
}
|
371
|
+
|
372
|
+
begin
|
373
|
+
#List user permissions
|
374
|
+
result = api_instance.my_permissions(gem_gem_distribution_href, opts)
|
375
|
+
p result
|
376
|
+
rescue PulpGemClient::ApiError => e
|
377
|
+
puts "Exception when calling DistributionsGemApi->my_permissions: #{e}"
|
378
|
+
end
|
379
|
+
```
|
380
|
+
|
381
|
+
### Parameters
|
382
|
+
|
383
|
+
|
384
|
+
Name | Type | Description | Notes
|
385
|
+
------------- | ------------- | ------------- | -------------
|
386
|
+
**gem_gem_distribution_href** | **String**| |
|
387
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
388
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
389
|
+
|
390
|
+
### Return type
|
391
|
+
|
392
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
393
|
+
|
394
|
+
### Authorization
|
395
|
+
|
396
|
+
[basicAuth](../README.md#basicAuth)
|
397
|
+
|
398
|
+
### HTTP request headers
|
399
|
+
|
400
|
+
- **Content-Type**: Not defined
|
401
|
+
- **Accept**: application/json
|
402
|
+
|
403
|
+
|
223
404
|
## partial_update
|
224
405
|
|
225
406
|
> AsyncOperationResponse partial_update(gem_gem_distribution_href, patchedgem_gem_distribution)
|
@@ -334,6 +515,61 @@ Name | Type | Description | Notes
|
|
334
515
|
- **Accept**: application/json
|
335
516
|
|
336
517
|
|
518
|
+
## remove_role
|
519
|
+
|
520
|
+
> NestedRoleResponse remove_role(gem_gem_distribution_href, nested_role)
|
521
|
+
|
522
|
+
Remove a role
|
523
|
+
|
524
|
+
Remove a role for this object from users/groups.
|
525
|
+
|
526
|
+
### Example
|
527
|
+
|
528
|
+
```ruby
|
529
|
+
# load the gem
|
530
|
+
require 'pulp_gem_client'
|
531
|
+
# setup authorization
|
532
|
+
PulpGemClient.configure do |config|
|
533
|
+
# Configure HTTP basic authorization: basicAuth
|
534
|
+
config.username = 'YOUR USERNAME'
|
535
|
+
config.password = 'YOUR PASSWORD'
|
536
|
+
end
|
537
|
+
|
538
|
+
api_instance = PulpGemClient::DistributionsGemApi.new
|
539
|
+
gem_gem_distribution_href = 'gem_gem_distribution_href_example' # String |
|
540
|
+
nested_role = PulpGemClient::NestedRole.new # NestedRole |
|
541
|
+
|
542
|
+
begin
|
543
|
+
#Remove a role
|
544
|
+
result = api_instance.remove_role(gem_gem_distribution_href, nested_role)
|
545
|
+
p result
|
546
|
+
rescue PulpGemClient::ApiError => e
|
547
|
+
puts "Exception when calling DistributionsGemApi->remove_role: #{e}"
|
548
|
+
end
|
549
|
+
```
|
550
|
+
|
551
|
+
### Parameters
|
552
|
+
|
553
|
+
|
554
|
+
Name | Type | Description | Notes
|
555
|
+
------------- | ------------- | ------------- | -------------
|
556
|
+
**gem_gem_distribution_href** | **String**| |
|
557
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
558
|
+
|
559
|
+
### Return type
|
560
|
+
|
561
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
562
|
+
|
563
|
+
### Authorization
|
564
|
+
|
565
|
+
[basicAuth](../README.md#basicAuth)
|
566
|
+
|
567
|
+
### HTTP request headers
|
568
|
+
|
569
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
570
|
+
- **Accept**: application/json
|
571
|
+
|
572
|
+
|
337
573
|
## set_label
|
338
574
|
|
339
575
|
> SetLabelResponse set_label(gem_gem_distribution_href, set_label)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpGemClient::MyPermissionsResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**permissions** | **Array<String>** | |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpGemClient'
|
13
|
+
|
14
|
+
instance = PulpGemClient::MyPermissionsResponse.new(permissions: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/NestedRole.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# PulpGemClient::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 'PulpGemClient'
|
15
|
+
|
16
|
+
instance = PulpGemClient::NestedRole.new(users: null,
|
17
|
+
groups: null,
|
18
|
+
role: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# PulpGemClient::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 'PulpGemClient'
|
15
|
+
|
16
|
+
instance = PulpGemClient::NestedRoleResponse.new(users: null,
|
17
|
+
groups: null,
|
18
|
+
role: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpGemClient::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 'PulpGemClient'
|
13
|
+
|
14
|
+
instance = PulpGemClient::ObjectRolesResponse.new(roles: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|