pulp_rpm_client 3.22.2 → 3.22.3
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 +4 -4
- data/docs/ContentAdvisoriesApi.md +3 -3
- data/docs/ContentPackagesApi.md +2 -2
- data/docs/RpmModulemd.md +3 -1
- data/docs/RpmModulemdDefaults.md +3 -1
- data/docs/RpmModulemdObsolete.md +3 -1
- data/docs/RpmPackage.md +3 -3
- data/docs/RpmUpdateRecord.md +3 -3
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_packages_api.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +11 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +11 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +11 -1
- data/lib/pulp_rpm_client/models/rpm_package.rb +11 -11
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +14 -14
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/content_advisories_api_spec.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +1 -1
- data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
- data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
- data/spec/models/rpm_modulemd_spec.rb +6 -0
- data/spec/models/rpm_package_spec.rb +4 -4
- data/spec/models/rpm_update_record_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b508440050bb1680dc01c1f63bae7ace8178c032939d5393e96e751c9bc378d3
|
4
|
+
data.tar.gz: 9f176115e7297f6dc294b9b6aea5355bf568942fe2a2d0550916ae864d3e73f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 129aca6bf77179c0b12ebbd64daf40e3c43e1b3aa93cfcd763f5ad12c592a81eb01ce9e32bae243d19fd833014da4e043103e9ae4623be85f3ab6fb9a793d86f
|
7
|
+
data.tar.gz: c909bbdce70b6131d44616643287fd731e70338660c4d68a115d4d82b051d01653819d000996cf203228078237d3ba992f6d0a92cb370e0aa1eb6d51c8018245
|
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: 3.22.
|
10
|
+
- Package version: 3.22.3
|
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_rpm_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_rpm_client-3.22.
|
27
|
+
gem install ./pulp_rpm_client-3.22.3.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_rpm_client-3.22.
|
30
|
+
(for development, run `gem install --dev ./pulp_rpm_client-3.22.3.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_rpm_client', '~> 3.22.
|
36
|
+
gem 'pulp_rpm_client', '~> 3.22.3'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -32,8 +32,8 @@ end
|
|
32
32
|
|
33
33
|
api_instance = PulpRpmClient::ContentAdvisoriesApi.new
|
34
34
|
opts = {
|
35
|
-
|
36
|
-
|
35
|
+
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
36
|
+
file: File.new('/path/to/file') # File | An uploaded file that may be turned into the artifact of the content unit.
|
37
37
|
}
|
38
38
|
|
39
39
|
begin
|
@@ -50,8 +50,8 @@ end
|
|
50
50
|
|
51
51
|
Name | Type | Description | Notes
|
52
52
|
------------- | ------------- | ------------- | -------------
|
53
|
-
**file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
54
53
|
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
54
|
+
**file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
55
55
|
|
56
56
|
### Return type
|
57
57
|
|
data/docs/ContentPackagesApi.md
CHANGED
@@ -32,10 +32,10 @@ end
|
|
32
32
|
|
33
33
|
api_instance = PulpRpmClient::ContentPackagesApi.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
37
|
relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path
|
37
38
|
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
|
38
|
-
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
39
39
|
upload: 'upload_example' # String | An uncommitted upload that may be turned into the artifact of the content unit.
|
40
40
|
}
|
41
41
|
|
@@ -53,10 +53,10 @@ end
|
|
53
53
|
|
54
54
|
Name | Type | Description | Notes
|
55
55
|
------------- | ------------- | ------------- | -------------
|
56
|
+
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
56
57
|
**artifact** | **String**| Artifact file representing the physical content | [optional]
|
57
58
|
**relative_path** | **String**| Path where the artifact is located relative to distributions base_path | [optional]
|
58
59
|
**file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
59
|
-
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
60
60
|
**upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
61
61
|
|
62
62
|
### Return type
|
data/docs/RpmModulemd.md
CHANGED
@@ -4,6 +4,7 @@
|
|
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
|
**name** | **String** | Modulemd name. |
|
8
9
|
**stream** | **String** | Stream name. |
|
9
10
|
**version** | **String** | Modulemd version. |
|
@@ -22,7 +23,8 @@ Name | Type | Description | Notes
|
|
22
23
|
```ruby
|
23
24
|
require 'PulpRpmClient'
|
24
25
|
|
25
|
-
instance = PulpRpmClient::RpmModulemd.new(
|
26
|
+
instance = PulpRpmClient::RpmModulemd.new(repository: null,
|
27
|
+
name: null,
|
26
28
|
stream: null,
|
27
29
|
version: null,
|
28
30
|
static_context: null,
|
data/docs/RpmModulemdDefaults.md
CHANGED
@@ -4,6 +4,7 @@
|
|
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
|
**_module** | **String** | Modulemd name. |
|
8
9
|
**stream** | **String** | Modulemd default stream. |
|
9
10
|
**profiles** | [**Object**](.md) | Default profiles for modulemd streams. |
|
@@ -14,7 +15,8 @@ Name | Type | Description | Notes
|
|
14
15
|
```ruby
|
15
16
|
require 'PulpRpmClient'
|
16
17
|
|
17
|
-
instance = PulpRpmClient::RpmModulemdDefaults.new(
|
18
|
+
instance = PulpRpmClient::RpmModulemdDefaults.new(repository: null,
|
19
|
+
_module: null,
|
18
20
|
stream: null,
|
19
21
|
profiles: null,
|
20
22
|
snippet: null)
|
data/docs/RpmModulemdObsolete.md
CHANGED
@@ -4,6 +4,7 @@
|
|
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
|
**modified** | **String** | Obsolete modified time. |
|
8
9
|
**module_name** | **String** | Modulemd name. |
|
9
10
|
**module_stream** | **String** | Modulemd's stream. |
|
@@ -20,7 +21,8 @@ Name | Type | Description | Notes
|
|
20
21
|
```ruby
|
21
22
|
require 'PulpRpmClient'
|
22
23
|
|
23
|
-
instance = PulpRpmClient::RpmModulemdObsolete.new(
|
24
|
+
instance = PulpRpmClient::RpmModulemdObsolete.new(repository: null,
|
25
|
+
modified: null,
|
24
26
|
module_name: null,
|
25
27
|
module_stream: null,
|
26
28
|
message: null,
|
data/docs/RpmPackage.md
CHANGED
@@ -4,10 +4,10 @@
|
|
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
|
**relative_path** | **String** | Path where the artifact is located relative to distributions base_path | [optional]
|
9
10
|
**file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
10
|
-
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
11
11
|
**upload** | **String** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
12
12
|
|
13
13
|
## Code Sample
|
@@ -15,10 +15,10 @@ Name | Type | Description | Notes
|
|
15
15
|
```ruby
|
16
16
|
require 'PulpRpmClient'
|
17
17
|
|
18
|
-
instance = PulpRpmClient::RpmPackage.new(
|
18
|
+
instance = PulpRpmClient::RpmPackage.new(repository: null,
|
19
|
+
artifact: null,
|
19
20
|
relative_path: null,
|
20
21
|
file: null,
|
21
|
-
repository: null,
|
22
22
|
upload: null)
|
23
23
|
```
|
24
24
|
|
data/docs/RpmUpdateRecord.md
CHANGED
@@ -4,16 +4,16 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
8
7
|
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
8
|
+
**file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
9
9
|
|
10
10
|
## Code Sample
|
11
11
|
|
12
12
|
```ruby
|
13
13
|
require 'PulpRpmClient'
|
14
14
|
|
15
|
-
instance = PulpRpmClient::RpmUpdateRecord.new(
|
16
|
-
|
15
|
+
instance = PulpRpmClient::RpmUpdateRecord.new(repository: null,
|
16
|
+
file: null)
|
17
17
|
```
|
18
18
|
|
19
19
|
|
@@ -22,8 +22,8 @@ module PulpRpmClient
|
|
22
22
|
# Create an update record
|
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 [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
26
25
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
26
|
+
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
27
27
|
# @return [AsyncOperationResponse]
|
28
28
|
def create(opts = {})
|
29
29
|
data, _status_code, _headers = create_with_http_info(opts)
|
@@ -33,8 +33,8 @@ module PulpRpmClient
|
|
33
33
|
# Create an update record
|
34
34
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
37
36
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
37
|
+
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
38
38
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
39
39
|
def create_with_http_info(opts = {})
|
40
40
|
if @api_client.config.debugging
|
@@ -55,8 +55,8 @@ module PulpRpmClient
|
|
55
55
|
|
56
56
|
# form parameters
|
57
57
|
form_params = opts[:form_params] || {}
|
58
|
-
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
59
58
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
59
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
60
60
|
|
61
61
|
# http body (model)
|
62
62
|
post_body = opts[:body]
|
@@ -22,10 +22,10 @@ module PulpRpmClient
|
|
22
22
|
# Create a package
|
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 [String] :relative_path Path where the artifact is located relative to distributions base_path
|
27
28
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
28
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
29
29
|
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
30
30
|
# @return [AsyncOperationResponse]
|
31
31
|
def create(opts = {})
|
@@ -36,10 +36,10 @@ module PulpRpmClient
|
|
36
36
|
# Create a package
|
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 [String] :relative_path Path where the artifact is located relative to distributions base_path
|
41
42
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
42
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
43
|
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
44
44
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
45
45
|
def create_with_http_info(opts = {})
|
@@ -65,10 +65,10 @@ module PulpRpmClient
|
|
65
65
|
|
66
66
|
# form parameters
|
67
67
|
form_params = opts[:form_params] || {}
|
68
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
68
69
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
69
70
|
form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
70
71
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
71
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
72
72
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
73
73
|
|
74
74
|
# http body (model)
|
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module PulpRpmClient
|
16
16
|
# Modulemd serializer.
|
17
17
|
class RpmModulemd
|
18
|
+
# A URI of a repository the new content unit should be associated with.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
18
21
|
# Modulemd name.
|
19
22
|
attr_accessor :name
|
20
23
|
|
@@ -54,6 +57,7 @@ module PulpRpmClient
|
|
54
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
58
|
def self.attribute_map
|
56
59
|
{
|
60
|
+
:'repository' => :'repository',
|
57
61
|
:'name' => :'name',
|
58
62
|
:'stream' => :'stream',
|
59
63
|
:'version' => :'version',
|
@@ -72,6 +76,7 @@ module PulpRpmClient
|
|
72
76
|
# Attribute type mapping.
|
73
77
|
def self.openapi_types
|
74
78
|
{
|
79
|
+
:'repository' => :'String',
|
75
80
|
:'name' => :'String',
|
76
81
|
:'stream' => :'String',
|
77
82
|
:'version' => :'String',
|
@@ -111,6 +116,10 @@ module PulpRpmClient
|
|
111
116
|
h[k.to_sym] = v
|
112
117
|
}
|
113
118
|
|
119
|
+
if attributes.key?(:'repository')
|
120
|
+
self.repository = attributes[:'repository']
|
121
|
+
end
|
122
|
+
|
114
123
|
if attributes.key?(:'name')
|
115
124
|
self.name = attributes[:'name']
|
116
125
|
end
|
@@ -348,6 +357,7 @@ module PulpRpmClient
|
|
348
357
|
def ==(o)
|
349
358
|
return true if self.equal?(o)
|
350
359
|
self.class == o.class &&
|
360
|
+
repository == o.repository &&
|
351
361
|
name == o.name &&
|
352
362
|
stream == o.stream &&
|
353
363
|
version == o.version &&
|
@@ -371,7 +381,7 @@ module PulpRpmClient
|
|
371
381
|
# Calculates hash code according to all attributes.
|
372
382
|
# @return [Integer] Hash code
|
373
383
|
def hash
|
374
|
-
[name, stream, version, static_context, context, arch, artifacts, dependencies, packages, snippet, profiles, description].hash
|
384
|
+
[repository, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, snippet, profiles, description].hash
|
375
385
|
end
|
376
386
|
|
377
387
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module PulpRpmClient
|
16
16
|
# ModulemdDefaults serializer.
|
17
17
|
class RpmModulemdDefaults
|
18
|
+
# A URI of a repository the new content unit should be associated with.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
18
21
|
# Modulemd name.
|
19
22
|
attr_accessor :_module
|
20
23
|
|
@@ -30,6 +33,7 @@ module PulpRpmClient
|
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
34
|
def self.attribute_map
|
32
35
|
{
|
36
|
+
:'repository' => :'repository',
|
33
37
|
:'_module' => :'module',
|
34
38
|
:'stream' => :'stream',
|
35
39
|
:'profiles' => :'profiles',
|
@@ -40,6 +44,7 @@ module PulpRpmClient
|
|
40
44
|
# Attribute type mapping.
|
41
45
|
def self.openapi_types
|
42
46
|
{
|
47
|
+
:'repository' => :'String',
|
43
48
|
:'_module' => :'String',
|
44
49
|
:'stream' => :'String',
|
45
50
|
:'profiles' => :'Object',
|
@@ -68,6 +73,10 @@ module PulpRpmClient
|
|
68
73
|
h[k.to_sym] = v
|
69
74
|
}
|
70
75
|
|
76
|
+
if attributes.key?(:'repository')
|
77
|
+
self.repository = attributes[:'repository']
|
78
|
+
end
|
79
|
+
|
71
80
|
if attributes.key?(:'_module')
|
72
81
|
self._module = attributes[:'_module']
|
73
82
|
end
|
@@ -180,6 +189,7 @@ module PulpRpmClient
|
|
180
189
|
def ==(o)
|
181
190
|
return true if self.equal?(o)
|
182
191
|
self.class == o.class &&
|
192
|
+
repository == o.repository &&
|
183
193
|
_module == o._module &&
|
184
194
|
stream == o.stream &&
|
185
195
|
profiles == o.profiles &&
|
@@ -195,7 +205,7 @@ module PulpRpmClient
|
|
195
205
|
# Calculates hash code according to all attributes.
|
196
206
|
# @return [Integer] Hash code
|
197
207
|
def hash
|
198
|
-
[_module, stream, profiles, snippet].hash
|
208
|
+
[repository, _module, stream, profiles, snippet].hash
|
199
209
|
end
|
200
210
|
|
201
211
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module PulpRpmClient
|
16
16
|
# ModulemdObsolete serializer.
|
17
17
|
class RpmModulemdObsolete
|
18
|
+
# A URI of a repository the new content unit should be associated with.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
18
21
|
# Obsolete modified time.
|
19
22
|
attr_accessor :modified
|
20
23
|
|
@@ -48,6 +51,7 @@ module PulpRpmClient
|
|
48
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
52
|
def self.attribute_map
|
50
53
|
{
|
54
|
+
:'repository' => :'repository',
|
51
55
|
:'modified' => :'modified',
|
52
56
|
:'module_name' => :'module_name',
|
53
57
|
:'module_stream' => :'module_stream',
|
@@ -64,6 +68,7 @@ module PulpRpmClient
|
|
64
68
|
# Attribute type mapping.
|
65
69
|
def self.openapi_types
|
66
70
|
{
|
71
|
+
:'repository' => :'String',
|
67
72
|
:'modified' => :'String',
|
68
73
|
:'module_name' => :'String',
|
69
74
|
:'module_stream' => :'String',
|
@@ -103,6 +108,10 @@ module PulpRpmClient
|
|
103
108
|
h[k.to_sym] = v
|
104
109
|
}
|
105
110
|
|
111
|
+
if attributes.key?(:'repository')
|
112
|
+
self.repository = attributes[:'repository']
|
113
|
+
end
|
114
|
+
|
106
115
|
if attributes.key?(:'modified')
|
107
116
|
self.modified = attributes[:'modified']
|
108
117
|
end
|
@@ -357,6 +366,7 @@ module PulpRpmClient
|
|
357
366
|
def ==(o)
|
358
367
|
return true if self.equal?(o)
|
359
368
|
self.class == o.class &&
|
369
|
+
repository == o.repository &&
|
360
370
|
modified == o.modified &&
|
361
371
|
module_name == o.module_name &&
|
362
372
|
module_stream == o.module_stream &&
|
@@ -378,7 +388,7 @@ module PulpRpmClient
|
|
378
388
|
# Calculates hash code according to all attributes.
|
379
389
|
# @return [Integer] Hash code
|
380
390
|
def hash
|
381
|
-
[modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
|
391
|
+
[repository, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
|
382
392
|
end
|
383
393
|
|
384
394
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module PulpRpmClient
|
16
16
|
# A Serializer for Package. Add serializers for the new fields defined in Package and add those fields to the Meta class keeping fields from the parent class as well. Provide help_text.
|
17
17
|
class RpmPackage
|
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
|
|
@@ -24,19 +27,16 @@ module PulpRpmClient
|
|
24
27
|
# An uploaded file that may be turned into the artifact of the content unit.
|
25
28
|
attr_accessor :file
|
26
29
|
|
27
|
-
# A URI of a repository the new content unit should be associated with.
|
28
|
-
attr_accessor :repository
|
29
|
-
|
30
30
|
# An uncommitted upload that may be turned into the artifact of the content unit.
|
31
31
|
attr_accessor :upload
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
+
:'repository' => :'repository',
|
36
37
|
:'artifact' => :'artifact',
|
37
38
|
:'relative_path' => :'relative_path',
|
38
39
|
:'file' => :'file',
|
39
|
-
:'repository' => :'repository',
|
40
40
|
:'upload' => :'upload'
|
41
41
|
}
|
42
42
|
end
|
@@ -44,10 +44,10 @@ module PulpRpmClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
+
:'repository' => :'String',
|
47
48
|
:'artifact' => :'String',
|
48
49
|
:'relative_path' => :'String',
|
49
50
|
:'file' => :'File',
|
50
|
-
:'repository' => :'String',
|
51
51
|
:'upload' => :'String'
|
52
52
|
}
|
53
53
|
end
|
@@ -73,6 +73,10 @@ module PulpRpmClient
|
|
73
73
|
h[k.to_sym] = v
|
74
74
|
}
|
75
75
|
|
76
|
+
if attributes.key?(:'repository')
|
77
|
+
self.repository = attributes[:'repository']
|
78
|
+
end
|
79
|
+
|
76
80
|
if attributes.key?(:'artifact')
|
77
81
|
self.artifact = attributes[:'artifact']
|
78
82
|
end
|
@@ -85,10 +89,6 @@ module PulpRpmClient
|
|
85
89
|
self.file = attributes[:'file']
|
86
90
|
end
|
87
91
|
|
88
|
-
if attributes.key?(:'repository')
|
89
|
-
self.repository = attributes[:'repository']
|
90
|
-
end
|
91
|
-
|
92
92
|
if attributes.key?(:'upload')
|
93
93
|
self.upload = attributes[:'upload']
|
94
94
|
end
|
@@ -127,10 +127,10 @@ module PulpRpmClient
|
|
127
127
|
def ==(o)
|
128
128
|
return true if self.equal?(o)
|
129
129
|
self.class == o.class &&
|
130
|
+
repository == o.repository &&
|
130
131
|
artifact == o.artifact &&
|
131
132
|
relative_path == o.relative_path &&
|
132
133
|
file == o.file &&
|
133
|
-
repository == o.repository &&
|
134
134
|
upload == o.upload
|
135
135
|
end
|
136
136
|
|
@@ -143,7 +143,7 @@ module PulpRpmClient
|
|
143
143
|
# Calculates hash code according to all attributes.
|
144
144
|
# @return [Integer] Hash code
|
145
145
|
def hash
|
146
|
-
[artifact, relative_path, file,
|
146
|
+
[repository, artifact, relative_path, file, upload].hash
|
147
147
|
end
|
148
148
|
|
149
149
|
# Builds the object from hash
|
@@ -15,25 +15,25 @@ require 'date'
|
|
15
15
|
module PulpRpmClient
|
16
16
|
# A Serializer for UpdateRecord.
|
17
17
|
class RpmUpdateRecord
|
18
|
-
# An uploaded file that may be turned into the artifact of the content unit.
|
19
|
-
attr_accessor :file
|
20
|
-
|
21
18
|
# A URI of a repository the new content unit should be associated with.
|
22
19
|
attr_accessor :repository
|
23
20
|
|
21
|
+
# An uploaded file that may be turned into the artifact of the content unit.
|
22
|
+
attr_accessor :file
|
23
|
+
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
25
|
def self.attribute_map
|
26
26
|
{
|
27
|
-
:'
|
28
|
-
:'
|
27
|
+
:'repository' => :'repository',
|
28
|
+
:'file' => :'file'
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
|
-
:'
|
36
|
-
:'
|
35
|
+
:'repository' => :'String',
|
36
|
+
:'file' => :'File'
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
@@ -58,13 +58,13 @@ module PulpRpmClient
|
|
58
58
|
h[k.to_sym] = v
|
59
59
|
}
|
60
60
|
|
61
|
-
if attributes.key?(:'file')
|
62
|
-
self.file = attributes[:'file']
|
63
|
-
end
|
64
|
-
|
65
61
|
if attributes.key?(:'repository')
|
66
62
|
self.repository = attributes[:'repository']
|
67
63
|
end
|
64
|
+
|
65
|
+
if attributes.key?(:'file')
|
66
|
+
self.file = attributes[:'file']
|
67
|
+
end
|
68
68
|
end
|
69
69
|
|
70
70
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -85,8 +85,8 @@ module PulpRpmClient
|
|
85
85
|
def ==(o)
|
86
86
|
return true if self.equal?(o)
|
87
87
|
self.class == o.class &&
|
88
|
-
|
89
|
-
|
88
|
+
repository == o.repository &&
|
89
|
+
file == o.file
|
90
90
|
end
|
91
91
|
|
92
92
|
# @see the `==` method
|
@@ -98,7 +98,7 @@ module PulpRpmClient
|
|
98
98
|
# Calculates hash code according to all attributes.
|
99
99
|
# @return [Integer] Hash code
|
100
100
|
def hash
|
101
|
-
[
|
101
|
+
[repository, file].hash
|
102
102
|
end
|
103
103
|
|
104
104
|
# Builds the object from hash
|
@@ -36,8 +36,8 @@ describe 'ContentAdvisoriesApi' do
|
|
36
36
|
# Create an update record
|
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 [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
40
39
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
40
|
+
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
41
41
|
# @return [AsyncOperationResponse]
|
42
42
|
describe 'create test' do
|
43
43
|
it 'should work' do
|
@@ -36,10 +36,10 @@ describe 'ContentPackagesApi' do
|
|
36
36
|
# Create a package
|
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 [String] :relative_path Path where the artifact is located relative to distributions base_path
|
41
42
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
42
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
43
|
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
44
44
|
# @return [AsyncOperationResponse]
|
45
45
|
describe 'create test' do
|
@@ -32,6 +32,12 @@ describe 'RpmModulemdDefaults' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpRpmClient::RpmModulemdDefaults)
|
33
33
|
end
|
34
34
|
end
|
35
|
+
describe 'test attribute "repository"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
35
41
|
describe 'test attribute "_module"' do
|
36
42
|
it 'should work' do
|
37
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -32,6 +32,12 @@ describe 'RpmModulemdObsolete' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpRpmClient::RpmModulemdObsolete)
|
33
33
|
end
|
34
34
|
end
|
35
|
+
describe 'test attribute "repository"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
35
41
|
describe 'test attribute "modified"' do
|
36
42
|
it 'should work' do
|
37
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -32,6 +32,12 @@ describe 'RpmModulemd' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpRpmClient::RpmModulemd)
|
33
33
|
end
|
34
34
|
end
|
35
|
+
describe 'test attribute "repository"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
35
41
|
describe 'test attribute "name"' do
|
36
42
|
it 'should work' do
|
37
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -32,25 +32,25 @@ describe 'RpmPackage' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpRpmClient::RpmPackage)
|
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 "relative_path"' 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
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "file"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -32,13 +32,13 @@ describe 'RpmUpdateRecord' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpRpmClient::RpmUpdateRecord)
|
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 "file"' 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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_rpm_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.22.
|
4
|
+
version: 3.22.3
|
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-07-
|
11
|
+
date: 2023-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|