pulp_gem_client 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -8
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGemApi.md +268 -66
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsGemApi.md +388 -183
- data/docs/GemGemContentResponse.md +34 -29
- data/docs/GemGemDistribution.md +22 -21
- data/docs/GemGemDistributionResponse.md +34 -29
- data/docs/GemGemPublication.md +10 -9
- data/docs/GemGemPublicationResponse.md +18 -15
- data/docs/GemGemRemote.md +54 -53
- data/docs/GemGemRemoteResponse.md +54 -51
- data/docs/GemGemRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/GemGemRepository.md +16 -15
- data/docs/GemGemRepositoryResponse.md +28 -25
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedgemGemContentResponseList.md +14 -13
- data/docs/PaginatedgemGemDistributionResponseList.md +14 -13
- data/docs/PaginatedgemGemPublicationResponseList.md +14 -13
- data/docs/PaginatedgemGemRemoteResponseList.md +14 -13
- data/docs/PaginatedgemGemRepositoryResponseList.md +14 -13
- data/docs/PatchedgemGemDistribution.md +22 -21
- data/docs/PatchedgemGemRemote.md +54 -53
- data/docs/PatchedgemGemRepository.md +16 -15
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsGemApi.md +271 -132
- data/docs/RemotesGemApi.md +392 -185
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesGemApi.md +449 -210
- data/docs/RepositoriesGemVersionsApi.md +155 -83
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -19
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_gem_client/api/content_gem_api.rb +188 -25
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +94 -58
- data/lib/pulp_gem_client/api/publications_gem_api.rb +81 -58
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +109 -70
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +116 -72
- data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +50 -37
- data/lib/pulp_gem_client/api_client.rb +137 -102
- data/lib/pulp_gem_client/api_error.rb +2 -1
- data/lib/pulp_gem_client/configuration.rb +162 -21
- data/lib/pulp_gem_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_gem_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_gem_client/models/gem_gem_content_response.rb +57 -25
- data/lib/pulp_gem_client/models/gem_gem_distribution.rb +34 -22
- data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +57 -25
- data/lib/pulp_gem_client/models/gem_gem_publication.rb +30 -22
- data/lib/pulp_gem_client/models/gem_gem_publication_response.rb +43 -25
- data/lib/pulp_gem_client/models/gem_gem_remote.rb +56 -22
- data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +70 -26
- data/lib/pulp_gem_client/models/{gem_gem_remote_response_hidden_fields.rb → gem_gem_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_gem_client/models/gem_gem_repository.rb +32 -22
- data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +45 -25
- data/lib/pulp_gem_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_gem_client/models/nested_role.rb +32 -22
- data/lib/pulp_gem_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_gem_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +40 -24
- data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +62 -24
- data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +35 -23
- data/lib/pulp_gem_client/models/policy_enum.rb +8 -4
- data/lib/pulp_gem_client/models/repair.rb +30 -22
- data/lib/pulp_gem_client/models/repository_add_remove_content.rb +31 -23
- data/lib/pulp_gem_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_gem_client/models/repository_version_response.rb +44 -26
- data/lib/pulp_gem_client/models/set_label.rb +34 -22
- data/lib/pulp_gem_client/models/set_label_response.rb +34 -22
- data/lib/pulp_gem_client/models/unset_label.rb +33 -23
- data/lib/pulp_gem_client/models/unset_label_response.rb +33 -23
- data/lib/pulp_gem_client/version.rb +2 -2
- data/lib/pulp_gem_client.rb +2 -3
- data/pulp_gem_client.gemspec +9 -6
- data/spec/api/content_gem_api_spec.rb +38 -9
- data/spec/api/distributions_gem_api_spec.rb +15 -14
- data/spec/api/publications_gem_api_spec.rb +22 -20
- data/spec/api/remotes_gem_api_spec.rb +22 -20
- data/spec/api/repositories_gem_api_spec.rb +19 -18
- data/spec/api/repositories_gem_versions_api_spec.rb +16 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/gem_gem_content_response_spec.rb +30 -23
- data/spec/models/gem_gem_distribution_response_spec.rb +30 -23
- data/spec/models/gem_gem_distribution_spec.rb +14 -19
- data/spec/models/gem_gem_publication_response_spec.rb +17 -16
- data/spec/models/gem_gem_publication_spec.rb +8 -13
- data/spec/models/{gem_gem_remote_response_hidden_fields_spec.rb → gem_gem_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/gem_gem_remote_response_spec.rb +35 -34
- data/spec/models/gem_gem_remote_spec.rb +30 -35
- data/spec/models/gem_gem_repository_response_spec.rb +22 -21
- data/spec/models/gem_gem_repository_spec.rb +11 -16
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_content_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_publication_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_repository_response_list_spec.rb +10 -15
- data/spec/models/patchedgem_gem_distribution_spec.rb +14 -19
- data/spec/models/patchedgem_gem_remote_spec.rb +30 -35
- data/spec/models/patchedgem_gem_repository_spec.rb +11 -16
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_sync_url_spec.rb +8 -13
- data/spec/models/repository_version_response_spec.rb +19 -18
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +83 -63
- data/docs/GemGemContent.md +0 -21
- data/docs/GemGemRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_gem_client/models/gem_gem_content.rb +0 -228
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/gem_gem_content_spec.rb +0 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78e153bf6c2b9f77d49caef80f592dcb6fb80a43f51160bfa0ac683c8dd0211d
|
4
|
+
data.tar.gz: 32eeae6717927583f11ea813a5535c662ca601f918cbd668f2210702f3c41523
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cdf43ec58c7120d548d610cc2a760789e1f09aca7e055280b39d858225943f3ac9ef877afa87749ce44fb20f66ad130768782635e9c06ebc3684534c2fe12d1
|
7
|
+
data.tar.gz: 91aa2f0a51af6b8e08c994c92b3b03d7cb5de17507e70a2284a3510203ead2aacd844aaac4b97ce4ed60c8bd8677bb75593c9518a39e0604bce959865c3aeca2
|
data/README.md
CHANGED
@@ -7,7 +7,8 @@ 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.7.0
|
11
|
+
- Generator version: 7.10.0
|
11
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
14
|
|
@@ -24,16 +25,16 @@ gem build pulp_gem_client.gemspec
|
|
24
25
|
Then either install the gem locally:
|
25
26
|
|
26
27
|
```shell
|
27
|
-
gem install ./pulp_gem_client-0.
|
28
|
+
gem install ./pulp_gem_client-0.7.0.gem
|
28
29
|
```
|
29
30
|
|
30
|
-
(for development, run `gem install --dev ./pulp_gem_client-0.
|
31
|
+
(for development, run `gem install --dev ./pulp_gem_client-0.7.0.gem` to install the development dependencies)
|
31
32
|
|
32
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
34
|
|
34
35
|
Finally add this to the Gemfile:
|
35
36
|
|
36
|
-
gem 'pulp_gem_client', '~> 0.
|
37
|
+
gem 'pulp_gem_client', '~> 0.7.0'
|
37
38
|
|
38
39
|
### Install from Git
|
39
40
|
|
@@ -62,13 +63,16 @@ PulpGemClient.configure do |config|
|
|
62
63
|
# Configure HTTP basic authorization: basicAuth
|
63
64
|
config.username = 'YOUR_USERNAME'
|
64
65
|
config.password = 'YOUR_PASSWORD'
|
66
|
+
# Configure faraday connection
|
67
|
+
config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
|
65
68
|
end
|
66
69
|
|
67
70
|
api_instance = PulpGemClient::ContentGemApi.new
|
68
71
|
opts = {
|
69
72
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
73
|
+
pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
70
74
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
71
|
-
file: File.new('/path/to/file') # File | An uploaded file that should be turned into the artifact of the content unit.
|
75
|
+
file: File.new('/path/to/some/file') # File | An uploaded file that should be turned into the artifact of the content unit.
|
72
76
|
}
|
73
77
|
|
74
78
|
begin
|
@@ -83,13 +87,15 @@ end
|
|
83
87
|
|
84
88
|
## Documentation for API Endpoints
|
85
89
|
|
86
|
-
All URIs are relative to *http://
|
90
|
+
All URIs are relative to *http://localhost:24817*
|
87
91
|
|
88
92
|
Class | Method | HTTP request | Description
|
89
93
|
------------ | ------------- | ------------- | -------------
|
90
94
|
*PulpGemClient::ContentGemApi* | [**create**](docs/ContentGemApi.md#create) | **POST** /pulp/api/v3/content/gem/gem/ | Create a gem content
|
91
95
|
*PulpGemClient::ContentGemApi* | [**list**](docs/ContentGemApi.md#list) | **GET** /pulp/api/v3/content/gem/gem/ | List gem contents
|
92
96
|
*PulpGemClient::ContentGemApi* | [**read**](docs/ContentGemApi.md#read) | **GET** {gem_gem_content_href} | Inspect a gem content
|
97
|
+
*PulpGemClient::ContentGemApi* | [**set_label**](docs/ContentGemApi.md#set_label) | **POST** {gem_gem_content_href}set_label/ | Set a label
|
98
|
+
*PulpGemClient::ContentGemApi* | [**unset_label**](docs/ContentGemApi.md#unset_label) | **POST** {gem_gem_content_href}unset_label/ | Unset a label
|
93
99
|
*PulpGemClient::DistributionsGemApi* | [**add_role**](docs/DistributionsGemApi.md#add_role) | **POST** {gem_gem_distribution_href}add_role/ | Add a role
|
94
100
|
*PulpGemClient::DistributionsGemApi* | [**create**](docs/DistributionsGemApi.md#create) | **POST** /pulp/api/v3/distributions/gem/gem/ | Create a gem distribution
|
95
101
|
*PulpGemClient::DistributionsGemApi* | [**delete**](docs/DistributionsGemApi.md#delete) | **DELETE** {gem_gem_distribution_href} | Delete a gem distribution
|
@@ -146,7 +152,6 @@ Class | Method | HTTP request | Description
|
|
146
152
|
|
147
153
|
- [PulpGemClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
148
154
|
- [PulpGemClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
|
149
|
-
- [PulpGemClient::GemGemContent](docs/GemGemContent.md)
|
150
155
|
- [PulpGemClient::GemGemContentResponse](docs/GemGemContentResponse.md)
|
151
156
|
- [PulpGemClient::GemGemDistribution](docs/GemGemDistribution.md)
|
152
157
|
- [PulpGemClient::GemGemDistributionResponse](docs/GemGemDistributionResponse.md)
|
@@ -154,7 +159,7 @@ Class | Method | HTTP request | Description
|
|
154
159
|
- [PulpGemClient::GemGemPublicationResponse](docs/GemGemPublicationResponse.md)
|
155
160
|
- [PulpGemClient::GemGemRemote](docs/GemGemRemote.md)
|
156
161
|
- [PulpGemClient::GemGemRemoteResponse](docs/GemGemRemoteResponse.md)
|
157
|
-
- [PulpGemClient::
|
162
|
+
- [PulpGemClient::GemGemRemoteResponseHiddenFieldsInner](docs/GemGemRemoteResponseHiddenFieldsInner.md)
|
158
163
|
- [PulpGemClient::GemGemRepository](docs/GemGemRepository.md)
|
159
164
|
- [PulpGemClient::GemGemRepositoryResponse](docs/GemGemRepositoryResponse.md)
|
160
165
|
- [PulpGemClient::MyPermissionsResponse](docs/MyPermissionsResponse.md)
|
@@ -184,6 +189,7 @@ Class | Method | HTTP request | Description
|
|
184
189
|
## Documentation for Authorization
|
185
190
|
|
186
191
|
|
192
|
+
Authentication schemes defined for the API:
|
187
193
|
### basicAuth
|
188
194
|
|
189
195
|
- **Type**: HTTP basic authentication
|
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**task** | **String** | The href of the task. |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **task** | **String** | The href of the task. | |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'pulp_gem_client'
|
13
13
|
|
14
|
-
instance = PulpGemClient::AsyncOperationResponse.new(
|
14
|
+
instance = PulpGemClient::AsyncOperationResponse.new(
|
15
|
+
task: null
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|
data/docs/ContentGemApi.md
CHANGED
@@ -1,27 +1,28 @@
|
|
1
1
|
# PulpGemClient::ContentGemApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**create**](ContentGemApi.md#create) | **POST** /pulp/api/v3/content/gem/gem/ | Create a gem content
|
8
|
-
[**list**](ContentGemApi.md#list) | **GET** /pulp/api/v3/content/gem/gem/ | List gem contents
|
9
|
-
[**read**](ContentGemApi.md#read) | **GET** {gem_gem_content_href} | Inspect a gem content
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
10
4
|
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create**](ContentGemApi.md#create) | **POST** /pulp/api/v3/content/gem/gem/ | Create a gem content |
|
8
|
+
| [**list**](ContentGemApi.md#list) | **GET** /pulp/api/v3/content/gem/gem/ | List gem contents |
|
9
|
+
| [**read**](ContentGemApi.md#read) | **GET** {gem_gem_content_href} | Inspect a gem content |
|
10
|
+
| [**set_label**](ContentGemApi.md#set_label) | **POST** {gem_gem_content_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentGemApi.md#unset_label) | **POST** {gem_gem_content_href}unset_label/ | Unset a label |
|
11
12
|
|
12
13
|
|
13
14
|
## create
|
14
15
|
|
15
|
-
> AsyncOperationResponse create(opts)
|
16
|
+
> <AsyncOperationResponse> create(opts)
|
16
17
|
|
17
18
|
Create a gem content
|
18
19
|
|
19
20
|
Trigger an asynchronous task to create content,optionally create new repository version.
|
20
21
|
|
21
|
-
###
|
22
|
+
### Examples
|
22
23
|
|
23
24
|
```ruby
|
24
|
-
|
25
|
+
require 'time'
|
25
26
|
require 'pulp_gem_client'
|
26
27
|
# setup authorization
|
27
28
|
PulpGemClient.configure do |config|
|
@@ -33,27 +34,46 @@ end
|
|
33
34
|
api_instance = PulpGemClient::ContentGemApi.new
|
34
35
|
opts = {
|
35
36
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
37
|
+
pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
36
38
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
37
|
-
file: File.new('/path/to/file') # File | An uploaded file that should be turned into the artifact of the content unit.
|
39
|
+
file: File.new('/path/to/some/file') # File | An uploaded file that should be turned into the artifact of the content unit.
|
38
40
|
}
|
39
41
|
|
40
42
|
begin
|
41
|
-
#Create a gem content
|
43
|
+
# Create a gem content
|
42
44
|
result = api_instance.create(opts)
|
43
45
|
p result
|
44
46
|
rescue PulpGemClient::ApiError => e
|
45
|
-
puts "
|
47
|
+
puts "Error when calling ContentGemApi->create: #{e}"
|
46
48
|
end
|
47
49
|
```
|
48
50
|
|
49
|
-
|
51
|
+
#### Using the create_with_http_info variant
|
52
|
+
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
54
|
+
|
55
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(opts)
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
begin
|
59
|
+
# Create a gem content
|
60
|
+
data, status_code, headers = api_instance.create_with_http_info(opts)
|
61
|
+
p status_code # => 2xx
|
62
|
+
p headers # => { ... }
|
63
|
+
p data # => <AsyncOperationResponse>
|
64
|
+
rescue PulpGemClient::ApiError => e
|
65
|
+
puts "Error when calling ContentGemApi->create_with_http_info: #{e}"
|
66
|
+
end
|
67
|
+
```
|
50
68
|
|
69
|
+
### Parameters
|
51
70
|
|
52
|
-
Name | Type | Description
|
53
|
-
|
54
|
-
**repository** | **String
|
55
|
-
**
|
56
|
-
**
|
71
|
+
| Name | Type | Description | Notes |
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
73
|
+
| **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
|
74
|
+
| **pulp_labels** | [**Hash<String, String>**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
|
75
|
+
| **artifact** | **String** | Artifact file representing the physical content | [optional] |
|
76
|
+
| **file** | **File** | An uploaded file that should be turned into the artifact of the content unit. | [optional] |
|
57
77
|
|
58
78
|
### Return type
|
59
79
|
|
@@ -71,16 +91,16 @@ Name | Type | Description | Notes
|
|
71
91
|
|
72
92
|
## list
|
73
93
|
|
74
|
-
> PaginatedgemGemContentResponseList list(opts)
|
94
|
+
> <PaginatedgemGemContentResponseList> list(opts)
|
75
95
|
|
76
96
|
List gem contents
|
77
97
|
|
78
98
|
A ViewSet for GemContent.
|
79
99
|
|
80
|
-
###
|
100
|
+
### Examples
|
81
101
|
|
82
102
|
```ruby
|
83
|
-
|
103
|
+
require 'time'
|
84
104
|
require 'pulp_gem_client'
|
85
105
|
# setup authorization
|
86
106
|
PulpGemClient.configure do |config|
|
@@ -95,50 +115,71 @@ opts = {
|
|
95
115
|
limit: 56, # Integer | Number of results to return per page.
|
96
116
|
name: 'name_example', # String | Filter results where name matches value
|
97
117
|
offset: 56, # Integer | The initial index from which to return the results.
|
98
|
-
ordering: ['
|
99
|
-
orphaned_for:
|
118
|
+
ordering: ['-checksum'], # 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) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (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)
|
119
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
100
120
|
prerelease: true, # Boolean | Filter results where prerelease matches value
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
121
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
122
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
123
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
124
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
125
|
+
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
126
|
+
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
127
|
+
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
128
|
+
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
|
107
129
|
version: 'version_example', # String | Filter results where version matches value
|
108
|
-
fields: ['
|
109
|
-
exclude_fields: ['
|
130
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
131
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
110
132
|
}
|
111
133
|
|
112
134
|
begin
|
113
|
-
#List gem contents
|
135
|
+
# List gem contents
|
114
136
|
result = api_instance.list(opts)
|
115
137
|
p result
|
116
138
|
rescue PulpGemClient::ApiError => e
|
117
|
-
puts "
|
139
|
+
puts "Error when calling ContentGemApi->list: #{e}"
|
118
140
|
end
|
119
141
|
```
|
120
142
|
|
121
|
-
|
143
|
+
#### Using the list_with_http_info variant
|
144
|
+
|
145
|
+
This returns an Array which contains the response data, status code and headers.
|
146
|
+
|
147
|
+
> <Array(<PaginatedgemGemContentResponseList>, Integer, Hash)> list_with_http_info(opts)
|
148
|
+
|
149
|
+
```ruby
|
150
|
+
begin
|
151
|
+
# List gem contents
|
152
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
153
|
+
p status_code # => 2xx
|
154
|
+
p headers # => { ... }
|
155
|
+
p data # => <PaginatedgemGemContentResponseList>
|
156
|
+
rescue PulpGemClient::ApiError => e
|
157
|
+
puts "Error when calling ContentGemApi->list_with_http_info: #{e}"
|
158
|
+
end
|
159
|
+
```
|
122
160
|
|
161
|
+
### Parameters
|
123
162
|
|
124
|
-
Name | Type | Description
|
125
|
-
|
126
|
-
**checksum** | **String
|
127
|
-
**limit** | **Integer
|
128
|
-
**name** | **String
|
129
|
-
**offset** | **Integer
|
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
|
132
|
-
**prerelease** | **Boolean
|
133
|
-
**
|
134
|
-
**
|
135
|
-
**
|
136
|
-
**
|
137
|
-
**
|
138
|
-
**
|
139
|
-
**
|
140
|
-
**
|
141
|
-
**
|
163
|
+
| Name | Type | Description | Notes |
|
164
|
+
| ---- | ---- | ----------- | ----- |
|
165
|
+
| **checksum** | **String** | Filter results where checksum matches value | [optional] |
|
166
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
167
|
+
| **name** | **String** | Filter results where name matches value | [optional] |
|
168
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
169
|
+
| **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) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (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] |
|
170
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
171
|
+
| **prerelease** | **Boolean** | Filter results where prerelease matches value | [optional] |
|
172
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
173
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
174
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
175
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
176
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
177
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
178
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
179
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
180
|
+
| **version** | **String** | Filter results where version matches value | [optional] |
|
181
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
182
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
142
183
|
|
143
184
|
### Return type
|
144
185
|
|
@@ -156,16 +197,16 @@ Name | Type | Description | Notes
|
|
156
197
|
|
157
198
|
## read
|
158
199
|
|
159
|
-
> GemGemContentResponse read(gem_gem_content_href, opts)
|
200
|
+
> <GemGemContentResponse> read(gem_gem_content_href, opts)
|
160
201
|
|
161
202
|
Inspect a gem content
|
162
203
|
|
163
204
|
A ViewSet for GemContent.
|
164
205
|
|
165
|
-
###
|
206
|
+
### Examples
|
166
207
|
|
167
208
|
```ruby
|
168
|
-
|
209
|
+
require 'time'
|
169
210
|
require 'pulp_gem_client'
|
170
211
|
# setup authorization
|
171
212
|
PulpGemClient.configure do |config|
|
@@ -177,27 +218,44 @@ end
|
|
177
218
|
api_instance = PulpGemClient::ContentGemApi.new
|
178
219
|
gem_gem_content_href = 'gem_gem_content_href_example' # String |
|
179
220
|
opts = {
|
180
|
-
fields: ['
|
181
|
-
exclude_fields: ['
|
221
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
222
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
182
223
|
}
|
183
224
|
|
184
225
|
begin
|
185
|
-
#Inspect a gem content
|
226
|
+
# Inspect a gem content
|
186
227
|
result = api_instance.read(gem_gem_content_href, opts)
|
187
228
|
p result
|
188
229
|
rescue PulpGemClient::ApiError => e
|
189
|
-
puts "
|
230
|
+
puts "Error when calling ContentGemApi->read: #{e}"
|
190
231
|
end
|
191
232
|
```
|
192
233
|
|
193
|
-
|
234
|
+
#### Using the read_with_http_info variant
|
235
|
+
|
236
|
+
This returns an Array which contains the response data, status code and headers.
|
237
|
+
|
238
|
+
> <Array(<GemGemContentResponse>, Integer, Hash)> read_with_http_info(gem_gem_content_href, opts)
|
194
239
|
|
240
|
+
```ruby
|
241
|
+
begin
|
242
|
+
# Inspect a gem content
|
243
|
+
data, status_code, headers = api_instance.read_with_http_info(gem_gem_content_href, opts)
|
244
|
+
p status_code # => 2xx
|
245
|
+
p headers # => { ... }
|
246
|
+
p data # => <GemGemContentResponse>
|
247
|
+
rescue PulpGemClient::ApiError => e
|
248
|
+
puts "Error when calling ContentGemApi->read_with_http_info: #{e}"
|
249
|
+
end
|
250
|
+
```
|
251
|
+
|
252
|
+
### Parameters
|
195
253
|
|
196
|
-
Name | Type | Description
|
197
|
-
|
198
|
-
**gem_gem_content_href** | **String
|
199
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
200
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
254
|
+
| Name | Type | Description | Notes |
|
255
|
+
| ---- | ---- | ----------- | ----- |
|
256
|
+
| **gem_gem_content_href** | **String** | | |
|
257
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
258
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
201
259
|
|
202
260
|
### Return type
|
203
261
|
|
@@ -212,3 +270,147 @@ Name | Type | Description | Notes
|
|
212
270
|
- **Content-Type**: Not defined
|
213
271
|
- **Accept**: application/json
|
214
272
|
|
273
|
+
|
274
|
+
## set_label
|
275
|
+
|
276
|
+
> <SetLabelResponse> set_label(gem_gem_content_href, set_label)
|
277
|
+
|
278
|
+
Set a label
|
279
|
+
|
280
|
+
Set a single pulp_label on the object to a specific value or null.
|
281
|
+
|
282
|
+
### Examples
|
283
|
+
|
284
|
+
```ruby
|
285
|
+
require 'time'
|
286
|
+
require 'pulp_gem_client'
|
287
|
+
# setup authorization
|
288
|
+
PulpGemClient.configure do |config|
|
289
|
+
# Configure HTTP basic authorization: basicAuth
|
290
|
+
config.username = 'YOUR USERNAME'
|
291
|
+
config.password = 'YOUR PASSWORD'
|
292
|
+
end
|
293
|
+
|
294
|
+
api_instance = PulpGemClient::ContentGemApi.new
|
295
|
+
gem_gem_content_href = 'gem_gem_content_href_example' # String |
|
296
|
+
set_label = PulpGemClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
297
|
+
|
298
|
+
begin
|
299
|
+
# Set a label
|
300
|
+
result = api_instance.set_label(gem_gem_content_href, set_label)
|
301
|
+
p result
|
302
|
+
rescue PulpGemClient::ApiError => e
|
303
|
+
puts "Error when calling ContentGemApi->set_label: #{e}"
|
304
|
+
end
|
305
|
+
```
|
306
|
+
|
307
|
+
#### Using the set_label_with_http_info variant
|
308
|
+
|
309
|
+
This returns an Array which contains the response data, status code and headers.
|
310
|
+
|
311
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(gem_gem_content_href, set_label)
|
312
|
+
|
313
|
+
```ruby
|
314
|
+
begin
|
315
|
+
# Set a label
|
316
|
+
data, status_code, headers = api_instance.set_label_with_http_info(gem_gem_content_href, set_label)
|
317
|
+
p status_code # => 2xx
|
318
|
+
p headers # => { ... }
|
319
|
+
p data # => <SetLabelResponse>
|
320
|
+
rescue PulpGemClient::ApiError => e
|
321
|
+
puts "Error when calling ContentGemApi->set_label_with_http_info: #{e}"
|
322
|
+
end
|
323
|
+
```
|
324
|
+
|
325
|
+
### Parameters
|
326
|
+
|
327
|
+
| Name | Type | Description | Notes |
|
328
|
+
| ---- | ---- | ----------- | ----- |
|
329
|
+
| **gem_gem_content_href** | **String** | | |
|
330
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
331
|
+
|
332
|
+
### Return type
|
333
|
+
|
334
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
335
|
+
|
336
|
+
### Authorization
|
337
|
+
|
338
|
+
[basicAuth](../README.md#basicAuth)
|
339
|
+
|
340
|
+
### HTTP request headers
|
341
|
+
|
342
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
343
|
+
- **Accept**: application/json
|
344
|
+
|
345
|
+
|
346
|
+
## unset_label
|
347
|
+
|
348
|
+
> <UnsetLabelResponse> unset_label(gem_gem_content_href, unset_label)
|
349
|
+
|
350
|
+
Unset a label
|
351
|
+
|
352
|
+
Unset a single pulp_label on the object.
|
353
|
+
|
354
|
+
### Examples
|
355
|
+
|
356
|
+
```ruby
|
357
|
+
require 'time'
|
358
|
+
require 'pulp_gem_client'
|
359
|
+
# setup authorization
|
360
|
+
PulpGemClient.configure do |config|
|
361
|
+
# Configure HTTP basic authorization: basicAuth
|
362
|
+
config.username = 'YOUR USERNAME'
|
363
|
+
config.password = 'YOUR PASSWORD'
|
364
|
+
end
|
365
|
+
|
366
|
+
api_instance = PulpGemClient::ContentGemApi.new
|
367
|
+
gem_gem_content_href = 'gem_gem_content_href_example' # String |
|
368
|
+
unset_label = PulpGemClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
369
|
+
|
370
|
+
begin
|
371
|
+
# Unset a label
|
372
|
+
result = api_instance.unset_label(gem_gem_content_href, unset_label)
|
373
|
+
p result
|
374
|
+
rescue PulpGemClient::ApiError => e
|
375
|
+
puts "Error when calling ContentGemApi->unset_label: #{e}"
|
376
|
+
end
|
377
|
+
```
|
378
|
+
|
379
|
+
#### Using the unset_label_with_http_info variant
|
380
|
+
|
381
|
+
This returns an Array which contains the response data, status code and headers.
|
382
|
+
|
383
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(gem_gem_content_href, unset_label)
|
384
|
+
|
385
|
+
```ruby
|
386
|
+
begin
|
387
|
+
# Unset a label
|
388
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(gem_gem_content_href, unset_label)
|
389
|
+
p status_code # => 2xx
|
390
|
+
p headers # => { ... }
|
391
|
+
p data # => <UnsetLabelResponse>
|
392
|
+
rescue PulpGemClient::ApiError => e
|
393
|
+
puts "Error when calling ContentGemApi->unset_label_with_http_info: #{e}"
|
394
|
+
end
|
395
|
+
```
|
396
|
+
|
397
|
+
### Parameters
|
398
|
+
|
399
|
+
| Name | Type | Description | Notes |
|
400
|
+
| ---- | ---- | ----------- | ----- |
|
401
|
+
| **gem_gem_content_href** | **String** | | |
|
402
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
403
|
+
|
404
|
+
### Return type
|
405
|
+
|
406
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
407
|
+
|
408
|
+
### Authorization
|
409
|
+
|
410
|
+
[basicAuth](../README.md#basicAuth)
|
411
|
+
|
412
|
+
### HTTP request headers
|
413
|
+
|
414
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
415
|
+
- **Accept**: application/json
|
416
|
+
|
@@ -2,20 +2,21 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**added** | **Hash<String, Object>** | |
|
8
|
-
**removed** | **Hash<String, Object>** | |
|
9
|
-
**present** | **Hash<String, Object>** | |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **added** | **Hash<String, Object>** | | |
|
8
|
+
| **removed** | **Hash<String, Object>** | | |
|
9
|
+
| **present** | **Hash<String, Object>** | | |
|
10
10
|
|
11
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'pulp_gem_client'
|
15
15
|
|
16
|
-
instance = PulpGemClient::ContentSummaryResponse.new(
|
17
|
-
|
18
|
-
|
16
|
+
instance = PulpGemClient::ContentSummaryResponse.new(
|
17
|
+
added: null,
|
18
|
+
removed: null,
|
19
|
+
present: null
|
20
|
+
)
|
19
21
|
```
|
20
22
|
|
21
|
-
|