pulp_gem_client 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -5
  3. data/docs/ContentGemApi.md +3 -1
  4. data/docs/DistributionsGemApi.md +355 -1
  5. data/docs/MyPermissionsResponse.md +17 -0
  6. data/docs/NestedRole.md +21 -0
  7. data/docs/NestedRoleResponse.md +21 -0
  8. data/docs/ObjectRolesResponse.md +17 -0
  9. data/docs/PublicationsGemApi.md +235 -1
  10. data/docs/RemotesGemApi.md +355 -1
  11. data/docs/RepositoriesGemApi.md +355 -1
  12. data/docs/RepositoriesGemVersionsApi.md +3 -1
  13. data/docs/SetLabel.md +19 -0
  14. data/docs/SetLabelResponse.md +19 -0
  15. data/docs/UnsetLabel.md +17 -0
  16. data/docs/UnsetLabelResponse.md +19 -0
  17. data/lib/pulp_gem_client/api/content_gem_api.rb +3 -0
  18. data/lib/pulp_gem_client/api/distributions_gem_api.rb +431 -0
  19. data/lib/pulp_gem_client/api/publications_gem_api.rb +279 -0
  20. data/lib/pulp_gem_client/api/remotes_gem_api.rb +431 -0
  21. data/lib/pulp_gem_client/api/repositories_gem_api.rb +431 -0
  22. data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +3 -0
  23. data/lib/pulp_gem_client/configuration.rb +2 -2
  24. data/lib/pulp_gem_client/models/my_permissions_response.rb +213 -0
  25. data/lib/pulp_gem_client/models/nested_role.rb +253 -0
  26. data/lib/pulp_gem_client/models/nested_role_response.rb +234 -0
  27. data/lib/pulp_gem_client/models/object_roles_response.rb +213 -0
  28. data/lib/pulp_gem_client/models/set_label.rb +252 -0
  29. data/lib/pulp_gem_client/models/set_label_response.rb +243 -0
  30. data/lib/pulp_gem_client/models/unset_label.rb +242 -0
  31. data/lib/pulp_gem_client/models/unset_label_response.rb +242 -0
  32. data/lib/pulp_gem_client/version.rb +1 -1
  33. data/lib/pulp_gem_client.rb +8 -0
  34. data/spec/api/content_gem_api_spec.rb +1 -0
  35. data/spec/api/distributions_gem_api_spec.rb +85 -0
  36. data/spec/api/publications_gem_api_spec.rb +55 -0
  37. data/spec/api/remotes_gem_api_spec.rb +85 -0
  38. data/spec/api/repositories_gem_api_spec.rb +85 -0
  39. data/spec/api/repositories_gem_versions_api_spec.rb +1 -0
  40. data/spec/configuration_spec.rb +3 -3
  41. data/spec/models/my_permissions_response_spec.rb +41 -0
  42. data/spec/models/nested_role_response_spec.rb +53 -0
  43. data/spec/models/nested_role_spec.rb +53 -0
  44. data/spec/models/object_roles_response_spec.rb +41 -0
  45. data/spec/models/set_label_response_spec.rb +47 -0
  46. data/spec/models/set_label_spec.rb +47 -0
  47. data/spec/models/unset_label_response_spec.rb +47 -0
  48. data/spec/models/unset_label_spec.rb +41 -0
  49. metadata +57 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b42cd5685cefbfb95d5d792a56830ce9ef304c7fa0b4cd93d45fc0909dd13aa
4
- data.tar.gz: 506b8805b342ce8b8daf63ab603e7315a8593a013ce10b01126642fbf096c4cf
3
+ metadata.gz: 845f25834ee8b1cd98fb60410377ba4be556aab50e3050f1f1872352efe56fa3
4
+ data.tar.gz: ae14bd9210bb15a4efd0deae2cb175723c132f2a7a4d932afed2e0989b865cb5
5
5
  SHA512:
6
- metadata.gz: 7813a17993d2c158ec92d20a51a205891012705a2f189f142cf6ac6033a62bef31a38edd6883e005b82567f2747ffb30fedaa15d26fb98dbd4932f4557854442
7
- data.tar.gz: a58db3ffc333561ba72e38d2fd4d67e3fa166c0ebb62549a7968e4cf37f82909bd07321f73084f53c0237d672f70955b59ba565c3e9d2e27742e9e4e41f017a9
6
+ metadata.gz: 4877d88f25dc70f92da3fc9a734cf1018b8e83fe78ecfc84225122f0deaa26565dcc65b1a98d22a20f758a567832d41ea6f830a0b79fe615eba350583c6f5d02
7
+ data.tar.gz: 65f4ec12b7cb87a97fc72fadf97eb340c930ed911fd020b45c7cb9d9ab9548e1efd05f8da60e8f1da7a84b1c54ca9bf06a404b5dd137a6c72d0ebd08d9273f90
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.2.0
10
+ - Package version: 0.4.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_gem_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_gem_client-0.2.0.gem
27
+ gem install ./pulp_gem_client-0.4.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_gem_client-0.2.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_gem_client-0.4.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_gem_client', '~> 0.2.0'
36
+ gem 'pulp_gem_client', '~> 0.4.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -83,36 +83,58 @@ end
83
83
 
84
84
  ## Documentation for API Endpoints
85
85
 
86
- All URIs are relative to *https://pulp*
86
+ All URIs are relative to *http://pulp*
87
87
 
88
88
  Class | Method | HTTP request | Description
89
89
  ------------ | ------------- | ------------- | -------------
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
102
+ *PulpGemClient::DistributionsGemApi* | [**set_label**](docs/DistributionsGemApi.md#set_label) | **POST** {gem_gem_distribution_href}set_label/ | Set a label
103
+ *PulpGemClient::DistributionsGemApi* | [**unset_label**](docs/DistributionsGemApi.md#unset_label) | **POST** {gem_gem_distribution_href}unset_label/ | Unset a label
98
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
99
106
  *PulpGemClient::PublicationsGemApi* | [**create**](docs/PublicationsGemApi.md#create) | **POST** /pulp/api/v3/publications/gem/gem/ | Create a gem publication
100
107
  *PulpGemClient::PublicationsGemApi* | [**delete**](docs/PublicationsGemApi.md#delete) | **DELETE** {gem_gem_publication_href} | Delete a gem publication
101
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
102
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
103
114
  *PulpGemClient::RemotesGemApi* | [**create**](docs/RemotesGemApi.md#create) | **POST** /pulp/api/v3/remotes/gem/gem/ | Create a gem remote
104
115
  *PulpGemClient::RemotesGemApi* | [**delete**](docs/RemotesGemApi.md#delete) | **DELETE** {gem_gem_remote_href} | Delete a gem remote
105
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
106
119
  *PulpGemClient::RemotesGemApi* | [**partial_update**](docs/RemotesGemApi.md#partial_update) | **PATCH** {gem_gem_remote_href} | Update a gem remote
107
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
122
+ *PulpGemClient::RemotesGemApi* | [**set_label**](docs/RemotesGemApi.md#set_label) | **POST** {gem_gem_remote_href}set_label/ | Set a label
123
+ *PulpGemClient::RemotesGemApi* | [**unset_label**](docs/RemotesGemApi.md#unset_label) | **POST** {gem_gem_remote_href}unset_label/ | Unset a label
108
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
109
126
  *PulpGemClient::RepositoriesGemApi* | [**create**](docs/RepositoriesGemApi.md#create) | **POST** /pulp/api/v3/repositories/gem/gem/ | Create a gem repository
110
127
  *PulpGemClient::RepositoriesGemApi* | [**delete**](docs/RepositoriesGemApi.md#delete) | **DELETE** {gem_gem_repository_href} | Delete a gem repository
111
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
112
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
113
132
  *PulpGemClient::RepositoriesGemApi* | [**partial_update**](docs/RepositoriesGemApi.md#partial_update) | **PATCH** {gem_gem_repository_href} | Update a gem repository
114
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
135
+ *PulpGemClient::RepositoriesGemApi* | [**set_label**](docs/RepositoriesGemApi.md#set_label) | **POST** {gem_gem_repository_href}set_label/ | Set a label
115
136
  *PulpGemClient::RepositoriesGemApi* | [**sync**](docs/RepositoriesGemApi.md#sync) | **POST** {gem_gem_repository_href}sync/ | Sync from a remote
137
+ *PulpGemClient::RepositoriesGemApi* | [**unset_label**](docs/RepositoriesGemApi.md#unset_label) | **POST** {gem_gem_repository_href}unset_label/ | Unset a label
116
138
  *PulpGemClient::RepositoriesGemApi* | [**update**](docs/RepositoriesGemApi.md#update) | **PUT** {gem_gem_repository_href} | Update a gem repository
117
139
  *PulpGemClient::RepositoriesGemVersionsApi* | [**delete**](docs/RepositoriesGemVersionsApi.md#delete) | **DELETE** {gem_gem_repository_version_href} | Delete a repository version
118
140
  *PulpGemClient::RepositoriesGemVersionsApi* | [**list**](docs/RepositoriesGemVersionsApi.md#list) | **GET** {gem_gem_repository_href}versions/ | List repository versions
@@ -135,6 +157,10 @@ Class | Method | HTTP request | Description
135
157
  - [PulpGemClient::GemGemRemoteResponseHiddenFields](docs/GemGemRemoteResponseHiddenFields.md)
136
158
  - [PulpGemClient::GemGemRepository](docs/GemGemRepository.md)
137
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)
138
164
  - [PulpGemClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
139
165
  - [PulpGemClient::PaginatedgemGemContentResponseList](docs/PaginatedgemGemContentResponseList.md)
140
166
  - [PulpGemClient::PaginatedgemGemDistributionResponseList](docs/PaginatedgemGemDistributionResponseList.md)
@@ -149,6 +175,10 @@ Class | Method | HTTP request | Description
149
175
  - [PulpGemClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
150
176
  - [PulpGemClient::RepositorySyncURL](docs/RepositorySyncURL.md)
151
177
  - [PulpGemClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
178
+ - [PulpGemClient::SetLabel](docs/SetLabel.md)
179
+ - [PulpGemClient::SetLabelResponse](docs/SetLabelResponse.md)
180
+ - [PulpGemClient::UnsetLabel](docs/UnsetLabel.md)
181
+ - [PulpGemClient::UnsetLabelResponse](docs/UnsetLabelResponse.md)
152
182
 
153
183
 
154
184
  ## Documentation for Authorization
@@ -1,6 +1,6 @@
1
1
  # PulpGemClient::ContentGemApi
2
2
 
3
- All URIs are relative to *https://pulp*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -99,6 +99,7 @@ opts = {
99
99
  prerelease: true, # Boolean | Filter results where prerelease matches value
100
100
  pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
101
101
  pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
102
+ q: 'q_example', # String |
102
103
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
103
104
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
104
105
  repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
@@ -129,6 +130,7 @@ Name | Type | Description | Notes
129
130
  **prerelease** | **Boolean**| Filter results where prerelease matches value | [optional]
130
131
  **pulp_href__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
131
132
  **pulp_id__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
133
+ **q** | **String**| | [optional]
132
134
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
133
135
  **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
134
136
  **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
@@ -1,18 +1,79 @@
1
1
  # PulpGemClient::DistributionsGemApi
2
2
 
3
- All URIs are relative to *https://pulp*
3
+ 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
16
+ [**set_label**](DistributionsGemApi.md#set_label) | **POST** {gem_gem_distribution_href}set_label/ | Set a label
17
+ [**unset_label**](DistributionsGemApi.md#unset_label) | **POST** {gem_gem_distribution_href}unset_label/ | Unset a label
12
18
  [**update**](DistributionsGemApi.md#update) | **PUT** {gem_gem_distribution_href} | Update a gem distribution
13
19
 
14
20
 
15
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
+
16
77
  ## create
17
78
 
18
79
  > AsyncOperationResponse create(gem_gem_distribution)
@@ -149,13 +210,18 @@ opts = {
149
210
  name: 'name_example', # String | Filter results where name matches value
150
211
  name__contains: 'name__contains_example', # String | Filter results where name contains value
151
212
  name__icontains: 'name__icontains_example', # String | Filter results where name contains value
213
+ name__iexact: 'name__iexact_example', # String | Filter results where name matches value
152
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
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
153
218
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
154
219
  offset: 56, # Integer | The initial index from which to return the results.
155
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)
156
221
  pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
157
222
  pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
158
223
  pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
224
+ q: 'q_example', # String |
159
225
  repository: 'repository_example', # String | Filter results where repository matches value
160
226
  repository__in: ['repository__in_example'], # Array<String> | Filter results where repository is in a comma-separated list of values
161
227
  with_content: 'with_content_example', # String | Filter distributions based on the content served by them
@@ -185,13 +251,18 @@ Name | Type | Description | Notes
185
251
  **name** | **String**| Filter results where name matches value | [optional]
186
252
  **name__contains** | **String**| Filter results where name contains value | [optional]
187
253
  **name__icontains** | **String**| Filter results where name contains value | [optional]
254
+ **name__iexact** | **String**| Filter results where name matches value | [optional]
188
255
  **name__in** | [**Array&lt;String&gt;**](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]
257
+ **name__istartswith** | **String**| Filter results where name starts with value | [optional]
258
+ **name__regex** | **String**| Filter results where name matches regex value | [optional]
189
259
  **name__startswith** | **String**| Filter results where name starts with value | [optional]
190
260
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
191
261
  **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional]
192
262
  **pulp_href__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
193
263
  **pulp_id__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
194
264
  **pulp_label_select** | **String**| Filter labels by search string | [optional]
265
+ **q** | **String**| | [optional]
195
266
  **repository** | [**String**](.md)| Filter results where repository matches value | [optional]
196
267
  **repository__in** | [**Array&lt;String&gt;**](String.md)| Filter results where repository is in a comma-separated list of values | [optional]
197
268
  **with_content** | **String**| Filter distributions based on the content served by them | [optional]
@@ -212,6 +283,124 @@ Name | Type | Description | Notes
212
283
  - **Accept**: application/json
213
284
 
214
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&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
329
+ **exclude_fields** | [**Array&lt;String&gt;**](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&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
388
+ **exclude_fields** | [**Array&lt;String&gt;**](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
+
215
404
  ## partial_update
216
405
 
217
406
  > AsyncOperationResponse partial_update(gem_gem_distribution_href, patchedgem_gem_distribution)
@@ -326,6 +515,171 @@ Name | Type | Description | Notes
326
515
  - **Accept**: application/json
327
516
 
328
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
+
573
+ ## set_label
574
+
575
+ > SetLabelResponse set_label(gem_gem_distribution_href, set_label)
576
+
577
+ Set a label
578
+
579
+ Set a single pulp_label on the object to a specific value or null.
580
+
581
+ ### Example
582
+
583
+ ```ruby
584
+ # load the gem
585
+ require 'pulp_gem_client'
586
+ # setup authorization
587
+ PulpGemClient.configure do |config|
588
+ # Configure HTTP basic authorization: basicAuth
589
+ config.username = 'YOUR USERNAME'
590
+ config.password = 'YOUR PASSWORD'
591
+ end
592
+
593
+ api_instance = PulpGemClient::DistributionsGemApi.new
594
+ gem_gem_distribution_href = 'gem_gem_distribution_href_example' # String |
595
+ set_label = PulpGemClient::SetLabel.new # SetLabel |
596
+
597
+ begin
598
+ #Set a label
599
+ result = api_instance.set_label(gem_gem_distribution_href, set_label)
600
+ p result
601
+ rescue PulpGemClient::ApiError => e
602
+ puts "Exception when calling DistributionsGemApi->set_label: #{e}"
603
+ end
604
+ ```
605
+
606
+ ### Parameters
607
+
608
+
609
+ Name | Type | Description | Notes
610
+ ------------- | ------------- | ------------- | -------------
611
+ **gem_gem_distribution_href** | **String**| |
612
+ **set_label** | [**SetLabel**](SetLabel.md)| |
613
+
614
+ ### Return type
615
+
616
+ [**SetLabelResponse**](SetLabelResponse.md)
617
+
618
+ ### Authorization
619
+
620
+ [basicAuth](../README.md#basicAuth)
621
+
622
+ ### HTTP request headers
623
+
624
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
625
+ - **Accept**: application/json
626
+
627
+
628
+ ## unset_label
629
+
630
+ > UnsetLabelResponse unset_label(gem_gem_distribution_href, unset_label)
631
+
632
+ Unset a label
633
+
634
+ Unset a single pulp_label on the object.
635
+
636
+ ### Example
637
+
638
+ ```ruby
639
+ # load the gem
640
+ require 'pulp_gem_client'
641
+ # setup authorization
642
+ PulpGemClient.configure do |config|
643
+ # Configure HTTP basic authorization: basicAuth
644
+ config.username = 'YOUR USERNAME'
645
+ config.password = 'YOUR PASSWORD'
646
+ end
647
+
648
+ api_instance = PulpGemClient::DistributionsGemApi.new
649
+ gem_gem_distribution_href = 'gem_gem_distribution_href_example' # String |
650
+ unset_label = PulpGemClient::UnsetLabel.new # UnsetLabel |
651
+
652
+ begin
653
+ #Unset a label
654
+ result = api_instance.unset_label(gem_gem_distribution_href, unset_label)
655
+ p result
656
+ rescue PulpGemClient::ApiError => e
657
+ puts "Exception when calling DistributionsGemApi->unset_label: #{e}"
658
+ end
659
+ ```
660
+
661
+ ### Parameters
662
+
663
+
664
+ Name | Type | Description | Notes
665
+ ------------- | ------------- | ------------- | -------------
666
+ **gem_gem_distribution_href** | **String**| |
667
+ **unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
668
+
669
+ ### Return type
670
+
671
+ [**UnsetLabelResponse**](UnsetLabelResponse.md)
672
+
673
+ ### Authorization
674
+
675
+ [basicAuth](../README.md#basicAuth)
676
+
677
+ ### HTTP request headers
678
+
679
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
680
+ - **Accept**: application/json
681
+
682
+
329
683
  ## update
330
684
 
331
685
  > AsyncOperationResponse update(gem_gem_distribution_href, gem_gem_distribution)
@@ -0,0 +1,17 @@
1
+ # PulpGemClient::MyPermissionsResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **permissions** | **Array&lt;String&gt;** | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpGemClient'
13
+
14
+ instance = PulpGemClient::MyPermissionsResponse.new(permissions: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,21 @@
1
+ # PulpGemClient::NestedRole
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **users** | **Array&lt;String&gt;** | | [optional]
8
+ **groups** | **Array&lt;String&gt;** | | [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&lt;String&gt;** | | [optional]
8
+ **groups** | **Array&lt;String&gt;** | | [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&lt;NestedRoleResponse&gt;**](NestedRoleResponse.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpGemClient'
13
+
14
+ instance = PulpGemClient::ObjectRolesResponse.new(roles: null)
15
+ ```
16
+
17
+