pulp_rpm_client 3.0.0b3.dev.1559835992

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_rpm_client might be problematic. Click here for more details.

Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +134 -0
  5. data/Rakefile +10 -0
  6. data/docs/AsyncOperationResponse.md +17 -0
  7. data/docs/ContentApi.md +396 -0
  8. data/docs/DistributionsApi.md +352 -0
  9. data/docs/InlineResponse200.md +23 -0
  10. data/docs/InlineResponse2001.md +23 -0
  11. data/docs/InlineResponse2002.md +23 -0
  12. data/docs/InlineResponse2003.md +23 -0
  13. data/docs/InlineResponse2004.md +23 -0
  14. data/docs/Package.md +95 -0
  15. data/docs/PublicationsApi.md +229 -0
  16. data/docs/RemotesApi.md +412 -0
  17. data/docs/RepositorySyncURL.md +19 -0
  18. data/docs/RpmApi.md +128 -0
  19. data/docs/RpmDistribution.md +29 -0
  20. data/docs/RpmPublication.md +27 -0
  21. data/docs/RpmRemote.md +47 -0
  22. data/docs/UpdateRecord.md +55 -0
  23. data/git_push.sh +55 -0
  24. data/lib/pulp_rpm_client/api/content_api.rb +482 -0
  25. data/lib/pulp_rpm_client/api/distributions_api.rb +430 -0
  26. data/lib/pulp_rpm_client/api/publications_api.rb +273 -0
  27. data/lib/pulp_rpm_client/api/remotes_api.rb +506 -0
  28. data/lib/pulp_rpm_client/api/rpm_api.rb +164 -0
  29. data/lib/pulp_rpm_client/api_client.rb +386 -0
  30. data/lib/pulp_rpm_client/api_error.rb +57 -0
  31. data/lib/pulp_rpm_client/configuration.rb +248 -0
  32. data/lib/pulp_rpm_client/models/async_operation_response.rb +202 -0
  33. data/lib/pulp_rpm_client/models/inline_response200.rb +235 -0
  34. data/lib/pulp_rpm_client/models/inline_response2001.rb +235 -0
  35. data/lib/pulp_rpm_client/models/inline_response2002.rb +235 -0
  36. data/lib/pulp_rpm_client/models/inline_response2003.rb +235 -0
  37. data/lib/pulp_rpm_client/models/inline_response2004.rb +235 -0
  38. data/lib/pulp_rpm_client/models/package.rb +983 -0
  39. data/lib/pulp_rpm_client/models/repository_sync_url.rb +214 -0
  40. data/lib/pulp_rpm_client/models/rpm_distribution.rb +337 -0
  41. data/lib/pulp_rpm_client/models/rpm_publication.rb +258 -0
  42. data/lib/pulp_rpm_client/models/rpm_remote.rb +549 -0
  43. data/lib/pulp_rpm_client/models/update_record.rb +764 -0
  44. data/lib/pulp_rpm_client/version.rb +15 -0
  45. data/lib/pulp_rpm_client.rb +56 -0
  46. data/pulp_rpm_client.gemspec +45 -0
  47. data/spec/api/content_api_spec.rb +137 -0
  48. data/spec/api/distributions_api_spec.rb +116 -0
  49. data/spec/api/publications_api_spec.rb +85 -0
  50. data/spec/api/remotes_api_spec.rb +131 -0
  51. data/spec/api/rpm_api_spec.rb +63 -0
  52. data/spec/api_client_spec.rb +226 -0
  53. data/spec/configuration_spec.rb +42 -0
  54. data/spec/models/async_operation_response_spec.rb +41 -0
  55. data/spec/models/inline_response2001_spec.rb +59 -0
  56. data/spec/models/inline_response2002_spec.rb +59 -0
  57. data/spec/models/inline_response2003_spec.rb +59 -0
  58. data/spec/models/inline_response2004_spec.rb +59 -0
  59. data/spec/models/inline_response200_spec.rb +59 -0
  60. data/spec/models/package_spec.rb +275 -0
  61. data/spec/models/repository_sync_url_spec.rb +47 -0
  62. data/spec/models/rpm_distribution_spec.rb +77 -0
  63. data/spec/models/rpm_publication_spec.rb +71 -0
  64. data/spec/models/rpm_remote_spec.rb +135 -0
  65. data/spec/models/update_record_spec.rb +155 -0
  66. data/spec/spec_helper.rb +111 -0
  67. metadata +309 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3360d36b23edf14eb522ae3a4779abf10f25fbb96a742f85f9d9be6d398e779e
4
+ data.tar.gz: 3114f18f2373a1d57c990d8b86cfedb090fe33ea46dc0505ec217859a24b9eea
5
+ SHA512:
6
+ metadata.gz: f6590e6f66bcd99b27da887931d5f58111a7b4f5aa4dfa960c2f91a417edbda752fe505c4ff1311203af628d65673ae55b74d72fcf94c62a5e1a96074ec87ae1
7
+ data.tar.gz: fe94f35ec82bf17e7e42137508103a3d454fff6ec09127f0817ee88de4b5deb51062a30a031c9488b2ea0e8fcaeacde0d213d189a8660c1fa50eb6997c4299b4
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.0.0'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,79 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pulp_rpm_client (3.0.0b3.dev.1559835992)
5
+ json (~> 2.1, >= 2.1.0)
6
+ typhoeus (~> 1.0, >= 1.0.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ZenTest (4.11.2)
12
+ addressable (2.5.2)
13
+ public_suffix (>= 2.0.2, < 4.0)
14
+ autotest (4.4.6)
15
+ ZenTest (>= 4.4.1)
16
+ autotest-fsevent (0.2.14)
17
+ sys-uname
18
+ autotest-growl (0.2.16)
19
+ autotest-rails-pure (4.1.2)
20
+ byebug (10.0.2)
21
+ coderay (1.1.2)
22
+ crack (0.4.3)
23
+ safe_yaml (~> 1.0.0)
24
+ diff-lcs (1.3)
25
+ ethon (0.11.0)
26
+ ffi (>= 1.3.0)
27
+ ffi (1.9.25)
28
+ hashdiff (0.3.7)
29
+ json (2.1.0)
30
+ method_source (0.9.0)
31
+ pry (0.11.3)
32
+ coderay (~> 1.1.0)
33
+ method_source (~> 0.9.0)
34
+ pry-byebug (3.6.0)
35
+ byebug (~> 10.0)
36
+ pry (~> 0.10)
37
+ public_suffix (3.0.3)
38
+ rake (12.0.0)
39
+ rspec (3.8.0)
40
+ rspec-core (~> 3.8.0)
41
+ rspec-expectations (~> 3.8.0)
42
+ rspec-mocks (~> 3.8.0)
43
+ rspec-core (3.8.0)
44
+ rspec-support (~> 3.8.0)
45
+ rspec-expectations (3.8.1)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.8.0)
48
+ rspec-mocks (3.8.0)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.8.0)
51
+ rspec-support (3.8.0)
52
+ safe_yaml (1.0.4)
53
+ sys-uname (1.0.3)
54
+ ffi (>= 1.0.0)
55
+ typhoeus (1.3.0)
56
+ ethon (>= 0.9.0)
57
+ vcr (3.0.3)
58
+ webmock (1.24.6)
59
+ addressable (>= 2.3.6)
60
+ crack (>= 0.3.2)
61
+ hashdiff
62
+
63
+ PLATFORMS
64
+ ruby
65
+
66
+ DEPENDENCIES
67
+ autotest (~> 4.4, >= 4.4.6)
68
+ autotest-fsevent (~> 0.2, >= 0.2.12)
69
+ autotest-growl (~> 0.2, >= 0.2.16)
70
+ autotest-rails-pure (~> 4.1, >= 4.1.2)
71
+ pulp_rpm_client!
72
+ pry-byebug
73
+ rake (~> 12.0.0)
74
+ rspec (~> 3.6, >= 3.6.0)
75
+ vcr (~> 3.0, >= 3.0.1)
76
+ webmock (~> 1.24, >= 1.24.3)
77
+
78
+ BUNDLED WITH
79
+ 1.16.1
data/README.md ADDED
@@ -0,0 +1,134 @@
1
+ # pulp_rpm_client
2
+
3
+ PulpRpmClient - the Ruby gem for the Pulp 3 API
4
+
5
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
+
9
+ - API version: v3
10
+ - Package version: 3.0.0b3.dev.1559835992
11
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
+
13
+ ## Installation
14
+
15
+ ### Build a gem
16
+
17
+ To build the Ruby code into a gem:
18
+
19
+ ```shell
20
+ gem build pulp_rpm_client.gemspec
21
+ ```
22
+
23
+ Then either install the gem locally:
24
+
25
+ ```shell
26
+ gem install ./pulp_rpm_client-3.0.0b3.dev.1559835992.gem
27
+ ```
28
+
29
+ (for development, run `gem install --dev ./pulp_rpm_client-3.0.0b3.dev.1559835992.gem` to install the development dependencies)
30
+
31
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
+
33
+ Finally add this to the Gemfile:
34
+
35
+ gem 'pulp_rpm_client', '~> 3.0.0b3.dev.1559835992'
36
+
37
+ ### Install from Git
38
+
39
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
40
+
41
+ gem 'pulp_rpm_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
42
+
43
+ ### Include the Ruby code directly
44
+
45
+ Include the Ruby code directly using `-I` as follows:
46
+
47
+ ```shell
48
+ ruby -Ilib script.rb
49
+ ```
50
+
51
+ ## Getting Started
52
+
53
+ Please follow the [installation](#installation) procedure and then run the following code:
54
+
55
+ ```ruby
56
+ # Load the gem
57
+ require 'pulp_rpm_client'
58
+
59
+ # Setup authorization
60
+ PulpRpmClient.configure do |config|
61
+ # Configure HTTP basic authorization: Basic
62
+ config.username = 'YOUR_USERNAME'
63
+ config.password = 'YOUR_PASSWORD'
64
+ end
65
+
66
+ api_instance = PulpRpmClient::ContentApi.new
67
+ data = PulpRpmClient::UpdateRecord.new # UpdateRecord |
68
+
69
+ begin
70
+ #Create an update record
71
+ result = api_instance.content_rpm_advisories_create(data)
72
+ p result
73
+ rescue PulpRpmClient::ApiError => e
74
+ puts "Exception when calling ContentApi->content_rpm_advisories_create: #{e}"
75
+ end
76
+
77
+ ```
78
+
79
+ ## Documentation for API Endpoints
80
+
81
+ All URIs are relative to *http://localhost:24817*
82
+
83
+ Class | Method | HTTP request | Description
84
+ ------------ | ------------- | ------------- | -------------
85
+ *PulpRpmClient::ContentApi* | [**content_rpm_advisories_create**](docs/ContentApi.md#content_rpm_advisories_create) | **POST** /pulp/api/v3/content/rpm/advisories/ | Create an update record
86
+ *PulpRpmClient::ContentApi* | [**content_rpm_advisories_list**](docs/ContentApi.md#content_rpm_advisories_list) | **GET** /pulp/api/v3/content/rpm/advisories/ | List update records
87
+ *PulpRpmClient::ContentApi* | [**content_rpm_advisories_read**](docs/ContentApi.md#content_rpm_advisories_read) | **GET** {update_record_href} | Inspect an update record
88
+ *PulpRpmClient::ContentApi* | [**content_rpm_packages_create**](docs/ContentApi.md#content_rpm_packages_create) | **POST** /pulp/api/v3/content/rpm/packages/ | Create a package
89
+ *PulpRpmClient::ContentApi* | [**content_rpm_packages_list**](docs/ContentApi.md#content_rpm_packages_list) | **GET** /pulp/api/v3/content/rpm/packages/ | List packages
90
+ *PulpRpmClient::ContentApi* | [**content_rpm_packages_read**](docs/ContentApi.md#content_rpm_packages_read) | **GET** {package_href} | Inspect a package
91
+ *PulpRpmClient::DistributionsApi* | [**distributions_rpm_rpm_create**](docs/DistributionsApi.md#distributions_rpm_rpm_create) | **POST** /pulp/api/v3/distributions/rpm/rpm/ | Create a rpm distribution
92
+ *PulpRpmClient::DistributionsApi* | [**distributions_rpm_rpm_delete**](docs/DistributionsApi.md#distributions_rpm_rpm_delete) | **DELETE** {rpm_distribution_href} | Delete a rpm distribution
93
+ *PulpRpmClient::DistributionsApi* | [**distributions_rpm_rpm_list**](docs/DistributionsApi.md#distributions_rpm_rpm_list) | **GET** /pulp/api/v3/distributions/rpm/rpm/ | List rpm distributions
94
+ *PulpRpmClient::DistributionsApi* | [**distributions_rpm_rpm_partial_update**](docs/DistributionsApi.md#distributions_rpm_rpm_partial_update) | **PATCH** {rpm_distribution_href} | Partially update a rpm distribution
95
+ *PulpRpmClient::DistributionsApi* | [**distributions_rpm_rpm_read**](docs/DistributionsApi.md#distributions_rpm_rpm_read) | **GET** {rpm_distribution_href} | Inspect a rpm distribution
96
+ *PulpRpmClient::DistributionsApi* | [**distributions_rpm_rpm_update**](docs/DistributionsApi.md#distributions_rpm_rpm_update) | **PUT** {rpm_distribution_href} | Update a rpm distribution
97
+ *PulpRpmClient::PublicationsApi* | [**publications_rpm_rpm_create**](docs/PublicationsApi.md#publications_rpm_rpm_create) | **POST** /pulp/api/v3/publications/rpm/rpm/ | Create a rpm publication
98
+ *PulpRpmClient::PublicationsApi* | [**publications_rpm_rpm_delete**](docs/PublicationsApi.md#publications_rpm_rpm_delete) | **DELETE** {rpm_publication_href} | Delete a rpm publication
99
+ *PulpRpmClient::PublicationsApi* | [**publications_rpm_rpm_list**](docs/PublicationsApi.md#publications_rpm_rpm_list) | **GET** /pulp/api/v3/publications/rpm/rpm/ | List rpm publications
100
+ *PulpRpmClient::PublicationsApi* | [**publications_rpm_rpm_read**](docs/PublicationsApi.md#publications_rpm_rpm_read) | **GET** {rpm_publication_href} | Inspect a rpm publication
101
+ *PulpRpmClient::RemotesApi* | [**remotes_rpm_rpm_create**](docs/RemotesApi.md#remotes_rpm_rpm_create) | **POST** /pulp/api/v3/remotes/rpm/rpm/ | Create a rpm remote
102
+ *PulpRpmClient::RemotesApi* | [**remotes_rpm_rpm_delete**](docs/RemotesApi.md#remotes_rpm_rpm_delete) | **DELETE** {rpm_remote_href} | Delete a rpm remote
103
+ *PulpRpmClient::RemotesApi* | [**remotes_rpm_rpm_list**](docs/RemotesApi.md#remotes_rpm_rpm_list) | **GET** /pulp/api/v3/remotes/rpm/rpm/ | List rpm remotes
104
+ *PulpRpmClient::RemotesApi* | [**remotes_rpm_rpm_partial_update**](docs/RemotesApi.md#remotes_rpm_rpm_partial_update) | **PATCH** {rpm_remote_href} | Partially update a rpm remote
105
+ *PulpRpmClient::RemotesApi* | [**remotes_rpm_rpm_read**](docs/RemotesApi.md#remotes_rpm_rpm_read) | **GET** {rpm_remote_href} | Inspect a rpm remote
106
+ *PulpRpmClient::RemotesApi* | [**remotes_rpm_rpm_sync**](docs/RemotesApi.md#remotes_rpm_rpm_sync) | **POST** {rpm_remote_href}sync/ | Sync from remote
107
+ *PulpRpmClient::RemotesApi* | [**remotes_rpm_rpm_update**](docs/RemotesApi.md#remotes_rpm_rpm_update) | **PUT** {rpm_remote_href} | Update a rpm remote
108
+ *PulpRpmClient::RpmApi* | [**copy_content**](docs/RpmApi.md#copy_content) | **POST** /rpm/copy/ | Copy content
109
+ *PulpRpmClient::RpmApi* | [**upload_rpm_package**](docs/RpmApi.md#upload_rpm_package) | **POST** /rpm/upload/ | Upload a package
110
+
111
+
112
+ ## Documentation for Models
113
+
114
+ - [PulpRpmClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
115
+ - [PulpRpmClient::InlineResponse200](docs/InlineResponse200.md)
116
+ - [PulpRpmClient::InlineResponse2001](docs/InlineResponse2001.md)
117
+ - [PulpRpmClient::InlineResponse2002](docs/InlineResponse2002.md)
118
+ - [PulpRpmClient::InlineResponse2003](docs/InlineResponse2003.md)
119
+ - [PulpRpmClient::InlineResponse2004](docs/InlineResponse2004.md)
120
+ - [PulpRpmClient::Package](docs/Package.md)
121
+ - [PulpRpmClient::RepositorySyncURL](docs/RepositorySyncURL.md)
122
+ - [PulpRpmClient::RpmDistribution](docs/RpmDistribution.md)
123
+ - [PulpRpmClient::RpmPublication](docs/RpmPublication.md)
124
+ - [PulpRpmClient::RpmRemote](docs/RpmRemote.md)
125
+ - [PulpRpmClient::UpdateRecord](docs/UpdateRecord.md)
126
+
127
+
128
+ ## Documentation for Authorization
129
+
130
+
131
+ ### Basic
132
+
133
+ - **Type**: HTTP basic authentication
134
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,17 @@
1
+ # PulpRpmClient::AsyncOperationResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **task** | **String** | The href of the task. |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpRpmClient'
13
+
14
+ instance = PulpRpmClient::AsyncOperationResponse.new(task: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,396 @@
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
+