pulp_rpm_client 3.0.0b3.dev.1560786621 → 3.0.0b4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +32 -32
  4. data/docs/ContentAdvisoriesApi.md +196 -0
  5. data/docs/ContentPackagesApi.md +208 -0
  6. data/docs/{DistributionsApi.md → DistributionsRpmApi.md} +37 -37
  7. data/docs/Package.md +2 -2
  8. data/docs/{PublicationsApi.md → PublicationsRpmApi.md} +25 -25
  9. data/docs/{RemotesApi.md → RemotesRpmApi.md} +43 -43
  10. data/docs/{RpmApi.md → RpmCopyApi.md} +4 -62
  11. data/docs/RpmRemote.md +3 -5
  12. data/docs/RpmUploadApi.md +66 -0
  13. data/lib/pulp_rpm_client.rb +7 -5
  14. data/lib/pulp_rpm_client/api/content_advisories_api.rb +243 -0
  15. data/lib/pulp_rpm_client/api/content_packages_api.rb +261 -0
  16. data/lib/pulp_rpm_client/api/{distributions_api.rb → distributions_rpm_api.rb} +38 -38
  17. data/lib/pulp_rpm_client/api/{publications_api.rb → publications_rpm_api.rb} +24 -24
  18. data/lib/pulp_rpm_client/api/{remotes_api.rb → remotes_rpm_api.rb} +45 -45
  19. data/lib/pulp_rpm_client/api/{rpm_api.rb → rpm_copy_api.rb} +4 -72
  20. data/lib/pulp_rpm_client/api/rpm_upload_api.rb +90 -0
  21. data/lib/pulp_rpm_client/models/package.rb +10 -10
  22. data/lib/pulp_rpm_client/models/rpm_remote.rb +4 -14
  23. data/lib/pulp_rpm_client/version.rb +1 -1
  24. data/spec/api/content_advisories_api_spec.rb +83 -0
  25. data/spec/api/{content_api_spec.rb → content_packages_api_spec.rb} +12 -60
  26. data/spec/api/{distributions_api_spec.rb → distributions_rpm_api_spec.rb} +18 -18
  27. data/spec/api/{publications_api_spec.rb → publications_rpm_api_spec.rb} +14 -14
  28. data/spec/api/{remotes_api_spec.rb → remotes_rpm_api_spec.rb} +20 -20
  29. data/spec/api/{rpm_api_spec.rb → rpm_copy_api_spec.rb} +6 -19
  30. data/spec/api/rpm_upload_api_spec.rb +48 -0
  31. data/spec/models/package_spec.rb +2 -2
  32. data/spec/models/rpm_remote_spec.rb +0 -6
  33. metadata +30 -22
  34. data/docs/ContentApi.md +0 -396
  35. data/lib/pulp_rpm_client/api/content_api.rb +0 -482
@@ -13,50 +13,50 @@ OpenAPI Generator version: 4.0.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for PulpRpmClient::PublicationsApi
16
+ # Unit tests for PulpRpmClient::PublicationsRpmApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'PublicationsApi' do
19
+ describe 'PublicationsRpmApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = PulpRpmClient::PublicationsApi.new
22
+ @api_instance = PulpRpmClient::PublicationsRpmApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of PublicationsApi' do
30
- it 'should create an instance of PublicationsApi' do
31
- expect(@api_instance).to be_instance_of(PulpRpmClient::PublicationsApi)
29
+ describe 'test an instance of PublicationsRpmApi' do
30
+ it 'should create an instance of PublicationsRpmApi' do
31
+ expect(@api_instance).to be_instance_of(PulpRpmClient::PublicationsRpmApi)
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for publications_rpm_rpm_create
35
+ # unit tests for create
36
36
  # Create a rpm publication
37
37
  # Trigger an asynchronous task to create a new RPM content publication.
38
38
  # @param data
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [AsyncOperationResponse]
41
- describe 'publications_rpm_rpm_create test' do
41
+ describe 'create test' 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
- # unit tests for publications_rpm_rpm_delete
47
+ # unit tests for delete
48
48
  # Delete a rpm publication
49
49
  # ViewSet for Rpm Publications.
50
50
  # @param rpm_publication_href URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
51
51
  # @param [Hash] opts the optional parameters
52
52
  # @return [nil]
53
- describe 'publications_rpm_rpm_delete test' do
53
+ describe 'delete test' 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
57
57
  end
58
58
 
59
- # unit tests for publications_rpm_rpm_list
59
+ # unit tests for list
60
60
  # List rpm publications
61
61
  # ViewSet for Rpm Publications.
62
62
  # @param [Hash] opts the optional parameters
@@ -64,19 +64,19 @@ describe 'PublicationsApi' do
64
64
  # @option opts [Integer] :page A page number within the paginated result set.
65
65
  # @option opts [Integer] :page_size Number of results to return per page.
66
66
  # @return [InlineResponse2003]
67
- describe 'publications_rpm_rpm_list test' do
67
+ describe 'list test' do
68
68
  it 'should work' do
69
69
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
70
  end
71
71
  end
72
72
 
73
- # unit tests for publications_rpm_rpm_read
73
+ # unit tests for read
74
74
  # Inspect a rpm publication
75
75
  # ViewSet for Rpm Publications.
76
76
  # @param rpm_publication_href URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
77
77
  # @param [Hash] opts the optional parameters
78
78
  # @return [RpmPublication]
79
- describe 'publications_rpm_rpm_read test' do
79
+ describe 'read test' do
80
80
  it 'should work' do
81
81
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
82
  end
@@ -13,50 +13,50 @@ OpenAPI Generator version: 4.0.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for PulpRpmClient::RemotesApi
16
+ # Unit tests for PulpRpmClient::RemotesRpmApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'RemotesApi' do
19
+ describe 'RemotesRpmApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = PulpRpmClient::RemotesApi.new
22
+ @api_instance = PulpRpmClient::RemotesRpmApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of RemotesApi' do
30
- it 'should create an instance of RemotesApi' do
31
- expect(@api_instance).to be_instance_of(PulpRpmClient::RemotesApi)
29
+ describe 'test an instance of RemotesRpmApi' do
30
+ it 'should create an instance of RemotesRpmApi' do
31
+ expect(@api_instance).to be_instance_of(PulpRpmClient::RemotesRpmApi)
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for remotes_rpm_rpm_create
35
+ # unit tests for create
36
36
  # Create a rpm remote
37
37
  # A ViewSet for RpmRemote.
38
38
  # @param data
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [RpmRemote]
41
- describe 'remotes_rpm_rpm_create test' do
41
+ describe 'create test' 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
- # unit tests for remotes_rpm_rpm_delete
47
+ # unit tests for delete
48
48
  # Delete a rpm remote
49
49
  # Trigger an asynchronous delete task
50
50
  # @param rpm_remote_href URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
51
51
  # @param [Hash] opts the optional parameters
52
52
  # @return [AsyncOperationResponse]
53
- describe 'remotes_rpm_rpm_delete test' do
53
+ describe 'delete test' 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
57
57
  end
58
58
 
59
- # unit tests for remotes_rpm_rpm_list
59
+ # unit tests for list
60
60
  # List rpm remotes
61
61
  # A ViewSet for RpmRemote.
62
62
  # @param [Hash] opts the optional parameters
@@ -71,58 +71,58 @@ describe 'RemotesApi' do
71
71
  # @option opts [Integer] :page A page number within the paginated result set.
72
72
  # @option opts [Integer] :page_size Number of results to return per page.
73
73
  # @return [InlineResponse2004]
74
- describe 'remotes_rpm_rpm_list test' do
74
+ describe 'list test' do
75
75
  it 'should work' do
76
76
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
77
  end
78
78
  end
79
79
 
80
- # unit tests for remotes_rpm_rpm_partial_update
80
+ # unit tests for partial_update
81
81
  # Partially update a rpm remote
82
82
  # Trigger an asynchronous partial update task
83
83
  # @param rpm_remote_href URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
84
84
  # @param data
85
85
  # @param [Hash] opts the optional parameters
86
86
  # @return [AsyncOperationResponse]
87
- describe 'remotes_rpm_rpm_partial_update test' do
87
+ describe 'partial_update test' do
88
88
  it 'should work' do
89
89
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
90
  end
91
91
  end
92
92
 
93
- # unit tests for remotes_rpm_rpm_read
93
+ # unit tests for read
94
94
  # Inspect a rpm remote
95
95
  # A ViewSet for RpmRemote.
96
96
  # @param rpm_remote_href URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
97
97
  # @param [Hash] opts the optional parameters
98
98
  # @return [RpmRemote]
99
- describe 'remotes_rpm_rpm_read test' do
99
+ describe 'read test' do
100
100
  it 'should work' do
101
101
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
102
  end
103
103
  end
104
104
 
105
- # unit tests for remotes_rpm_rpm_sync
105
+ # unit tests for sync
106
106
  # Sync from remote
107
107
  # Trigger an asynchronous task to sync RPM content.
108
108
  # @param rpm_remote_href URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
109
109
  # @param data
110
110
  # @param [Hash] opts the optional parameters
111
111
  # @return [AsyncOperationResponse]
112
- describe 'remotes_rpm_rpm_sync test' do
112
+ describe 'sync test' do
113
113
  it 'should work' do
114
114
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
115
115
  end
116
116
  end
117
117
 
118
- # unit tests for remotes_rpm_rpm_update
118
+ # unit tests for update
119
119
  # Update a rpm remote
120
120
  # Trigger an asynchronous update task
121
121
  # @param rpm_remote_href URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
122
122
  # @param data
123
123
  # @param [Hash] opts the optional parameters
124
124
  # @return [AsyncOperationResponse]
125
- describe 'remotes_rpm_rpm_update test' do
125
+ describe 'update test' do
126
126
  it 'should work' do
127
127
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
128
  end
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.0.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for PulpRpmClient::RpmApi
16
+ # Unit tests for PulpRpmClient::RpmCopyApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'RpmApi' do
19
+ describe 'RpmCopyApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = PulpRpmClient::RpmApi.new
22
+ @api_instance = PulpRpmClient::RpmCopyApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of RpmApi' do
30
- it 'should create an instance of RpmApi' do
31
- expect(@api_instance).to be_instance_of(PulpRpmClient::RpmApi)
29
+ describe 'test an instance of RpmCopyApi' do
30
+ it 'should create an instance of RpmCopyApi' do
31
+ expect(@api_instance).to be_instance_of(PulpRpmClient::RpmCopyApi)
32
32
  end
33
33
  end
34
34
 
@@ -47,17 +47,4 @@ describe 'RpmApi' do
47
47
  end
48
48
  end
49
49
 
50
- # unit tests for upload_rpm_package
51
- # Upload a package
52
- # Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
53
- # @param file The rpm file.
54
- # @param [Hash] opts the optional parameters
55
- # @option opts [String] :repository A URI of the repository.
56
- # @return [AsyncOperationResponse]
57
- describe 'upload_rpm_package test' do
58
- it 'should work' do
59
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
- end
61
- end
62
-
63
50
  end
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpRpmClient::RpmUploadApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'RpmUploadApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpRpmClient::RpmUploadApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RpmUploadApi' do
30
+ it 'should create an instance of RpmUploadApi' do
31
+ expect(@api_instance).to be_instance_of(PulpRpmClient::RpmUploadApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for upload_rpm_package
36
+ # Upload a package
37
+ # Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
38
+ # @param file The rpm file.
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :repository A URI of the repository.
41
+ # @return [AsyncOperationResponse]
42
+ describe 'upload_rpm_package test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ end
@@ -38,13 +38,13 @@ describe 'Package' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "_created"' do
41
+ describe 'test attribute "_type"' 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 "_type"' do
47
+ describe 'test attribute "_created"' 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
@@ -62,12 +62,6 @@ describe 'RpmRemote' do
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "validate"' do
66
- it 'should work' do
67
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
- end
69
- end
70
-
71
65
  describe 'test attribute "ssl_ca_certificate"' do
72
66
  it 'should work' do
73
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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.0.0b3.dev.1560786621
4
+ version: 3.0.0b4
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-17 00:00:00.000000000 Z
11
+ date: 2019-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -202,29 +202,33 @@ files:
202
202
  - README.md
203
203
  - Rakefile
204
204
  - docs/AsyncOperationResponse.md
205
- - docs/ContentApi.md
206
- - docs/DistributionsApi.md
205
+ - docs/ContentAdvisoriesApi.md
206
+ - docs/ContentPackagesApi.md
207
+ - docs/DistributionsRpmApi.md
207
208
  - docs/InlineResponse200.md
208
209
  - docs/InlineResponse2001.md
209
210
  - docs/InlineResponse2002.md
210
211
  - docs/InlineResponse2003.md
211
212
  - docs/InlineResponse2004.md
212
213
  - docs/Package.md
213
- - docs/PublicationsApi.md
214
- - docs/RemotesApi.md
214
+ - docs/PublicationsRpmApi.md
215
+ - docs/RemotesRpmApi.md
215
216
  - docs/RepositorySyncURL.md
216
- - docs/RpmApi.md
217
+ - docs/RpmCopyApi.md
217
218
  - docs/RpmDistribution.md
218
219
  - docs/RpmPublication.md
219
220
  - docs/RpmRemote.md
221
+ - docs/RpmUploadApi.md
220
222
  - docs/UpdateRecord.md
221
223
  - git_push.sh
222
224
  - lib/pulp_rpm_client.rb
223
- - lib/pulp_rpm_client/api/content_api.rb
224
- - lib/pulp_rpm_client/api/distributions_api.rb
225
- - lib/pulp_rpm_client/api/publications_api.rb
226
- - lib/pulp_rpm_client/api/remotes_api.rb
227
- - lib/pulp_rpm_client/api/rpm_api.rb
225
+ - lib/pulp_rpm_client/api/content_advisories_api.rb
226
+ - lib/pulp_rpm_client/api/content_packages_api.rb
227
+ - lib/pulp_rpm_client/api/distributions_rpm_api.rb
228
+ - lib/pulp_rpm_client/api/publications_rpm_api.rb
229
+ - lib/pulp_rpm_client/api/remotes_rpm_api.rb
230
+ - lib/pulp_rpm_client/api/rpm_copy_api.rb
231
+ - lib/pulp_rpm_client/api/rpm_upload_api.rb
228
232
  - lib/pulp_rpm_client/api_client.rb
229
233
  - lib/pulp_rpm_client/api_error.rb
230
234
  - lib/pulp_rpm_client/configuration.rb
@@ -242,11 +246,13 @@ files:
242
246
  - lib/pulp_rpm_client/models/update_record.rb
243
247
  - lib/pulp_rpm_client/version.rb
244
248
  - pulp_rpm_client.gemspec
245
- - spec/api/content_api_spec.rb
246
- - spec/api/distributions_api_spec.rb
247
- - spec/api/publications_api_spec.rb
248
- - spec/api/remotes_api_spec.rb
249
- - spec/api/rpm_api_spec.rb
249
+ - spec/api/content_advisories_api_spec.rb
250
+ - spec/api/content_packages_api_spec.rb
251
+ - spec/api/distributions_rpm_api_spec.rb
252
+ - spec/api/publications_rpm_api_spec.rb
253
+ - spec/api/remotes_rpm_api_spec.rb
254
+ - spec/api/rpm_copy_api_spec.rb
255
+ - spec/api/rpm_upload_api_spec.rb
250
256
  - spec/api_client_spec.rb
251
257
  - spec/configuration_spec.rb
252
258
  - spec/models/async_operation_response_spec.rb
@@ -287,11 +293,13 @@ signing_key:
287
293
  specification_version: 4
288
294
  summary: Pulp 3 API Ruby Gem
289
295
  test_files:
290
- - spec/api/publications_api_spec.rb
291
- - spec/api/remotes_api_spec.rb
292
- - spec/api/distributions_api_spec.rb
293
- - spec/api/content_api_spec.rb
294
- - spec/api/rpm_api_spec.rb
296
+ - spec/api/remotes_rpm_api_spec.rb
297
+ - spec/api/content_packages_api_spec.rb
298
+ - spec/api/content_advisories_api_spec.rb
299
+ - spec/api/publications_rpm_api_spec.rb
300
+ - spec/api/rpm_upload_api_spec.rb
301
+ - spec/api/rpm_copy_api_spec.rb
302
+ - spec/api/distributions_rpm_api_spec.rb
295
303
  - spec/api_client_spec.rb
296
304
  - spec/configuration_spec.rb
297
305
  - spec/models/inline_response2003_spec.rb
data/docs/ContentApi.md DELETED
@@ -1,396 +0,0 @@
1
- # PulpRpmClient::ContentApi
2
-
3
- All URIs are relative to *http://localhost:24817*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**content_rpm_advisories_create**](ContentApi.md#content_rpm_advisories_create) | **POST** /pulp/api/v3/content/rpm/advisories/ | Create an update record
8
- [**content_rpm_advisories_list**](ContentApi.md#content_rpm_advisories_list) | **GET** /pulp/api/v3/content/rpm/advisories/ | List update records
9
- [**content_rpm_advisories_read**](ContentApi.md#content_rpm_advisories_read) | **GET** {update_record_href} | Inspect an update record
10
- [**content_rpm_packages_create**](ContentApi.md#content_rpm_packages_create) | **POST** /pulp/api/v3/content/rpm/packages/ | Create a package
11
- [**content_rpm_packages_list**](ContentApi.md#content_rpm_packages_list) | **GET** /pulp/api/v3/content/rpm/packages/ | List packages
12
- [**content_rpm_packages_read**](ContentApi.md#content_rpm_packages_read) | **GET** {package_href} | Inspect a package
13
-
14
-
15
-
16
- ## content_rpm_advisories_create
17
-
18
- > UpdateRecord content_rpm_advisories_create(data)
19
-
20
- Create an update record
21
-
22
- Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
23
-
24
- ### Example
25
-
26
- ```ruby
27
- # load the gem
28
- require 'pulp_rpm_client'
29
- # setup authorization
30
- PulpRpmClient.configure do |config|
31
- # Configure HTTP basic authorization: Basic
32
- config.username = 'YOUR USERNAME'
33
- config.password = 'YOUR PASSWORD'
34
- end
35
-
36
- api_instance = PulpRpmClient::ContentApi.new
37
- data = PulpRpmClient::UpdateRecord.new # UpdateRecord |
38
-
39
- begin
40
- #Create an update record
41
- result = api_instance.content_rpm_advisories_create(data)
42
- p result
43
- rescue PulpRpmClient::ApiError => e
44
- puts "Exception when calling ContentApi->content_rpm_advisories_create: #{e}"
45
- end
46
- ```
47
-
48
- ### Parameters
49
-
50
-
51
- Name | Type | Description | Notes
52
- ------------- | ------------- | ------------- | -------------
53
- **data** | [**UpdateRecord**](UpdateRecord.md)| |
54
-
55
- ### Return type
56
-
57
- [**UpdateRecord**](UpdateRecord.md)
58
-
59
- ### Authorization
60
-
61
- [Basic](../README.md#Basic)
62
-
63
- ### HTTP request headers
64
-
65
- - **Content-Type**: application/json
66
- - **Accept**: application/json
67
-
68
-
69
- ## content_rpm_advisories_list
70
-
71
- > InlineResponse200 content_rpm_advisories_list(opts)
72
-
73
- List update records
74
-
75
- Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
76
-
77
- ### Example
78
-
79
- ```ruby
80
- # load the gem
81
- require 'pulp_rpm_client'
82
- # setup authorization
83
- PulpRpmClient.configure do |config|
84
- # Configure HTTP basic authorization: Basic
85
- config.username = 'YOUR USERNAME'
86
- config.password = 'YOUR PASSWORD'
87
- end
88
-
89
- api_instance = PulpRpmClient::ContentApi.new
90
- opts = {
91
- id: 'id_example', # String | Filter results where id matches value
92
- id__in: 'id__in_example', # String | Filter results where id is in a comma-separated list of values
93
- status: 'status_example', # String | Filter results where status matches value
94
- status__in: 'status__in_example', # String | Filter results where status is in a comma-separated list of values
95
- severity: 'severity_example', # String | Filter results where severity matches value
96
- severity__in: 'severity__in_example', # String | Filter results where severity is in a comma-separated list of values
97
- type: 'type_example', # String | Filter results where type matches value
98
- type__in: 'type__in_example', # String | Filter results where type is in a comma-separated list of values
99
- repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
100
- repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
101
- repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
102
- page: 56, # Integer | A page number within the paginated result set.
103
- page_size: 56 # Integer | Number of results to return per page.
104
- }
105
-
106
- begin
107
- #List update records
108
- result = api_instance.content_rpm_advisories_list(opts)
109
- p result
110
- rescue PulpRpmClient::ApiError => e
111
- puts "Exception when calling ContentApi->content_rpm_advisories_list: #{e}"
112
- end
113
- ```
114
-
115
- ### Parameters
116
-
117
-
118
- Name | Type | Description | Notes
119
- ------------- | ------------- | ------------- | -------------
120
- **id** | **String**| Filter results where id matches value | [optional]
121
- **id__in** | **String**| Filter results where id is in a comma-separated list of values | [optional]
122
- **status** | **String**| Filter results where status matches value | [optional]
123
- **status__in** | **String**| Filter results where status is in a comma-separated list of values | [optional]
124
- **severity** | **String**| Filter results where severity matches value | [optional]
125
- **severity__in** | **String**| Filter results where severity is in a comma-separated list of values | [optional]
126
- **type** | **String**| Filter results where type matches value | [optional]
127
- **type__in** | **String**| Filter results where type is in a comma-separated list of values | [optional]
128
- **repository_version** | **String**| Repository Version referenced by HREF | [optional]
129
- **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
130
- **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
131
- **page** | **Integer**| A page number within the paginated result set. | [optional]
132
- **page_size** | **Integer**| Number of results to return per page. | [optional]
133
-
134
- ### Return type
135
-
136
- [**InlineResponse200**](InlineResponse200.md)
137
-
138
- ### Authorization
139
-
140
- [Basic](../README.md#Basic)
141
-
142
- ### HTTP request headers
143
-
144
- - **Content-Type**: Not defined
145
- - **Accept**: application/json
146
-
147
-
148
- ## content_rpm_advisories_read
149
-
150
- > UpdateRecord content_rpm_advisories_read(update_record_href)
151
-
152
- Inspect an update record
153
-
154
- Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
155
-
156
- ### Example
157
-
158
- ```ruby
159
- # load the gem
160
- require 'pulp_rpm_client'
161
- # setup authorization
162
- PulpRpmClient.configure do |config|
163
- # Configure HTTP basic authorization: Basic
164
- config.username = 'YOUR USERNAME'
165
- config.password = 'YOUR PASSWORD'
166
- end
167
-
168
- api_instance = PulpRpmClient::ContentApi.new
169
- update_record_href = 'update_record_href_example' # String | URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/
170
-
171
- begin
172
- #Inspect an update record
173
- result = api_instance.content_rpm_advisories_read(update_record_href)
174
- p result
175
- rescue PulpRpmClient::ApiError => e
176
- puts "Exception when calling ContentApi->content_rpm_advisories_read: #{e}"
177
- end
178
- ```
179
-
180
- ### Parameters
181
-
182
-
183
- Name | Type | Description | Notes
184
- ------------- | ------------- | ------------- | -------------
185
- **update_record_href** | **String**| URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/ |
186
-
187
- ### Return type
188
-
189
- [**UpdateRecord**](UpdateRecord.md)
190
-
191
- ### Authorization
192
-
193
- [Basic](../README.md#Basic)
194
-
195
- ### HTTP request headers
196
-
197
- - **Content-Type**: Not defined
198
- - **Accept**: application/json
199
-
200
-
201
- ## content_rpm_packages_create
202
-
203
- > Package content_rpm_packages_create(data)
204
-
205
- Create a package
206
-
207
- Create a new Package from a request.
208
-
209
- ### Example
210
-
211
- ```ruby
212
- # load the gem
213
- require 'pulp_rpm_client'
214
- # setup authorization
215
- PulpRpmClient.configure do |config|
216
- # Configure HTTP basic authorization: Basic
217
- config.username = 'YOUR USERNAME'
218
- config.password = 'YOUR PASSWORD'
219
- end
220
-
221
- api_instance = PulpRpmClient::ContentApi.new
222
- data = PulpRpmClient::Package.new # Package |
223
-
224
- begin
225
- #Create a package
226
- result = api_instance.content_rpm_packages_create(data)
227
- p result
228
- rescue PulpRpmClient::ApiError => e
229
- puts "Exception when calling ContentApi->content_rpm_packages_create: #{e}"
230
- end
231
- ```
232
-
233
- ### Parameters
234
-
235
-
236
- Name | Type | Description | Notes
237
- ------------- | ------------- | ------------- | -------------
238
- **data** | [**Package**](Package.md)| |
239
-
240
- ### Return type
241
-
242
- [**Package**](Package.md)
243
-
244
- ### Authorization
245
-
246
- [Basic](../README.md#Basic)
247
-
248
- ### HTTP request headers
249
-
250
- - **Content-Type**: application/json
251
- - **Accept**: application/json
252
-
253
-
254
- ## content_rpm_packages_list
255
-
256
- > InlineResponse2001 content_rpm_packages_list(opts)
257
-
258
- List packages
259
-
260
- Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
261
-
262
- ### Example
263
-
264
- ```ruby
265
- # load the gem
266
- require 'pulp_rpm_client'
267
- # setup authorization
268
- PulpRpmClient.configure do |config|
269
- # Configure HTTP basic authorization: Basic
270
- config.username = 'YOUR USERNAME'
271
- config.password = 'YOUR PASSWORD'
272
- end
273
-
274
- api_instance = PulpRpmClient::ContentApi.new
275
- opts = {
276
- name: 'name_example', # String | Filter results where name matches value
277
- name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
278
- epoch: 'epoch_example', # String | Filter results where epoch matches value
279
- epoch__in: 'epoch__in_example', # String | Filter results where epoch is in a comma-separated list of values
280
- version: 'version_example', # String | Filter results where version matches value
281
- version__in: 'version__in_example', # String | Filter results where version is in a comma-separated list of values
282
- release: 'release_example', # String | Filter results where release matches value
283
- release__in: 'release__in_example', # String | Filter results where release is in a comma-separated list of values
284
- arch: 'arch_example', # String | Filter results where arch matches value
285
- arch__in: 'arch__in_example', # String | Filter results where arch is in a comma-separated list of values
286
- pkg_id: 'pkg_id_example', # String | Filter results where pkgId matches value
287
- pkg_id__in: 'pkg_id__in_example', # String | Filter results where pkgId is in a comma-separated list of values
288
- checksum_type: 'checksum_type_example', # String | Filter results where checksum_type matches value
289
- checksum_type__in: 'checksum_type__in_example', # String | Filter results where checksum_type is in a comma-separated list of values
290
- repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
291
- repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
292
- repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
293
- page: 56, # Integer | A page number within the paginated result set.
294
- page_size: 56 # Integer | Number of results to return per page.
295
- }
296
-
297
- begin
298
- #List packages
299
- result = api_instance.content_rpm_packages_list(opts)
300
- p result
301
- rescue PulpRpmClient::ApiError => e
302
- puts "Exception when calling ContentApi->content_rpm_packages_list: #{e}"
303
- end
304
- ```
305
-
306
- ### Parameters
307
-
308
-
309
- Name | Type | Description | Notes
310
- ------------- | ------------- | ------------- | -------------
311
- **name** | **String**| Filter results where name matches value | [optional]
312
- **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
313
- **epoch** | **String**| Filter results where epoch matches value | [optional]
314
- **epoch__in** | **String**| Filter results where epoch is in a comma-separated list of values | [optional]
315
- **version** | **String**| Filter results where version matches value | [optional]
316
- **version__in** | **String**| Filter results where version is in a comma-separated list of values | [optional]
317
- **release** | **String**| Filter results where release matches value | [optional]
318
- **release__in** | **String**| Filter results where release is in a comma-separated list of values | [optional]
319
- **arch** | **String**| Filter results where arch matches value | [optional]
320
- **arch__in** | **String**| Filter results where arch is in a comma-separated list of values | [optional]
321
- **pkg_id** | **String**| Filter results where pkgId matches value | [optional]
322
- **pkg_id__in** | **String**| Filter results where pkgId is in a comma-separated list of values | [optional]
323
- **checksum_type** | **String**| Filter results where checksum_type matches value | [optional]
324
- **checksum_type__in** | **String**| Filter results where checksum_type is in a comma-separated list of values | [optional]
325
- **repository_version** | **String**| Repository Version referenced by HREF | [optional]
326
- **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
327
- **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
328
- **page** | **Integer**| A page number within the paginated result set. | [optional]
329
- **page_size** | **Integer**| Number of results to return per page. | [optional]
330
-
331
- ### Return type
332
-
333
- [**InlineResponse2001**](InlineResponse2001.md)
334
-
335
- ### Authorization
336
-
337
- [Basic](../README.md#Basic)
338
-
339
- ### HTTP request headers
340
-
341
- - **Content-Type**: Not defined
342
- - **Accept**: application/json
343
-
344
-
345
- ## content_rpm_packages_read
346
-
347
- > Package content_rpm_packages_read(package_href)
348
-
349
- Inspect a package
350
-
351
- Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
352
-
353
- ### Example
354
-
355
- ```ruby
356
- # load the gem
357
- require 'pulp_rpm_client'
358
- # setup authorization
359
- PulpRpmClient.configure do |config|
360
- # Configure HTTP basic authorization: Basic
361
- config.username = 'YOUR USERNAME'
362
- config.password = 'YOUR PASSWORD'
363
- end
364
-
365
- api_instance = PulpRpmClient::ContentApi.new
366
- package_href = 'package_href_example' # String | URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
367
-
368
- begin
369
- #Inspect a package
370
- result = api_instance.content_rpm_packages_read(package_href)
371
- p result
372
- rescue PulpRpmClient::ApiError => e
373
- puts "Exception when calling ContentApi->content_rpm_packages_read: #{e}"
374
- end
375
- ```
376
-
377
- ### Parameters
378
-
379
-
380
- Name | Type | Description | Notes
381
- ------------- | ------------- | ------------- | -------------
382
- **package_href** | **String**| URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/ |
383
-
384
- ### Return type
385
-
386
- [**Package**](Package.md)
387
-
388
- ### Authorization
389
-
390
- [Basic](../README.md#Basic)
391
-
392
- ### HTTP request headers
393
-
394
- - **Content-Type**: Not defined
395
- - **Accept**: application/json
396
-