pulp_gem_client 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/docs/ContentGemApi.md +5 -5
- data/docs/DistributionsGemApi.md +1 -1
- data/docs/GemGemContent.md +4 -4
- data/docs/GemGemContentResponse.md +2 -0
- data/docs/RepositoriesGemApi.md +1 -1
- data/lib/pulp_gem_client/api/content_gem_api.rb +6 -6
- data/lib/pulp_gem_client/models/gem_gem_content.rb +14 -14
- data/lib/pulp_gem_client/models/gem_gem_content_response.rb +11 -1
- data/lib/pulp_gem_client/version.rb +1 -1
- data/spec/api/content_gem_api_spec.rb +2 -2
- data/spec/models/gem_gem_content_response_spec.rb +6 -0
- data/spec/models/gem_gem_content_spec.rb +3 -3
- metadata +23 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b42cd5685cefbfb95d5d792a56830ce9ef304c7fa0b4cd93d45fc0909dd13aa
|
4
|
+
data.tar.gz: 506b8805b342ce8b8daf63ab603e7315a8593a013ce10b01126642fbf096c4cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7813a17993d2c158ec92d20a51a205891012705a2f189f142cf6ac6033a62bef31a38edd6883e005b82567f2747ffb30fedaa15d26fb98dbd4932f4557854442
|
7
|
+
data.tar.gz: a58db3ffc333561ba72e38d2fd4d67e3fa166c0ebb62549a7968e4cf37f82909bd07321f73084f53c0237d672f70955b59ba565c3e9d2e27742e9e4e41f017a9
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 0.
|
10
|
+
- Package version: 0.2.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.
|
27
|
+
gem install ./pulp_gem_client-0.2.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_gem_client-0.
|
30
|
+
(for development, run `gem install --dev ./pulp_gem_client-0.2.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.
|
36
|
+
gem 'pulp_gem_client', '~> 0.2.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -66,9 +66,9 @@ end
|
|
66
66
|
|
67
67
|
api_instance = PulpGemClient::ContentGemApi.new
|
68
68
|
opts = {
|
69
|
+
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
69
70
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
70
|
-
file: File.new('/path/to/file')
|
71
|
-
repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
|
71
|
+
file: File.new('/path/to/file') # File | An uploaded file that should be turned into the artifact of the content unit.
|
72
72
|
}
|
73
73
|
|
74
74
|
begin
|
data/docs/ContentGemApi.md
CHANGED
@@ -32,9 +32,9 @@ end
|
|
32
32
|
|
33
33
|
api_instance = PulpGemClient::ContentGemApi.new
|
34
34
|
opts = {
|
35
|
+
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
35
36
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
36
|
-
file: File.new('/path/to/file')
|
37
|
-
repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
|
37
|
+
file: File.new('/path/to/file') # File | An uploaded file that should be turned into the artifact of the content unit.
|
38
38
|
}
|
39
39
|
|
40
40
|
begin
|
@@ -51,9 +51,9 @@ end
|
|
51
51
|
|
52
52
|
Name | Type | Description | Notes
|
53
53
|
------------- | ------------- | ------------- | -------------
|
54
|
+
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
54
55
|
**artifact** | **String**| Artifact file representing the physical content | [optional]
|
55
56
|
**file** | **File**| An uploaded file that should be turned into the artifact of the content unit. | [optional]
|
56
|
-
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
57
57
|
|
58
58
|
### Return type
|
59
59
|
|
@@ -95,7 +95,7 @@ opts = {
|
|
95
95
|
limit: 56, # Integer | Number of results to return per page.
|
96
96
|
name: 'name_example', # String | Filter results where name matches value
|
97
97
|
offset: 56, # Integer | The initial index from which to return the results.
|
98
|
-
ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `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)
|
98
|
+
ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `platform` - Platform * `-platform` - Platform (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `prerelease` - Prerelease * `-prerelease` - Prerelease (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `required_ruby_version` - Required ruby version * `-required_ruby_version` - Required ruby version (descending) * `required_rubygems_version` - Required rubygems version * `-required_rubygems_version` - Required rubygems version (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
99
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.
|
@@ -125,7 +125,7 @@ Name | Type | Description | Notes
|
|
125
125
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
126
126
|
**name** | **String**| Filter results where name matches value | [optional]
|
127
127
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
128
|
-
**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) * `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]
|
128
|
+
**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]
|
129
129
|
**prerelease** | **Boolean**| Filter results where prerelease matches value | [optional]
|
130
130
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
131
131
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
data/docs/DistributionsGemApi.md
CHANGED
@@ -192,7 +192,7 @@ Name | Type | Description | Notes
|
|
192
192
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
193
193
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
194
194
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
195
|
-
**repository** | **String
|
195
|
+
**repository** | [**String**](.md)| Filter results where repository matches value | [optional]
|
196
196
|
**repository__in** | [**Array<String>**](String.md)| Filter results where repository is in a comma-separated list of values | [optional]
|
197
197
|
**with_content** | **String**| Filter distributions based on the content served by them | [optional]
|
198
198
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
data/docs/GemGemContent.md
CHANGED
@@ -4,18 +4,18 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
7
8
|
**artifact** | **String** | Artifact file representing the physical content | [optional]
|
8
9
|
**file** | **File** | An uploaded file that should be turned into the artifact of the content unit. | [optional]
|
9
|
-
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
13
13
|
```ruby
|
14
14
|
require 'PulpGemClient'
|
15
15
|
|
16
|
-
instance = PulpGemClient::GemGemContent.new(
|
17
|
-
|
18
|
-
|
16
|
+
instance = PulpGemClient::GemGemContent.new(repository: null,
|
17
|
+
artifact: null,
|
18
|
+
file: null)
|
19
19
|
```
|
20
20
|
|
21
21
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**checksum** | **String** | SHA256 checksum of the gem | [optional] [readonly]
|
11
11
|
**name** | **String** | Name of the gem | [optional] [readonly]
|
12
12
|
**version** | **String** | Version of the gem | [optional] [readonly]
|
13
|
+
**platform** | **String** | Platform of the gem | [optional] [readonly]
|
13
14
|
**prerelease** | **Boolean** | Whether the gem is a prerelease | [optional] [readonly]
|
14
15
|
**dependencies** | **Hash<String, String>** | | [optional] [readonly]
|
15
16
|
**required_ruby_version** | **String** | Required ruby version of the gem | [optional] [readonly]
|
@@ -26,6 +27,7 @@ instance = PulpGemClient::GemGemContentResponse.new(pulp_href: null,
|
|
26
27
|
checksum: null,
|
27
28
|
name: null,
|
28
29
|
version: null,
|
30
|
+
platform: null,
|
29
31
|
prerelease: null,
|
30
32
|
dependencies: null,
|
31
33
|
required_ruby_version: null,
|
data/docs/RepositoriesGemApi.md
CHANGED
@@ -195,7 +195,7 @@ Name | Type | Description | Notes
|
|
195
195
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
196
196
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
197
197
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
198
|
-
**remote** | **String
|
198
|
+
**remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
|
199
199
|
**retain_repo_versions** | **Integer**| Filter results where retain_repo_versions matches value | [optional]
|
200
200
|
**retain_repo_versions__gt** | **Integer**| Filter results where retain_repo_versions is greater than value | [optional]
|
201
201
|
**retain_repo_versions__gte** | **Integer**| Filter results where retain_repo_versions is greater than or equal to value | [optional]
|
@@ -22,9 +22,9 @@ module PulpGemClient
|
|
22
22
|
# Create a gem content
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
25
26
|
# @option opts [String] :artifact Artifact file representing the physical content
|
26
27
|
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
27
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
28
28
|
# @return [AsyncOperationResponse]
|
29
29
|
def create(opts = {})
|
30
30
|
data, _status_code, _headers = create_with_http_info(opts)
|
@@ -34,9 +34,9 @@ module PulpGemClient
|
|
34
34
|
# Create a gem content
|
35
35
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
37
38
|
# @option opts [String] :artifact Artifact file representing the physical content
|
38
39
|
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
39
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
40
40
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
41
41
|
def create_with_http_info(opts = {})
|
42
42
|
if @api_client.config.debugging
|
@@ -57,9 +57,9 @@ module PulpGemClient
|
|
57
57
|
|
58
58
|
# form parameters
|
59
59
|
form_params = opts[:form_params] || {}
|
60
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
60
61
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
61
62
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
62
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
63
63
|
|
64
64
|
# http body (model)
|
65
65
|
post_body = opts[:body]
|
@@ -93,7 +93,7 @@ module PulpGemClient
|
|
93
93
|
# @option opts [Integer] :limit Number of results to return per page.
|
94
94
|
# @option opts [String] :name Filter results where name matches value
|
95
95
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
96
|
-
# @option opts [Array<String>] :ordering 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) * `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)
|
96
|
+
# @option opts [Array<String>] :ordering 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)
|
97
97
|
# @option opts [Boolean] :prerelease Filter results where prerelease matches value
|
98
98
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
99
99
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -116,7 +116,7 @@ module PulpGemClient
|
|
116
116
|
# @option opts [Integer] :limit Number of results to return per page.
|
117
117
|
# @option opts [String] :name Filter results where name matches value
|
118
118
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
119
|
-
# @option opts [Array<String>] :ordering 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) * `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
|
+
# @option opts [Array<String>] :ordering 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)
|
120
120
|
# @option opts [Boolean] :prerelease Filter results where prerelease matches value
|
121
121
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
122
122
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -131,7 +131,7 @@ module PulpGemClient
|
|
131
131
|
if @api_client.config.debugging
|
132
132
|
@api_client.config.logger.debug 'Calling API: ContentGemApi.list ...'
|
133
133
|
end
|
134
|
-
allowable_values = ["-checksum", "-dependencies", "-name", "-pk", "-prerelease", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-required_ruby_version", "-required_rubygems_version", "-timestamp_of_interest", "-upstream_id", "-version", "checksum", "dependencies", "name", "pk", "prerelease", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "required_ruby_version", "required_rubygems_version", "timestamp_of_interest", "upstream_id", "version"]
|
134
|
+
allowable_values = ["-checksum", "-dependencies", "-name", "-pk", "-platform", "-prerelease", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-required_ruby_version", "-required_rubygems_version", "-timestamp_of_interest", "-upstream_id", "-version", "checksum", "dependencies", "name", "pk", "platform", "prerelease", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "required_ruby_version", "required_rubygems_version", "timestamp_of_interest", "upstream_id", "version"]
|
135
135
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
136
136
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
137
137
|
end
|
@@ -15,30 +15,30 @@ require 'date'
|
|
15
15
|
module PulpGemClient
|
16
16
|
# A Serializer for GemContent.
|
17
17
|
class GemGemContent
|
18
|
+
# A URI of a repository the new content unit should be associated with.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
18
21
|
# Artifact file representing the physical content
|
19
22
|
attr_accessor :artifact
|
20
23
|
|
21
24
|
# An uploaded file that should be turned into the artifact of the content unit.
|
22
25
|
attr_accessor :file
|
23
26
|
|
24
|
-
# A URI of a repository the new content unit should be associated with.
|
25
|
-
attr_accessor :repository
|
26
|
-
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
|
+
:'repository' => :'repository',
|
30
31
|
:'artifact' => :'artifact',
|
31
|
-
:'file' => :'file'
|
32
|
-
:'repository' => :'repository'
|
32
|
+
:'file' => :'file'
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
+
:'repository' => :'String',
|
39
40
|
:'artifact' => :'String',
|
40
|
-
:'file' => :'File'
|
41
|
-
:'repository' => :'String'
|
41
|
+
:'file' => :'File'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -63,6 +63,10 @@ module PulpGemClient
|
|
63
63
|
h[k.to_sym] = v
|
64
64
|
}
|
65
65
|
|
66
|
+
if attributes.key?(:'repository')
|
67
|
+
self.repository = attributes[:'repository']
|
68
|
+
end
|
69
|
+
|
66
70
|
if attributes.key?(:'artifact')
|
67
71
|
self.artifact = attributes[:'artifact']
|
68
72
|
end
|
@@ -70,10 +74,6 @@ module PulpGemClient
|
|
70
74
|
if attributes.key?(:'file')
|
71
75
|
self.file = attributes[:'file']
|
72
76
|
end
|
73
|
-
|
74
|
-
if attributes.key?(:'repository')
|
75
|
-
self.repository = attributes[:'repository']
|
76
|
-
end
|
77
77
|
end
|
78
78
|
|
79
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -94,9 +94,9 @@ module PulpGemClient
|
|
94
94
|
def ==(o)
|
95
95
|
return true if self.equal?(o)
|
96
96
|
self.class == o.class &&
|
97
|
+
repository == o.repository &&
|
97
98
|
artifact == o.artifact &&
|
98
|
-
file == o.file
|
99
|
-
repository == o.repository
|
99
|
+
file == o.file
|
100
100
|
end
|
101
101
|
|
102
102
|
# @see the `==` method
|
@@ -108,7 +108,7 @@ module PulpGemClient
|
|
108
108
|
# Calculates hash code according to all attributes.
|
109
109
|
# @return [Integer] Hash code
|
110
110
|
def hash
|
111
|
-
[artifact, file
|
111
|
+
[repository, artifact, file].hash
|
112
112
|
end
|
113
113
|
|
114
114
|
# Builds the object from hash
|
@@ -32,6 +32,9 @@ module PulpGemClient
|
|
32
32
|
# Version of the gem
|
33
33
|
attr_accessor :version
|
34
34
|
|
35
|
+
# Platform of the gem
|
36
|
+
attr_accessor :platform
|
37
|
+
|
35
38
|
# Whether the gem is a prerelease
|
36
39
|
attr_accessor :prerelease
|
37
40
|
|
@@ -52,6 +55,7 @@ module PulpGemClient
|
|
52
55
|
:'checksum' => :'checksum',
|
53
56
|
:'name' => :'name',
|
54
57
|
:'version' => :'version',
|
58
|
+
:'platform' => :'platform',
|
55
59
|
:'prerelease' => :'prerelease',
|
56
60
|
:'dependencies' => :'dependencies',
|
57
61
|
:'required_ruby_version' => :'required_ruby_version',
|
@@ -68,6 +72,7 @@ module PulpGemClient
|
|
68
72
|
:'checksum' => :'String',
|
69
73
|
:'name' => :'String',
|
70
74
|
:'version' => :'String',
|
75
|
+
:'platform' => :'String',
|
71
76
|
:'prerelease' => :'Boolean',
|
72
77
|
:'dependencies' => :'Hash<String, String>',
|
73
78
|
:'required_ruby_version' => :'String',
|
@@ -120,6 +125,10 @@ module PulpGemClient
|
|
120
125
|
self.version = attributes[:'version']
|
121
126
|
end
|
122
127
|
|
128
|
+
if attributes.key?(:'platform')
|
129
|
+
self.platform = attributes[:'platform']
|
130
|
+
end
|
131
|
+
|
123
132
|
if attributes.key?(:'prerelease')
|
124
133
|
self.prerelease = attributes[:'prerelease']
|
125
134
|
end
|
@@ -168,6 +177,7 @@ module PulpGemClient
|
|
168
177
|
checksum == o.checksum &&
|
169
178
|
name == o.name &&
|
170
179
|
version == o.version &&
|
180
|
+
platform == o.platform &&
|
171
181
|
prerelease == o.prerelease &&
|
172
182
|
dependencies == o.dependencies &&
|
173
183
|
required_ruby_version == o.required_ruby_version &&
|
@@ -183,7 +193,7 @@ module PulpGemClient
|
|
183
193
|
# Calculates hash code according to all attributes.
|
184
194
|
# @return [Integer] Hash code
|
185
195
|
def hash
|
186
|
-
[pulp_href, pulp_created, artifacts, checksum, name, version, prerelease, dependencies, required_ruby_version, required_rubygems_version].hash
|
196
|
+
[pulp_href, pulp_created, artifacts, checksum, name, version, platform, prerelease, dependencies, required_ruby_version, required_rubygems_version].hash
|
187
197
|
end
|
188
198
|
|
189
199
|
# Builds the object from hash
|
@@ -36,9 +36,9 @@ describe 'ContentGemApi' do
|
|
36
36
|
# Create a gem content
|
37
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
39
40
|
# @option opts [String] :artifact Artifact file representing the physical content
|
40
41
|
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
41
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
42
42
|
# @return [AsyncOperationResponse]
|
43
43
|
describe 'create test' do
|
44
44
|
it 'should work' do
|
@@ -54,7 +54,7 @@ describe 'ContentGemApi' do
|
|
54
54
|
# @option opts [Integer] :limit Number of results to return per page.
|
55
55
|
# @option opts [String] :name Filter results where name matches value
|
56
56
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
57
|
-
# @option opts [Array<String>] :ordering 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) * `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)
|
57
|
+
# @option opts [Array<String>] :ordering 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)
|
58
58
|
# @option opts [Boolean] :prerelease Filter results where prerelease matches value
|
59
59
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
60
60
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -68,6 +68,12 @@ describe 'GemGemContentResponse' do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
+
describe 'test attribute "platform"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
71
77
|
describe 'test attribute "prerelease"' do
|
72
78
|
it 'should work' do
|
73
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -32,19 +32,19 @@ describe 'GemGemContent' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpGemClient::GemGemContent)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "repository"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "artifact"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "file"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_gem_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -212,39 +212,39 @@ signing_key:
|
|
212
212
|
specification_version: 4
|
213
213
|
summary: Pulp 3 API Ruby Gem
|
214
214
|
test_files:
|
215
|
+
- spec/api/repositories_gem_versions_api_spec.rb
|
216
|
+
- spec/api/remotes_gem_api_spec.rb
|
215
217
|
- spec/api/distributions_gem_api_spec.rb
|
216
218
|
- spec/api/repositories_gem_api_spec.rb
|
217
|
-
- spec/api/content_gem_api_spec.rb
|
218
|
-
- spec/api/remotes_gem_api_spec.rb
|
219
219
|
- spec/api/publications_gem_api_spec.rb
|
220
|
-
- spec/api/
|
220
|
+
- spec/api/content_gem_api_spec.rb
|
221
221
|
- spec/api_client_spec.rb
|
222
222
|
- spec/configuration_spec.rb
|
223
|
-
- spec/models/gem_gem_content_spec.rb
|
224
223
|
- spec/models/patchedgem_gem_distribution_spec.rb
|
225
|
-
- spec/models/
|
226
|
-
- spec/models/
|
227
|
-
- spec/models/
|
228
|
-
- spec/models/gem_gem_remote_spec.rb
|
229
|
-
- spec/models/paginatedgem_gem_repository_response_list_spec.rb
|
224
|
+
- spec/models/repair_spec.rb
|
225
|
+
- spec/models/gem_gem_distribution_response_spec.rb
|
226
|
+
- spec/models/repository_add_remove_content_spec.rb
|
230
227
|
- spec/models/repository_sync_url_spec.rb
|
231
|
-
- spec/models/gem_gem_repository_spec.rb
|
232
|
-
- spec/models/gem_gem_remote_response_hidden_fields_spec.rb
|
233
228
|
- spec/models/gem_gem_remote_response_spec.rb
|
229
|
+
- spec/models/policy_enum_spec.rb
|
230
|
+
- spec/models/gem_gem_content_response_spec.rb
|
231
|
+
- spec/models/repository_version_response_spec.rb
|
234
232
|
- spec/models/paginatedgem_gem_remote_response_list_spec.rb
|
233
|
+
- spec/models/paginatedgem_gem_content_response_list_spec.rb
|
234
|
+
- spec/models/gem_gem_repository_spec.rb
|
235
235
|
- spec/models/patchedgem_gem_remote_spec.rb
|
236
236
|
- spec/models/paginatedgem_gem_distribution_response_list_spec.rb
|
237
|
-
- spec/models/
|
238
|
-
- spec/models/
|
239
|
-
- spec/models/gem_gem_publication_response_spec.rb
|
237
|
+
- spec/models/paginatedgem_gem_repository_response_list_spec.rb
|
238
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
240
239
|
- spec/models/content_summary_response_spec.rb
|
241
|
-
- spec/models/policy_enum_spec.rb
|
242
240
|
- spec/models/gem_gem_publication_spec.rb
|
243
|
-
- spec/models/
|
244
|
-
- spec/models/
|
245
|
-
- spec/models/
|
246
|
-
- spec/models/
|
241
|
+
- spec/models/gem_gem_publication_response_spec.rb
|
242
|
+
- spec/models/paginatedgem_gem_publication_response_list_spec.rb
|
243
|
+
- spec/models/gem_gem_remote_response_hidden_fields_spec.rb
|
244
|
+
- spec/models/gem_gem_remote_spec.rb
|
245
|
+
- spec/models/gem_gem_content_spec.rb
|
246
|
+
- spec/models/async_operation_response_spec.rb
|
247
|
+
- spec/models/gem_gem_distribution_spec.rb
|
247
248
|
- spec/models/gem_gem_repository_response_spec.rb
|
248
|
-
- spec/models/
|
249
|
-
- spec/models/repository_add_remove_content_spec.rb
|
249
|
+
- spec/models/patchedgem_gem_repository_spec.rb
|
250
250
|
- spec/spec_helper.rb
|