pulp_rpm_client 3.0.0b4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) 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/ContentAdvisoriesApi.md +196 -0
  8. data/docs/ContentPackagesApi.md +208 -0
  9. data/docs/DistributionsRpmApi.md +352 -0
  10. data/docs/InlineResponse200.md +23 -0
  11. data/docs/InlineResponse2001.md +23 -0
  12. data/docs/InlineResponse2002.md +23 -0
  13. data/docs/InlineResponse2003.md +23 -0
  14. data/docs/InlineResponse2004.md +23 -0
  15. data/docs/Package.md +95 -0
  16. data/docs/PublicationsRpmApi.md +229 -0
  17. data/docs/RemotesRpmApi.md +412 -0
  18. data/docs/RepositorySyncURL.md +19 -0
  19. data/docs/RpmCopyApi.md +70 -0
  20. data/docs/RpmDistribution.md +29 -0
  21. data/docs/RpmPublication.md +27 -0
  22. data/docs/RpmRemote.md +45 -0
  23. data/docs/RpmUploadApi.md +66 -0
  24. data/docs/UpdateRecord.md +55 -0
  25. data/git_push.sh +55 -0
  26. data/lib/pulp_rpm_client/api/content_advisories_api.rb +243 -0
  27. data/lib/pulp_rpm_client/api/content_packages_api.rb +261 -0
  28. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +430 -0
  29. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +273 -0
  30. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +506 -0
  31. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +96 -0
  32. data/lib/pulp_rpm_client/api/rpm_upload_api.rb +90 -0
  33. data/lib/pulp_rpm_client/api_client.rb +387 -0
  34. data/lib/pulp_rpm_client/api_error.rb +57 -0
  35. data/lib/pulp_rpm_client/configuration.rb +251 -0
  36. data/lib/pulp_rpm_client/models/async_operation_response.rb +202 -0
  37. data/lib/pulp_rpm_client/models/inline_response200.rb +235 -0
  38. data/lib/pulp_rpm_client/models/inline_response2001.rb +235 -0
  39. data/lib/pulp_rpm_client/models/inline_response2002.rb +235 -0
  40. data/lib/pulp_rpm_client/models/inline_response2003.rb +235 -0
  41. data/lib/pulp_rpm_client/models/inline_response2004.rb +235 -0
  42. data/lib/pulp_rpm_client/models/package.rb +983 -0
  43. data/lib/pulp_rpm_client/models/repository_sync_url.rb +214 -0
  44. data/lib/pulp_rpm_client/models/rpm_distribution.rb +337 -0
  45. data/lib/pulp_rpm_client/models/rpm_publication.rb +258 -0
  46. data/lib/pulp_rpm_client/models/rpm_remote.rb +539 -0
  47. data/lib/pulp_rpm_client/models/update_record.rb +764 -0
  48. data/lib/pulp_rpm_client/version.rb +15 -0
  49. data/lib/pulp_rpm_client.rb +58 -0
  50. data/pulp_rpm_client.gemspec +45 -0
  51. data/spec/api/content_advisories_api_spec.rb +83 -0
  52. data/spec/api/content_packages_api_spec.rb +89 -0
  53. data/spec/api/distributions_rpm_api_spec.rb +116 -0
  54. data/spec/api/publications_rpm_api_spec.rb +85 -0
  55. data/spec/api/remotes_rpm_api_spec.rb +131 -0
  56. data/spec/api/rpm_copy_api_spec.rb +50 -0
  57. data/spec/api/rpm_upload_api_spec.rb +48 -0
  58. data/spec/api_client_spec.rb +226 -0
  59. data/spec/configuration_spec.rb +42 -0
  60. data/spec/models/async_operation_response_spec.rb +41 -0
  61. data/spec/models/inline_response2001_spec.rb +59 -0
  62. data/spec/models/inline_response2002_spec.rb +59 -0
  63. data/spec/models/inline_response2003_spec.rb +59 -0
  64. data/spec/models/inline_response2004_spec.rb +59 -0
  65. data/spec/models/inline_response200_spec.rb +59 -0
  66. data/spec/models/package_spec.rb +275 -0
  67. data/spec/models/repository_sync_url_spec.rb +47 -0
  68. data/spec/models/rpm_distribution_spec.rb +77 -0
  69. data/spec/models/rpm_publication_spec.rb +71 -0
  70. data/spec/models/rpm_remote_spec.rb +129 -0
  71. data/spec/models/update_record_spec.rb +155 -0
  72. data/spec/spec_helper.rb +111 -0
  73. metadata +317 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a1fb0c0a531addcab1f64ec989cf90cf29b33198decf09abc0f756d9263e6540
4
+ data.tar.gz: 4d9c9d056c42555c4b88cc5c7734d10fad323bf5452cabc6bb706652679a272b
5
+ SHA512:
6
+ metadata.gz: 1c1c0c8d9548acca335519c646d99c9456dd649a4c31fa0c27c8028e3c62066df2336dc3b326512511372725b15a6e387561a492a3ca779c65abcf91aa720213
7
+ data.tar.gz: 38ab378aa33c454a2dc6bf6fb64d7e4c02f7ab6b9735617bfdcc1c72c99de03e2d901f1aca129aecf8e42ca0e665890c5ee8728aba89bb342f16b98b7b4801b6
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.0b4)
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.0b4
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.0b4.gem
27
+ ```
28
+
29
+ (for development, run `gem install --dev ./pulp_rpm_client-3.0.0b4.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.0b4'
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::ContentAdvisoriesApi.new
67
+ data = PulpRpmClient::UpdateRecord.new # UpdateRecord |
68
+
69
+ begin
70
+ #Create an update record
71
+ result = api_instance.create(data)
72
+ p result
73
+ rescue PulpRpmClient::ApiError => e
74
+ puts "Exception when calling ContentAdvisoriesApi->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::ContentAdvisoriesApi* | [**create**](docs/ContentAdvisoriesApi.md#create) | **POST** /pulp/api/v3/content/rpm/advisories/ | Create an update record
86
+ *PulpRpmClient::ContentAdvisoriesApi* | [**list**](docs/ContentAdvisoriesApi.md#list) | **GET** /pulp/api/v3/content/rpm/advisories/ | List update records
87
+ *PulpRpmClient::ContentAdvisoriesApi* | [**read**](docs/ContentAdvisoriesApi.md#read) | **GET** {update_record_href} | Inspect an update record
88
+ *PulpRpmClient::ContentPackagesApi* | [**create**](docs/ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/rpm/packages/ | Create a package
89
+ *PulpRpmClient::ContentPackagesApi* | [**list**](docs/ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/rpm/packages/ | List packages
90
+ *PulpRpmClient::ContentPackagesApi* | [**read**](docs/ContentPackagesApi.md#read) | **GET** {package_href} | Inspect a package
91
+ *PulpRpmClient::DistributionsRpmApi* | [**create**](docs/DistributionsRpmApi.md#create) | **POST** /pulp/api/v3/distributions/rpm/rpm/ | Create a rpm distribution
92
+ *PulpRpmClient::DistributionsRpmApi* | [**delete**](docs/DistributionsRpmApi.md#delete) | **DELETE** {rpm_distribution_href} | Delete a rpm distribution
93
+ *PulpRpmClient::DistributionsRpmApi* | [**list**](docs/DistributionsRpmApi.md#list) | **GET** /pulp/api/v3/distributions/rpm/rpm/ | List rpm distributions
94
+ *PulpRpmClient::DistributionsRpmApi* | [**partial_update**](docs/DistributionsRpmApi.md#partial_update) | **PATCH** {rpm_distribution_href} | Partially update a rpm distribution
95
+ *PulpRpmClient::DistributionsRpmApi* | [**read**](docs/DistributionsRpmApi.md#read) | **GET** {rpm_distribution_href} | Inspect a rpm distribution
96
+ *PulpRpmClient::DistributionsRpmApi* | [**update**](docs/DistributionsRpmApi.md#update) | **PUT** {rpm_distribution_href} | Update a rpm distribution
97
+ *PulpRpmClient::PublicationsRpmApi* | [**create**](docs/PublicationsRpmApi.md#create) | **POST** /pulp/api/v3/publications/rpm/rpm/ | Create a rpm publication
98
+ *PulpRpmClient::PublicationsRpmApi* | [**delete**](docs/PublicationsRpmApi.md#delete) | **DELETE** {rpm_publication_href} | Delete a rpm publication
99
+ *PulpRpmClient::PublicationsRpmApi* | [**list**](docs/PublicationsRpmApi.md#list) | **GET** /pulp/api/v3/publications/rpm/rpm/ | List rpm publications
100
+ *PulpRpmClient::PublicationsRpmApi* | [**read**](docs/PublicationsRpmApi.md#read) | **GET** {rpm_publication_href} | Inspect a rpm publication
101
+ *PulpRpmClient::RemotesRpmApi* | [**create**](docs/RemotesRpmApi.md#create) | **POST** /pulp/api/v3/remotes/rpm/rpm/ | Create a rpm remote
102
+ *PulpRpmClient::RemotesRpmApi* | [**delete**](docs/RemotesRpmApi.md#delete) | **DELETE** {rpm_remote_href} | Delete a rpm remote
103
+ *PulpRpmClient::RemotesRpmApi* | [**list**](docs/RemotesRpmApi.md#list) | **GET** /pulp/api/v3/remotes/rpm/rpm/ | List rpm remotes
104
+ *PulpRpmClient::RemotesRpmApi* | [**partial_update**](docs/RemotesRpmApi.md#partial_update) | **PATCH** {rpm_remote_href} | Partially update a rpm remote
105
+ *PulpRpmClient::RemotesRpmApi* | [**read**](docs/RemotesRpmApi.md#read) | **GET** {rpm_remote_href} | Inspect a rpm remote
106
+ *PulpRpmClient::RemotesRpmApi* | [**sync**](docs/RemotesRpmApi.md#sync) | **POST** {rpm_remote_href}sync/ | Sync from remote
107
+ *PulpRpmClient::RemotesRpmApi* | [**update**](docs/RemotesRpmApi.md#update) | **PUT** {rpm_remote_href} | Update a rpm remote
108
+ *PulpRpmClient::RpmCopyApi* | [**copy_content**](docs/RpmCopyApi.md#copy_content) | **POST** /rpm/copy/ | Copy content
109
+ *PulpRpmClient::RpmUploadApi* | [**upload_rpm_package**](docs/RpmUploadApi.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,196 @@
1
+ # PulpRpmClient::ContentAdvisoriesApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](ContentAdvisoriesApi.md#create) | **POST** /pulp/api/v3/content/rpm/advisories/ | Create an update record
8
+ [**list**](ContentAdvisoriesApi.md#list) | **GET** /pulp/api/v3/content/rpm/advisories/ | List update records
9
+ [**read**](ContentAdvisoriesApi.md#read) | **GET** {update_record_href} | Inspect an update record
10
+
11
+
12
+
13
+ ## create
14
+
15
+ > UpdateRecord create(data)
16
+
17
+ Create an update record
18
+
19
+ 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.
20
+
21
+ ### Example
22
+
23
+ ```ruby
24
+ # load the gem
25
+ require 'pulp_rpm_client'
26
+ # setup authorization
27
+ PulpRpmClient.configure do |config|
28
+ # Configure HTTP basic authorization: Basic
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+ end
32
+
33
+ api_instance = PulpRpmClient::ContentAdvisoriesApi.new
34
+ data = PulpRpmClient::UpdateRecord.new # UpdateRecord |
35
+
36
+ begin
37
+ #Create an update record
38
+ result = api_instance.create(data)
39
+ p result
40
+ rescue PulpRpmClient::ApiError => e
41
+ puts "Exception when calling ContentAdvisoriesApi->create: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+
48
+ Name | Type | Description | Notes
49
+ ------------- | ------------- | ------------- | -------------
50
+ **data** | [**UpdateRecord**](UpdateRecord.md)| |
51
+
52
+ ### Return type
53
+
54
+ [**UpdateRecord**](UpdateRecord.md)
55
+
56
+ ### Authorization
57
+
58
+ [Basic](../README.md#Basic)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: application/json
63
+ - **Accept**: application/json
64
+
65
+
66
+ ## list
67
+
68
+ > InlineResponse200 list(opts)
69
+
70
+ List update records
71
+
72
+ 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.
73
+
74
+ ### Example
75
+
76
+ ```ruby
77
+ # load the gem
78
+ require 'pulp_rpm_client'
79
+ # setup authorization
80
+ PulpRpmClient.configure do |config|
81
+ # Configure HTTP basic authorization: Basic
82
+ config.username = 'YOUR USERNAME'
83
+ config.password = 'YOUR PASSWORD'
84
+ end
85
+
86
+ api_instance = PulpRpmClient::ContentAdvisoriesApi.new
87
+ opts = {
88
+ id: 'id_example', # String | Filter results where id matches value
89
+ id__in: 'id__in_example', # String | Filter results where id is in a comma-separated list of values
90
+ status: 'status_example', # String | Filter results where status matches value
91
+ status__in: 'status__in_example', # String | Filter results where status is in a comma-separated list of values
92
+ severity: 'severity_example', # String | Filter results where severity matches value
93
+ severity__in: 'severity__in_example', # String | Filter results where severity is in a comma-separated list of values
94
+ type: 'type_example', # String | Filter results where type matches value
95
+ type__in: 'type__in_example', # String | Filter results where type is in a comma-separated list of values
96
+ repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
97
+ repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
98
+ repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
99
+ page: 56, # Integer | A page number within the paginated result set.
100
+ page_size: 56 # Integer | Number of results to return per page.
101
+ }
102
+
103
+ begin
104
+ #List update records
105
+ result = api_instance.list(opts)
106
+ p result
107
+ rescue PulpRpmClient::ApiError => e
108
+ puts "Exception when calling ContentAdvisoriesApi->list: #{e}"
109
+ end
110
+ ```
111
+
112
+ ### Parameters
113
+
114
+
115
+ Name | Type | Description | Notes
116
+ ------------- | ------------- | ------------- | -------------
117
+ **id** | **String**| Filter results where id matches value | [optional]
118
+ **id__in** | **String**| Filter results where id is in a comma-separated list of values | [optional]
119
+ **status** | **String**| Filter results where status matches value | [optional]
120
+ **status__in** | **String**| Filter results where status is in a comma-separated list of values | [optional]
121
+ **severity** | **String**| Filter results where severity matches value | [optional]
122
+ **severity__in** | **String**| Filter results where severity is in a comma-separated list of values | [optional]
123
+ **type** | **String**| Filter results where type matches value | [optional]
124
+ **type__in** | **String**| Filter results where type is in a comma-separated list of values | [optional]
125
+ **repository_version** | **String**| Repository Version referenced by HREF | [optional]
126
+ **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
127
+ **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
128
+ **page** | **Integer**| A page number within the paginated result set. | [optional]
129
+ **page_size** | **Integer**| Number of results to return per page. | [optional]
130
+
131
+ ### Return type
132
+
133
+ [**InlineResponse200**](InlineResponse200.md)
134
+
135
+ ### Authorization
136
+
137
+ [Basic](../README.md#Basic)
138
+
139
+ ### HTTP request headers
140
+
141
+ - **Content-Type**: Not defined
142
+ - **Accept**: application/json
143
+
144
+
145
+ ## read
146
+
147
+ > UpdateRecord read(update_record_href)
148
+
149
+ Inspect an update record
150
+
151
+ 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.
152
+
153
+ ### Example
154
+
155
+ ```ruby
156
+ # load the gem
157
+ require 'pulp_rpm_client'
158
+ # setup authorization
159
+ PulpRpmClient.configure do |config|
160
+ # Configure HTTP basic authorization: Basic
161
+ config.username = 'YOUR USERNAME'
162
+ config.password = 'YOUR PASSWORD'
163
+ end
164
+
165
+ api_instance = PulpRpmClient::ContentAdvisoriesApi.new
166
+ update_record_href = 'update_record_href_example' # String | URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/
167
+
168
+ begin
169
+ #Inspect an update record
170
+ result = api_instance.read(update_record_href)
171
+ p result
172
+ rescue PulpRpmClient::ApiError => e
173
+ puts "Exception when calling ContentAdvisoriesApi->read: #{e}"
174
+ end
175
+ ```
176
+
177
+ ### Parameters
178
+
179
+
180
+ Name | Type | Description | Notes
181
+ ------------- | ------------- | ------------- | -------------
182
+ **update_record_href** | **String**| URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/ |
183
+
184
+ ### Return type
185
+
186
+ [**UpdateRecord**](UpdateRecord.md)
187
+
188
+ ### Authorization
189
+
190
+ [Basic](../README.md#Basic)
191
+
192
+ ### HTTP request headers
193
+
194
+ - **Content-Type**: Not defined
195
+ - **Accept**: application/json
196
+
@@ -0,0 +1,208 @@
1
+ # PulpRpmClient::ContentPackagesApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/rpm/packages/ | Create a package
8
+ [**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/rpm/packages/ | List packages
9
+ [**read**](ContentPackagesApi.md#read) | **GET** {package_href} | Inspect a package
10
+
11
+
12
+
13
+ ## create
14
+
15
+ > Package create(data)
16
+
17
+ Create a package
18
+
19
+ Create a new Package from a request.
20
+
21
+ ### Example
22
+
23
+ ```ruby
24
+ # load the gem
25
+ require 'pulp_rpm_client'
26
+ # setup authorization
27
+ PulpRpmClient.configure do |config|
28
+ # Configure HTTP basic authorization: Basic
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+ end
32
+
33
+ api_instance = PulpRpmClient::ContentPackagesApi.new
34
+ data = PulpRpmClient::Package.new # Package |
35
+
36
+ begin
37
+ #Create a package
38
+ result = api_instance.create(data)
39
+ p result
40
+ rescue PulpRpmClient::ApiError => e
41
+ puts "Exception when calling ContentPackagesApi->create: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+
48
+ Name | Type | Description | Notes
49
+ ------------- | ------------- | ------------- | -------------
50
+ **data** | [**Package**](Package.md)| |
51
+
52
+ ### Return type
53
+
54
+ [**Package**](Package.md)
55
+
56
+ ### Authorization
57
+
58
+ [Basic](../README.md#Basic)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: application/json
63
+ - **Accept**: application/json
64
+
65
+
66
+ ## list
67
+
68
+ > InlineResponse2001 list(opts)
69
+
70
+ List packages
71
+
72
+ 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.
73
+
74
+ ### Example
75
+
76
+ ```ruby
77
+ # load the gem
78
+ require 'pulp_rpm_client'
79
+ # setup authorization
80
+ PulpRpmClient.configure do |config|
81
+ # Configure HTTP basic authorization: Basic
82
+ config.username = 'YOUR USERNAME'
83
+ config.password = 'YOUR PASSWORD'
84
+ end
85
+
86
+ api_instance = PulpRpmClient::ContentPackagesApi.new
87
+ opts = {
88
+ name: 'name_example', # String | Filter results where name matches value
89
+ name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
90
+ epoch: 'epoch_example', # String | Filter results where epoch matches value
91
+ epoch__in: 'epoch__in_example', # String | Filter results where epoch is in a comma-separated list of values
92
+ version: 'version_example', # String | Filter results where version matches value
93
+ version__in: 'version__in_example', # String | Filter results where version is in a comma-separated list of values
94
+ release: 'release_example', # String | Filter results where release matches value
95
+ release__in: 'release__in_example', # String | Filter results where release is in a comma-separated list of values
96
+ arch: 'arch_example', # String | Filter results where arch matches value
97
+ arch__in: 'arch__in_example', # String | Filter results where arch is in a comma-separated list of values
98
+ pkg_id: 'pkg_id_example', # String | Filter results where pkgId matches value
99
+ pkg_id__in: 'pkg_id__in_example', # String | Filter results where pkgId is in a comma-separated list of values
100
+ checksum_type: 'checksum_type_example', # String | Filter results where checksum_type matches value
101
+ checksum_type__in: 'checksum_type__in_example', # String | Filter results where checksum_type is in a comma-separated list of values
102
+ repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
103
+ repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
104
+ repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
105
+ page: 56, # Integer | A page number within the paginated result set.
106
+ page_size: 56 # Integer | Number of results to return per page.
107
+ }
108
+
109
+ begin
110
+ #List packages
111
+ result = api_instance.list(opts)
112
+ p result
113
+ rescue PulpRpmClient::ApiError => e
114
+ puts "Exception when calling ContentPackagesApi->list: #{e}"
115
+ end
116
+ ```
117
+
118
+ ### Parameters
119
+
120
+
121
+ Name | Type | Description | Notes
122
+ ------------- | ------------- | ------------- | -------------
123
+ **name** | **String**| Filter results where name matches value | [optional]
124
+ **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
125
+ **epoch** | **String**| Filter results where epoch matches value | [optional]
126
+ **epoch__in** | **String**| Filter results where epoch is in a comma-separated list of values | [optional]
127
+ **version** | **String**| Filter results where version matches value | [optional]
128
+ **version__in** | **String**| Filter results where version is in a comma-separated list of values | [optional]
129
+ **release** | **String**| Filter results where release matches value | [optional]
130
+ **release__in** | **String**| Filter results where release is in a comma-separated list of values | [optional]
131
+ **arch** | **String**| Filter results where arch matches value | [optional]
132
+ **arch__in** | **String**| Filter results where arch is in a comma-separated list of values | [optional]
133
+ **pkg_id** | **String**| Filter results where pkgId matches value | [optional]
134
+ **pkg_id__in** | **String**| Filter results where pkgId is in a comma-separated list of values | [optional]
135
+ **checksum_type** | **String**| Filter results where checksum_type matches value | [optional]
136
+ **checksum_type__in** | **String**| Filter results where checksum_type is in a comma-separated list of values | [optional]
137
+ **repository_version** | **String**| Repository Version referenced by HREF | [optional]
138
+ **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
139
+ **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
140
+ **page** | **Integer**| A page number within the paginated result set. | [optional]
141
+ **page_size** | **Integer**| Number of results to return per page. | [optional]
142
+
143
+ ### Return type
144
+
145
+ [**InlineResponse2001**](InlineResponse2001.md)
146
+
147
+ ### Authorization
148
+
149
+ [Basic](../README.md#Basic)
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: Not defined
154
+ - **Accept**: application/json
155
+
156
+
157
+ ## read
158
+
159
+ > Package read(package_href)
160
+
161
+ Inspect a package
162
+
163
+ 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.
164
+
165
+ ### Example
166
+
167
+ ```ruby
168
+ # load the gem
169
+ require 'pulp_rpm_client'
170
+ # setup authorization
171
+ PulpRpmClient.configure do |config|
172
+ # Configure HTTP basic authorization: Basic
173
+ config.username = 'YOUR USERNAME'
174
+ config.password = 'YOUR PASSWORD'
175
+ end
176
+
177
+ api_instance = PulpRpmClient::ContentPackagesApi.new
178
+ package_href = 'package_href_example' # String | URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
179
+
180
+ begin
181
+ #Inspect a package
182
+ result = api_instance.read(package_href)
183
+ p result
184
+ rescue PulpRpmClient::ApiError => e
185
+ puts "Exception when calling ContentPackagesApi->read: #{e}"
186
+ end
187
+ ```
188
+
189
+ ### Parameters
190
+
191
+
192
+ Name | Type | Description | Notes
193
+ ------------- | ------------- | ------------- | -------------
194
+ **package_href** | **String**| URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/ |
195
+
196
+ ### Return type
197
+
198
+ [**Package**](Package.md)
199
+
200
+ ### Authorization
201
+
202
+ [Basic](../README.md#Basic)
203
+
204
+ ### HTTP request headers
205
+
206
+ - **Content-Type**: Not defined
207
+ - **Accept**: application/json
208
+