pulp_gem_client 0.6.1 → 0.6.2
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 +11 -8
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGemApi.md +118 -66
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsGemApi.md +388 -183
- data/docs/GemGemContentResponse.md +32 -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 +31 -22
- 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 +45 -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 +32 -22
- data/lib/pulp_gem_client/models/unset_label_response.rb +32 -22
- 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 +9 -8
- 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 +24 -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 +80 -60
- 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: 2b36192ce4d64a74b05190ff8a05c4eb2377426ab642850762b3b36391821265
|
|
4
|
+
data.tar.gz: 972a883542b71e86f5a35195073aa578fe0dcd2988082694656e2d16fbc821ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ddfef8cc263ad9abfdf1af49c5d3f5a8442abbd96adccdd403c329deff1acbffeb0bf5435abe2f72eb2986eac8a6b5ad2865472175b275883951b78284e3a4a
|
|
7
|
+
data.tar.gz: 8c51e3c12c509f7860bcde013b5aaa0ecdc8fc9fc10bb7f9ae04eab6f6632551281dc163ccef91756dce1f301447dde122f2f634f8f033665b402893d4550bbf
|
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.6.
|
|
10
|
+
- Package version: 0.6.2
|
|
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.6.
|
|
28
|
+
gem install ./pulp_gem_client-0.6.2.gem
|
|
28
29
|
```
|
|
29
30
|
|
|
30
|
-
(for development, run `gem install --dev ./pulp_gem_client-0.6.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_gem_client-0.6.2.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.6.
|
|
37
|
+
gem 'pulp_gem_client', '~> 0.6.2'
|
|
37
38
|
|
|
38
39
|
### Install from Git
|
|
39
40
|
|
|
@@ -62,13 +63,15 @@ 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.
|
|
70
73
|
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.
|
|
74
|
+
file: File.new('/path/to/some/file') # File | An uploaded file that should be turned into the artifact of the content unit.
|
|
72
75
|
}
|
|
73
76
|
|
|
74
77
|
begin
|
|
@@ -83,7 +86,7 @@ end
|
|
|
83
86
|
|
|
84
87
|
## Documentation for API Endpoints
|
|
85
88
|
|
|
86
|
-
All URIs are relative to *http://
|
|
89
|
+
All URIs are relative to *http://localhost:24817*
|
|
87
90
|
|
|
88
91
|
Class | Method | HTTP request | Description
|
|
89
92
|
------------ | ------------- | ------------- | -------------
|
|
@@ -146,7 +149,6 @@ Class | Method | HTTP request | Description
|
|
|
146
149
|
|
|
147
150
|
- [PulpGemClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
|
148
151
|
- [PulpGemClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
|
|
149
|
-
- [PulpGemClient::GemGemContent](docs/GemGemContent.md)
|
|
150
152
|
- [PulpGemClient::GemGemContentResponse](docs/GemGemContentResponse.md)
|
|
151
153
|
- [PulpGemClient::GemGemDistribution](docs/GemGemDistribution.md)
|
|
152
154
|
- [PulpGemClient::GemGemDistributionResponse](docs/GemGemDistributionResponse.md)
|
|
@@ -154,7 +156,7 @@ Class | Method | HTTP request | Description
|
|
|
154
156
|
- [PulpGemClient::GemGemPublicationResponse](docs/GemGemPublicationResponse.md)
|
|
155
157
|
- [PulpGemClient::GemGemRemote](docs/GemGemRemote.md)
|
|
156
158
|
- [PulpGemClient::GemGemRemoteResponse](docs/GemGemRemoteResponse.md)
|
|
157
|
-
- [PulpGemClient::
|
|
159
|
+
- [PulpGemClient::GemGemRemoteResponseHiddenFieldsInner](docs/GemGemRemoteResponseHiddenFieldsInner.md)
|
|
158
160
|
- [PulpGemClient::GemGemRepository](docs/GemGemRepository.md)
|
|
159
161
|
- [PulpGemClient::GemGemRepositoryResponse](docs/GemGemRepositoryResponse.md)
|
|
160
162
|
- [PulpGemClient::MyPermissionsResponse](docs/MyPermissionsResponse.md)
|
|
@@ -184,6 +186,7 @@ Class | Method | HTTP request | Description
|
|
|
184
186
|
## Documentation for Authorization
|
|
185
187
|
|
|
186
188
|
|
|
189
|
+
Authentication schemes defined for the API:
|
|
187
190
|
### basicAuth
|
|
188
191
|
|
|
189
192
|
- **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,26 @@
|
|
|
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 |
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
## create
|
|
14
13
|
|
|
15
|
-
> AsyncOperationResponse create(opts)
|
|
14
|
+
> <AsyncOperationResponse> create(opts)
|
|
16
15
|
|
|
17
16
|
Create a gem content
|
|
18
17
|
|
|
19
18
|
Trigger an asynchronous task to create content,optionally create new repository version.
|
|
20
19
|
|
|
21
|
-
###
|
|
20
|
+
### Examples
|
|
22
21
|
|
|
23
22
|
```ruby
|
|
24
|
-
|
|
23
|
+
require 'time'
|
|
25
24
|
require 'pulp_gem_client'
|
|
26
25
|
# setup authorization
|
|
27
26
|
PulpGemClient.configure do |config|
|
|
@@ -34,26 +33,43 @@ api_instance = PulpGemClient::ContentGemApi.new
|
|
|
34
33
|
opts = {
|
|
35
34
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
|
36
35
|
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.
|
|
36
|
+
file: File.new('/path/to/some/file') # File | An uploaded file that should be turned into the artifact of the content unit.
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
begin
|
|
41
|
-
#Create a gem content
|
|
40
|
+
# Create a gem content
|
|
42
41
|
result = api_instance.create(opts)
|
|
43
42
|
p result
|
|
44
43
|
rescue PulpGemClient::ApiError => e
|
|
45
|
-
puts "
|
|
44
|
+
puts "Error when calling ContentGemApi->create: #{e}"
|
|
46
45
|
end
|
|
47
46
|
```
|
|
48
47
|
|
|
49
|
-
|
|
48
|
+
#### Using the create_with_http_info variant
|
|
49
|
+
|
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
|
51
|
+
|
|
52
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(opts)
|
|
53
|
+
|
|
54
|
+
```ruby
|
|
55
|
+
begin
|
|
56
|
+
# Create a gem content
|
|
57
|
+
data, status_code, headers = api_instance.create_with_http_info(opts)
|
|
58
|
+
p status_code # => 2xx
|
|
59
|
+
p headers # => { ... }
|
|
60
|
+
p data # => <AsyncOperationResponse>
|
|
61
|
+
rescue PulpGemClient::ApiError => e
|
|
62
|
+
puts "Error when calling ContentGemApi->create_with_http_info: #{e}"
|
|
63
|
+
end
|
|
64
|
+
```
|
|
50
65
|
|
|
66
|
+
### Parameters
|
|
51
67
|
|
|
52
|
-
Name | Type | Description
|
|
53
|
-
|
|
54
|
-
**repository** | **String
|
|
55
|
-
**artifact** | **String
|
|
56
|
-
**file** | **File
|
|
68
|
+
| Name | Type | Description | Notes |
|
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
|
70
|
+
| **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
|
|
71
|
+
| **artifact** | **String** | Artifact file representing the physical content | [optional] |
|
|
72
|
+
| **file** | **File** | An uploaded file that should be turned into the artifact of the content unit. | [optional] |
|
|
57
73
|
|
|
58
74
|
### Return type
|
|
59
75
|
|
|
@@ -71,16 +87,16 @@ Name | Type | Description | Notes
|
|
|
71
87
|
|
|
72
88
|
## list
|
|
73
89
|
|
|
74
|
-
> PaginatedgemGemContentResponseList list(opts)
|
|
90
|
+
> <PaginatedgemGemContentResponseList> list(opts)
|
|
75
91
|
|
|
76
92
|
List gem contents
|
|
77
93
|
|
|
78
94
|
A ViewSet for GemContent.
|
|
79
95
|
|
|
80
|
-
###
|
|
96
|
+
### Examples
|
|
81
97
|
|
|
82
98
|
```ruby
|
|
83
|
-
|
|
99
|
+
require 'time'
|
|
84
100
|
require 'pulp_gem_client'
|
|
85
101
|
# setup authorization
|
|
86
102
|
PulpGemClient.configure do |config|
|
|
@@ -95,50 +111,69 @@ opts = {
|
|
|
95
111
|
limit: 56, # Integer | Number of results to return per page.
|
|
96
112
|
name: 'name_example', # String | Filter results where name matches value
|
|
97
113
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
98
|
-
ordering: ['
|
|
99
|
-
orphaned_for:
|
|
114
|
+
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) * `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)
|
|
115
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
100
116
|
prerelease: true, # Boolean | Filter results where prerelease matches value
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
117
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
118
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
119
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
120
|
+
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
|
121
|
+
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
|
122
|
+
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
|
123
|
+
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
|
|
107
124
|
version: 'version_example', # String | Filter results where version matches value
|
|
108
|
-
fields: ['
|
|
109
|
-
exclude_fields: ['
|
|
125
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
|
126
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
|
110
127
|
}
|
|
111
128
|
|
|
112
129
|
begin
|
|
113
|
-
#List gem contents
|
|
130
|
+
# List gem contents
|
|
114
131
|
result = api_instance.list(opts)
|
|
115
132
|
p result
|
|
116
133
|
rescue PulpGemClient::ApiError => e
|
|
117
|
-
puts "
|
|
134
|
+
puts "Error when calling ContentGemApi->list: #{e}"
|
|
118
135
|
end
|
|
119
136
|
```
|
|
120
137
|
|
|
121
|
-
|
|
138
|
+
#### Using the list_with_http_info variant
|
|
122
139
|
|
|
140
|
+
This returns an Array which contains the response data, status code and headers.
|
|
123
141
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
> <Array(<PaginatedgemGemContentResponseList>, Integer, Hash)> list_with_http_info(opts)
|
|
143
|
+
|
|
144
|
+
```ruby
|
|
145
|
+
begin
|
|
146
|
+
# List gem contents
|
|
147
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
|
148
|
+
p status_code # => 2xx
|
|
149
|
+
p headers # => { ... }
|
|
150
|
+
p data # => <PaginatedgemGemContentResponseList>
|
|
151
|
+
rescue PulpGemClient::ApiError => e
|
|
152
|
+
puts "Error when calling ContentGemApi->list_with_http_info: #{e}"
|
|
153
|
+
end
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Parameters
|
|
157
|
+
|
|
158
|
+
| Name | Type | Description | Notes |
|
|
159
|
+
| ---- | ---- | ----------- | ----- |
|
|
160
|
+
| **checksum** | **String** | Filter results where checksum matches value | [optional] |
|
|
161
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
162
|
+
| **name** | **String** | Filter results where name matches value | [optional] |
|
|
163
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
164
|
+
| **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] |
|
|
165
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
|
166
|
+
| **prerelease** | **Boolean** | Filter results where prerelease matches value | [optional] |
|
|
167
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
168
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
169
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
170
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
|
171
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
|
172
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
|
173
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
|
174
|
+
| **version** | **String** | Filter results where version matches value | [optional] |
|
|
175
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
176
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
|
142
177
|
|
|
143
178
|
### Return type
|
|
144
179
|
|
|
@@ -156,16 +191,16 @@ Name | Type | Description | Notes
|
|
|
156
191
|
|
|
157
192
|
## read
|
|
158
193
|
|
|
159
|
-
> GemGemContentResponse read(gem_gem_content_href, opts)
|
|
194
|
+
> <GemGemContentResponse> read(gem_gem_content_href, opts)
|
|
160
195
|
|
|
161
196
|
Inspect a gem content
|
|
162
197
|
|
|
163
198
|
A ViewSet for GemContent.
|
|
164
199
|
|
|
165
|
-
###
|
|
200
|
+
### Examples
|
|
166
201
|
|
|
167
202
|
```ruby
|
|
168
|
-
|
|
203
|
+
require 'time'
|
|
169
204
|
require 'pulp_gem_client'
|
|
170
205
|
# setup authorization
|
|
171
206
|
PulpGemClient.configure do |config|
|
|
@@ -177,27 +212,44 @@ end
|
|
|
177
212
|
api_instance = PulpGemClient::ContentGemApi.new
|
|
178
213
|
gem_gem_content_href = 'gem_gem_content_href_example' # String |
|
|
179
214
|
opts = {
|
|
180
|
-
fields: ['
|
|
181
|
-
exclude_fields: ['
|
|
215
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
|
216
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
|
182
217
|
}
|
|
183
218
|
|
|
184
219
|
begin
|
|
185
|
-
#Inspect a gem content
|
|
220
|
+
# Inspect a gem content
|
|
186
221
|
result = api_instance.read(gem_gem_content_href, opts)
|
|
187
222
|
p result
|
|
188
223
|
rescue PulpGemClient::ApiError => e
|
|
189
|
-
puts "
|
|
224
|
+
puts "Error when calling ContentGemApi->read: #{e}"
|
|
190
225
|
end
|
|
191
226
|
```
|
|
192
227
|
|
|
193
|
-
|
|
228
|
+
#### Using the read_with_http_info variant
|
|
229
|
+
|
|
230
|
+
This returns an Array which contains the response data, status code and headers.
|
|
231
|
+
|
|
232
|
+
> <Array(<GemGemContentResponse>, Integer, Hash)> read_with_http_info(gem_gem_content_href, opts)
|
|
194
233
|
|
|
234
|
+
```ruby
|
|
235
|
+
begin
|
|
236
|
+
# Inspect a gem content
|
|
237
|
+
data, status_code, headers = api_instance.read_with_http_info(gem_gem_content_href, opts)
|
|
238
|
+
p status_code # => 2xx
|
|
239
|
+
p headers # => { ... }
|
|
240
|
+
p data # => <GemGemContentResponse>
|
|
241
|
+
rescue PulpGemClient::ApiError => e
|
|
242
|
+
puts "Error when calling ContentGemApi->read_with_http_info: #{e}"
|
|
243
|
+
end
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Parameters
|
|
195
247
|
|
|
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]
|
|
248
|
+
| Name | Type | Description | Notes |
|
|
249
|
+
| ---- | ---- | ----------- | ----- |
|
|
250
|
+
| **gem_gem_content_href** | **String** | | |
|
|
251
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
252
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
|
201
253
|
|
|
202
254
|
### Return type
|
|
203
255
|
|
|
@@ -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
|
-
|