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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a3011963562f168d3d3928158af40ffd4b264082c04344b65d2123498bcb31f
4
- data.tar.gz: df970bd8fbb9c10eeb48d274558055415fc5a6978220ed80da3fc7e0d2f3bed2
3
+ metadata.gz: a1fb0c0a531addcab1f64ec989cf90cf29b33198decf09abc0f756d9263e6540
4
+ data.tar.gz: 4d9c9d056c42555c4b88cc5c7734d10fad323bf5452cabc6bb706652679a272b
5
5
  SHA512:
6
- metadata.gz: 38e2bb30a78953ea236cd4af73158ec1790b725d766fcc3b4a807593d5883e10883880f5bcdfc83beb92fb1a8197592cb8a3141c5422721c419ca0dde62c29df
7
- data.tar.gz: a19ab7366fcfda9585916ab4bb06c454a29d28fd75788a70276334fae5449581e203ef95cfa8faec019c8a4780f1c02105b482a3ee999b4fb740a251ab20ac62
6
+ metadata.gz: 1c1c0c8d9548acca335519c646d99c9456dd649a4c31fa0c27c8028e3c62066df2336dc3b326512511372725b15a6e387561a492a3ca779c65abcf91aa720213
7
+ data.tar.gz: 38ab378aa33c454a2dc6bf6fb64d7e4c02f7ab6b9735617bfdcc1c72c99de03e2d901f1aca129aecf8e42ca0e665890c5ee8728aba89bb342f16b98b7b4801b6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pulp_rpm_client (3.0.0b3.dev.1560786621)
4
+ pulp_rpm_client (3.0.0b4)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 3.0.0b3.dev.1560786621
10
+ - Package version: 3.0.0b4
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build pulp_rpm_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./pulp_rpm_client-3.0.0b3.dev.1560786621.gem
26
+ gem install ./pulp_rpm_client-3.0.0b4.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulp_rpm_client-3.0.0b3.dev.1560786621.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulp_rpm_client-3.0.0b4.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'pulp_rpm_client', '~> 3.0.0b3.dev.1560786621'
35
+ gem 'pulp_rpm_client', '~> 3.0.0b4'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -63,15 +63,15 @@ PulpRpmClient.configure do |config|
63
63
  config.password = 'YOUR PASSWORD'
64
64
  end
65
65
 
66
- api_instance = PulpRpmClient::ContentApi.new
66
+ api_instance = PulpRpmClient::ContentAdvisoriesApi.new
67
67
  data = PulpRpmClient::UpdateRecord.new # UpdateRecord |
68
68
 
69
69
  begin
70
70
  #Create an update record
71
- result = api_instance.content_rpm_advisories_create(data)
71
+ result = api_instance.create(data)
72
72
  p result
73
73
  rescue PulpRpmClient::ApiError => e
74
- puts "Exception when calling ContentApi->content_rpm_advisories_create: #{e}"
74
+ puts "Exception when calling ContentAdvisoriesApi->create: #{e}"
75
75
  end
76
76
 
77
77
  ```
@@ -82,31 +82,31 @@ All URIs are relative to *http://localhost:24817*
82
82
 
83
83
  Class | Method | HTTP request | Description
84
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
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
110
 
111
111
 
112
112
  ## Documentation for Models
@@ -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
+