pulp_rpm_client 3.0.0b5 → 3.0.0b6

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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -6
  3. data/docs/ContentAdvisoriesApi.md +3 -3
  4. data/docs/ContentModulemdApi.md +210 -0
  5. data/docs/ContentModulemdDefaultsApi.md +200 -0
  6. data/docs/ContentPackagesApi.md +17 -9
  7. data/docs/DistributionTreesDistributionTreesApi.md +2 -2
  8. data/docs/DistributionsRpmApi.md +2 -2
  9. data/docs/InlineResponse2001.md +1 -1
  10. data/docs/InlineResponse2002.md +1 -1
  11. data/docs/InlineResponse2003.md +1 -1
  12. data/docs/InlineResponse2004.md +1 -1
  13. data/docs/InlineResponse2005.md +1 -1
  14. data/docs/InlineResponse2006.md +1 -1
  15. data/docs/InlineResponse2007.md +23 -0
  16. data/docs/InlineResponse2008.md +23 -0
  17. data/docs/Modulemd.md +45 -0
  18. data/docs/ModulemdDefaults.md +35 -0
  19. data/docs/Package.md +23 -19
  20. data/docs/PublicationsRpmApi.md +2 -2
  21. data/docs/RemotesRpmApi.md +2 -2
  22. data/docs/RepoMetadataFile.md +5 -1
  23. data/docs/RepoMetadataFilesRepoMetadataFilesApi.md +2 -2
  24. data/docs/RpmCopyApi.md +1 -1
  25. data/lib/pulp_rpm_client/api/content_advisories_api.rb +5 -5
  26. data/lib/pulp_rpm_client/api/content_modulemd_api.rb +319 -0
  27. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +272 -0
  28. data/lib/pulp_rpm_client/api/content_packages_api.rb +32 -18
  29. data/lib/pulp_rpm_client/api/distribution_trees_distribution_trees_api.rb +3 -3
  30. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +3 -3
  31. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +3 -3
  32. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +3 -3
  33. data/lib/pulp_rpm_client/api/repo_metadata_files_repo_metadata_files_api.rb +3 -3
  34. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +1 -1
  35. data/lib/pulp_rpm_client/models/inline_response2001.rb +1 -1
  36. data/lib/pulp_rpm_client/models/inline_response2002.rb +1 -1
  37. data/lib/pulp_rpm_client/models/inline_response2003.rb +1 -1
  38. data/lib/pulp_rpm_client/models/inline_response2004.rb +1 -1
  39. data/lib/pulp_rpm_client/models/inline_response2005.rb +1 -1
  40. data/lib/pulp_rpm_client/models/inline_response2006.rb +1 -1
  41. data/lib/pulp_rpm_client/models/inline_response2007.rb +235 -0
  42. data/lib/pulp_rpm_client/models/inline_response2008.rb +235 -0
  43. data/lib/pulp_rpm_client/models/modulemd.rb +544 -0
  44. data/lib/pulp_rpm_client/models/modulemd_defaults.rb +396 -0
  45. data/lib/pulp_rpm_client/models/package.rb +73 -156
  46. data/lib/pulp_rpm_client/models/repo_metadata_file.rb +21 -6
  47. data/lib/pulp_rpm_client/version.rb +1 -1
  48. data/lib/pulp_rpm_client.rb +6 -1
  49. data/spec/api/content_advisories_api_spec.rb +2 -2
  50. data/spec/api/content_modulemd_api_spec.rb +88 -0
  51. data/spec/api/content_modulemd_defaults_api_spec.rb +83 -0
  52. data/spec/api/content_packages_api_spec.rb +7 -4
  53. data/spec/api/distribution_trees_distribution_trees_api_spec.rb +1 -1
  54. data/spec/api/distributions_rpm_api_spec.rb +1 -1
  55. data/spec/api/publications_rpm_api_spec.rb +1 -1
  56. data/spec/api/remotes_rpm_api_spec.rb +1 -1
  57. data/spec/api/repo_metadata_files_repo_metadata_files_api_spec.rb +1 -1
  58. data/spec/models/inline_response2007_spec.rb +59 -0
  59. data/spec/models/inline_response2008_spec.rb +59 -0
  60. data/spec/models/modulemd_defaults_spec.rb +95 -0
  61. data/spec/models/modulemd_spec.rb +125 -0
  62. data/spec/models/package_spec.rb +16 -4
  63. data/spec/models/repo_metadata_file_spec.rb +12 -0
  64. metadata +26 -6
  65. data/docs/RpmUploadApi.md +0 -66
  66. data/lib/pulp_rpm_client/api/rpm_upload_api.rb +0 -90
  67. data/spec/api/rpm_upload_api_spec.rb +0 -48
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48dabe76606278d5bca0bfd2cdd7d71bd253467df29cef0c59832faa7bf5552b
4
- data.tar.gz: 3969ec1cca5704a632b85f8d36b81e4f270e27b133479ce088fa039e89a34d9a
3
+ metadata.gz: b6be90b168f1d2146ef66d723985f35ed0b21f12522ac3e69ae8d346f12eb9db
4
+ data.tar.gz: 95a5a8a8cfd46efaa01357cec7453369c7d2016bda4c3ea68b3c6fe9da58b9c9
5
5
  SHA512:
6
- metadata.gz: 3f2eca97d622dd2e6118f8e110b653d5a6373da2713a14b3eba5bcc6548f2d28d55f866bf44eadd676e24ddadb7a3a74bbee397aefb8cbcc4cf5815512ea11f8
7
- data.tar.gz: 4b5252f2b133f4af2f1100f87ce8019d338d02a0d8aaf1f384bdb72d5ed67ef34f99670112177ff08ecb77a060233f75a7d4e0b7c990e40814ad4827855890d9
6
+ metadata.gz: e2b134470628b3fda1cb934d47c67b552c9173daeb850a196ae1011ef04ee5a76fb19111cfd1681c4385157f4be3049dbecc6baf7379927c4ccee37bba9921e3
7
+ data.tar.gz: 7a6c1725b89aa26f187c8c0770b8e1da4e5bdcbe899b72768cd7c1867ce674f0d79e4daf788257dc26383ab83b218a530b1c5a12d3b99d517dc6ef5c1beace20
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.0b5
10
+ - Package version: 3.0.0b6
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.0b5.gem
26
+ gem install ./pulp_rpm_client-3.0.0b6.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulp_rpm_client-3.0.0b5.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulp_rpm_client-3.0.0b6.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.0b5'
35
+ gem 'pulp_rpm_client', '~> 3.0.0b6'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -85,6 +85,12 @@ Class | Method | HTTP request | Description
85
85
  *PulpRpmClient::ContentAdvisoriesApi* | [**create**](docs/ContentAdvisoriesApi.md#create) | **POST** /pulp/api/v3/content/rpm/advisories/ | Create an update record
86
86
  *PulpRpmClient::ContentAdvisoriesApi* | [**list**](docs/ContentAdvisoriesApi.md#list) | **GET** /pulp/api/v3/content/rpm/advisories/ | List update records
87
87
  *PulpRpmClient::ContentAdvisoriesApi* | [**read**](docs/ContentAdvisoriesApi.md#read) | **GET** {update_record_href} | Inspect an update record
88
+ *PulpRpmClient::ContentModulemdApi* | [**create**](docs/ContentModulemdApi.md#create) | **POST** /pulp/api/v3/content/rpm/modulemd/ | Create a modulemd
89
+ *PulpRpmClient::ContentModulemdApi* | [**list**](docs/ContentModulemdApi.md#list) | **GET** /pulp/api/v3/content/rpm/modulemd/ | List modulemds
90
+ *PulpRpmClient::ContentModulemdApi* | [**read**](docs/ContentModulemdApi.md#read) | **GET** {modulemd_href} | Inspect a modulemd
91
+ *PulpRpmClient::ContentModulemdDefaultsApi* | [**create**](docs/ContentModulemdDefaultsApi.md#create) | **POST** /pulp/api/v3/content/rpm/modulemd-defaults/ | Create a modulemd defaults
92
+ *PulpRpmClient::ContentModulemdDefaultsApi* | [**list**](docs/ContentModulemdDefaultsApi.md#list) | **GET** /pulp/api/v3/content/rpm/modulemd-defaults/ | List modulemd defaultss
93
+ *PulpRpmClient::ContentModulemdDefaultsApi* | [**read**](docs/ContentModulemdDefaultsApi.md#read) | **GET** {modulemd_defaults_href} | Inspect a modulemd defaults
88
94
  *PulpRpmClient::ContentPackagesApi* | [**create**](docs/ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/rpm/packages/ | Create a package
89
95
  *PulpRpmClient::ContentPackagesApi* | [**list**](docs/ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/rpm/packages/ | List packages
90
96
  *PulpRpmClient::ContentPackagesApi* | [**read**](docs/ContentPackagesApi.md#read) | **GET** {package_href} | Inspect a package
@@ -111,8 +117,7 @@ Class | Method | HTTP request | Description
111
117
  *PulpRpmClient::RepoMetadataFilesRepoMetadataFilesApi* | [**delete**](docs/RepoMetadataFilesRepoMetadataFilesApi.md#delete) | **DELETE** {repo_metadata_file_href} | Delete a repo metadata file
112
118
  *PulpRpmClient::RepoMetadataFilesRepoMetadataFilesApi* | [**list**](docs/RepoMetadataFilesRepoMetadataFilesApi.md#list) | **GET** /pulp/api/v3/repo_metadata_files/rpm/repo_metadata_files/ | List repo metadata files
113
119
  *PulpRpmClient::RepoMetadataFilesRepoMetadataFilesApi* | [**read**](docs/RepoMetadataFilesRepoMetadataFilesApi.md#read) | **GET** {repo_metadata_file_href} | Inspect a repo metadata file
114
- *PulpRpmClient::RpmCopyApi* | [**copy_content**](docs/RpmCopyApi.md#copy_content) | **POST** /rpm/copy/ | Copy content
115
- *PulpRpmClient::RpmUploadApi* | [**upload_rpm_package**](docs/RpmUploadApi.md#upload_rpm_package) | **POST** /rpm/upload/ | Upload a package
120
+ *PulpRpmClient::RpmCopyApi* | [**copy_content**](docs/RpmCopyApi.md#copy_content) | **POST** /pulp/api/v3/rpm/copy/ | Copy content
116
121
 
117
122
 
118
123
  ## Documentation for Models
@@ -130,6 +135,10 @@ Class | Method | HTTP request | Description
130
135
  - [PulpRpmClient::InlineResponse2004](docs/InlineResponse2004.md)
131
136
  - [PulpRpmClient::InlineResponse2005](docs/InlineResponse2005.md)
132
137
  - [PulpRpmClient::InlineResponse2006](docs/InlineResponse2006.md)
138
+ - [PulpRpmClient::InlineResponse2007](docs/InlineResponse2007.md)
139
+ - [PulpRpmClient::InlineResponse2008](docs/InlineResponse2008.md)
140
+ - [PulpRpmClient::Modulemd](docs/Modulemd.md)
141
+ - [PulpRpmClient::ModulemdDefaults](docs/ModulemdDefaults.md)
133
142
  - [PulpRpmClient::Package](docs/Package.md)
134
143
  - [PulpRpmClient::RepoMetadataFile](docs/RepoMetadataFile.md)
135
144
  - [PulpRpmClient::RepositorySyncURL](docs/RepositorySyncURL.md)
@@ -12,11 +12,11 @@ Method | HTTP request | Description
12
12
 
13
13
  ## create
14
14
 
15
- > UpdateRecord create(data)
15
+ > AsyncOperationResponse create(data)
16
16
 
17
17
  Create an update record
18
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.
19
+ Trigger an asynchronous task to create content,optionally create new repository version.
20
20
 
21
21
  ### Example
22
22
 
@@ -51,7 +51,7 @@ Name | Type | Description | Notes
51
51
 
52
52
  ### Return type
53
53
 
54
- [**UpdateRecord**](UpdateRecord.md)
54
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
55
55
 
56
56
  ### Authorization
57
57
 
@@ -0,0 +1,210 @@
1
+ # PulpRpmClient::ContentModulemdApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](ContentModulemdApi.md#create) | **POST** /pulp/api/v3/content/rpm/modulemd/ | Create a modulemd
8
+ [**list**](ContentModulemdApi.md#list) | **GET** /pulp/api/v3/content/rpm/modulemd/ | List modulemds
9
+ [**read**](ContentModulemdApi.md#read) | **GET** {modulemd_href} | Inspect a modulemd
10
+
11
+
12
+
13
+ ## create
14
+
15
+ > AsyncOperationResponse create(relative_path, name, stream, version, context, arch, artifacts, dependencies, opts)
16
+
17
+ Create a modulemd
18
+
19
+ Trigger an asynchronous task to create content,optionally create new repository version.
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::ContentModulemdApi.new
34
+ relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
35
+ name = 'name_example' # String | Modulemd name.
36
+ stream = 'stream_example' # String | Stream name.
37
+ version = 'version_example' # String | Modulemd version.
38
+ context = 'context_example' # String | Modulemd context.
39
+ arch = 'arch_example' # String | Modulemd architecture.
40
+ artifacts = 'artifacts_example' # String | Modulemd artifacts.
41
+ dependencies = 'dependencies_example' # String | Modulemd dependencies.
42
+ opts = {
43
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
44
+ file: File.new('/path/to/file'), # File | An uploaded file that should be turned into the artifact of the content unit.
45
+ repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
46
+ packages: 'packages_example' # Array<String> | Modulemd artifacts' packages.
47
+ }
48
+
49
+ begin
50
+ #Create a modulemd
51
+ result = api_instance.create(relative_path, name, stream, version, context, arch, artifacts, dependencies, opts)
52
+ p result
53
+ rescue PulpRpmClient::ApiError => e
54
+ puts "Exception when calling ContentModulemdApi->create: #{e}"
55
+ end
56
+ ```
57
+
58
+ ### Parameters
59
+
60
+
61
+ Name | Type | Description | Notes
62
+ ------------- | ------------- | ------------- | -------------
63
+ **relative_path** | **String**| Path where the artifact is located relative to distributions base_path |
64
+ **name** | **String**| Modulemd name. |
65
+ **stream** | **String**| Stream name. |
66
+ **version** | **String**| Modulemd version. |
67
+ **context** | **String**| Modulemd context. |
68
+ **arch** | **String**| Modulemd architecture. |
69
+ **artifacts** | **String**| Modulemd artifacts. |
70
+ **dependencies** | **String**| Modulemd dependencies. |
71
+ **artifact** | **String**| Artifact file representing the physical content | [optional]
72
+ **file** | **File**| An uploaded file that should be turned into the artifact of the content unit. | [optional]
73
+ **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
74
+ **packages** | [**Array&lt;String&gt;**](String.md)| Modulemd artifacts&#39; packages. | [optional]
75
+
76
+ ### Return type
77
+
78
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
79
+
80
+ ### Authorization
81
+
82
+ [Basic](../README.md#Basic)
83
+
84
+ ### HTTP request headers
85
+
86
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
87
+ - **Accept**: application/json
88
+
89
+
90
+ ## list
91
+
92
+ > InlineResponse2002 list(opts)
93
+
94
+ List modulemds
95
+
96
+ ViewSet for Modulemd.
97
+
98
+ ### Example
99
+
100
+ ```ruby
101
+ # load the gem
102
+ require 'pulp_rpm_client'
103
+ # setup authorization
104
+ PulpRpmClient.configure do |config|
105
+ # Configure HTTP basic authorization: Basic
106
+ config.username = 'YOUR USERNAME'
107
+ config.password = 'YOUR PASSWORD'
108
+ end
109
+
110
+ api_instance = PulpRpmClient::ContentModulemdApi.new
111
+ opts = {
112
+ repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
113
+ repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
114
+ repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
115
+ limit: 56, # Integer | Number of results to return per page.
116
+ offset: 56, # Integer | The initial index from which to return the results.
117
+ fields: 'fields_example' # String | A list of fields to include in the response.
118
+ }
119
+
120
+ begin
121
+ #List modulemds
122
+ result = api_instance.list(opts)
123
+ p result
124
+ rescue PulpRpmClient::ApiError => e
125
+ puts "Exception when calling ContentModulemdApi->list: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+
132
+ Name | Type | Description | Notes
133
+ ------------- | ------------- | ------------- | -------------
134
+ **repository_version** | **String**| Repository Version referenced by HREF | [optional]
135
+ **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
136
+ **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
137
+ **limit** | **Integer**| Number of results to return per page. | [optional]
138
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
139
+ **fields** | **String**| A list of fields to include in the response. | [optional]
140
+
141
+ ### Return type
142
+
143
+ [**InlineResponse2002**](InlineResponse2002.md)
144
+
145
+ ### Authorization
146
+
147
+ [Basic](../README.md#Basic)
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: Not defined
152
+ - **Accept**: application/json
153
+
154
+
155
+ ## read
156
+
157
+ > Modulemd read(modulemd_href, opts)
158
+
159
+ Inspect a modulemd
160
+
161
+ ViewSet for Modulemd.
162
+
163
+ ### Example
164
+
165
+ ```ruby
166
+ # load the gem
167
+ require 'pulp_rpm_client'
168
+ # setup authorization
169
+ PulpRpmClient.configure do |config|
170
+ # Configure HTTP basic authorization: Basic
171
+ config.username = 'YOUR USERNAME'
172
+ config.password = 'YOUR PASSWORD'
173
+ end
174
+
175
+ api_instance = PulpRpmClient::ContentModulemdApi.new
176
+ modulemd_href = 'modulemd_href_example' # String | URI of Modulemd. e.g.: /pulp/api/v3/content/rpm/modulemd/1/
177
+ opts = {
178
+ fields: 'fields_example' # String | A list of fields to include in the response.
179
+ }
180
+
181
+ begin
182
+ #Inspect a modulemd
183
+ result = api_instance.read(modulemd_href, opts)
184
+ p result
185
+ rescue PulpRpmClient::ApiError => e
186
+ puts "Exception when calling ContentModulemdApi->read: #{e}"
187
+ end
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+
193
+ Name | Type | Description | Notes
194
+ ------------- | ------------- | ------------- | -------------
195
+ **modulemd_href** | **String**| URI of Modulemd. e.g.: /pulp/api/v3/content/rpm/modulemd/1/ |
196
+ **fields** | **String**| A list of fields to include in the response. | [optional]
197
+
198
+ ### Return type
199
+
200
+ [**Modulemd**](Modulemd.md)
201
+
202
+ ### Authorization
203
+
204
+ [Basic](../README.md#Basic)
205
+
206
+ ### HTTP request headers
207
+
208
+ - **Content-Type**: Not defined
209
+ - **Accept**: application/json
210
+
@@ -0,0 +1,200 @@
1
+ # PulpRpmClient::ContentModulemdDefaultsApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](ContentModulemdDefaultsApi.md#create) | **POST** /pulp/api/v3/content/rpm/modulemd-defaults/ | Create a modulemd defaults
8
+ [**list**](ContentModulemdDefaultsApi.md#list) | **GET** /pulp/api/v3/content/rpm/modulemd-defaults/ | List modulemd defaultss
9
+ [**read**](ContentModulemdDefaultsApi.md#read) | **GET** {modulemd_defaults_href} | Inspect a modulemd defaults
10
+
11
+
12
+
13
+ ## create
14
+
15
+ > AsyncOperationResponse create(relative_path, _module, stream, profiles, opts)
16
+
17
+ Create a modulemd defaults
18
+
19
+ Trigger an asynchronous task to create content,optionally create new repository version.
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::ContentModulemdDefaultsApi.new
34
+ relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
35
+ _module = '_module_example' # String | Modulemd name.
36
+ stream = 'stream_example' # String | Modulemd default stream.
37
+ profiles = 'profiles_example' # String | Default profiles for modulemd streams.
38
+ opts = {
39
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
40
+ file: File.new('/path/to/file'), # File | An uploaded file that should be turned into the artifact of the content unit.
41
+ repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
42
+ }
43
+
44
+ begin
45
+ #Create a modulemd defaults
46
+ result = api_instance.create(relative_path, _module, stream, profiles, opts)
47
+ p result
48
+ rescue PulpRpmClient::ApiError => e
49
+ puts "Exception when calling ContentModulemdDefaultsApi->create: #{e}"
50
+ end
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+
56
+ Name | Type | Description | Notes
57
+ ------------- | ------------- | ------------- | -------------
58
+ **relative_path** | **String**| Path where the artifact is located relative to distributions base_path |
59
+ **_module** | **String**| Modulemd name. |
60
+ **stream** | **String**| Modulemd default stream. |
61
+ **profiles** | **String**| Default profiles for modulemd streams. |
62
+ **artifact** | **String**| Artifact file representing the physical content | [optional]
63
+ **file** | **File**| An uploaded file that should be turned into the artifact of the content unit. | [optional]
64
+ **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
65
+
66
+ ### Return type
67
+
68
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
69
+
70
+ ### Authorization
71
+
72
+ [Basic](../README.md#Basic)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
77
+ - **Accept**: application/json
78
+
79
+
80
+ ## list
81
+
82
+ > InlineResponse2001 list(opts)
83
+
84
+ List modulemd defaultss
85
+
86
+ ViewSet for Modulemd.
87
+
88
+ ### Example
89
+
90
+ ```ruby
91
+ # load the gem
92
+ require 'pulp_rpm_client'
93
+ # setup authorization
94
+ PulpRpmClient.configure do |config|
95
+ # Configure HTTP basic authorization: Basic
96
+ config.username = 'YOUR USERNAME'
97
+ config.password = 'YOUR PASSWORD'
98
+ end
99
+
100
+ api_instance = PulpRpmClient::ContentModulemdDefaultsApi.new
101
+ opts = {
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
+ limit: 56, # Integer | Number of results to return per page.
106
+ offset: 56, # Integer | The initial index from which to return the results.
107
+ fields: 'fields_example' # String | A list of fields to include in the response.
108
+ }
109
+
110
+ begin
111
+ #List modulemd defaultss
112
+ result = api_instance.list(opts)
113
+ p result
114
+ rescue PulpRpmClient::ApiError => e
115
+ puts "Exception when calling ContentModulemdDefaultsApi->list: #{e}"
116
+ end
117
+ ```
118
+
119
+ ### Parameters
120
+
121
+
122
+ Name | Type | Description | Notes
123
+ ------------- | ------------- | ------------- | -------------
124
+ **repository_version** | **String**| Repository Version referenced by HREF | [optional]
125
+ **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
126
+ **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
127
+ **limit** | **Integer**| Number of results to return per page. | [optional]
128
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
129
+ **fields** | **String**| A list of fields to include in the response. | [optional]
130
+
131
+ ### Return type
132
+
133
+ [**InlineResponse2001**](InlineResponse2001.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
+ > ModulemdDefaults read(modulemd_defaults_href, opts)
148
+
149
+ Inspect a modulemd defaults
150
+
151
+ ViewSet for Modulemd.
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::ContentModulemdDefaultsApi.new
166
+ modulemd_defaults_href = 'modulemd_defaults_href_example' # String | URI of Modulemd Defaults. e.g.: /pulp/api/v3/content/rpm/modulemd-defaults/1/
167
+ opts = {
168
+ fields: 'fields_example' # String | A list of fields to include in the response.
169
+ }
170
+
171
+ begin
172
+ #Inspect a modulemd defaults
173
+ result = api_instance.read(modulemd_defaults_href, opts)
174
+ p result
175
+ rescue PulpRpmClient::ApiError => e
176
+ puts "Exception when calling ContentModulemdDefaultsApi->read: #{e}"
177
+ end
178
+ ```
179
+
180
+ ### Parameters
181
+
182
+
183
+ Name | Type | Description | Notes
184
+ ------------- | ------------- | ------------- | -------------
185
+ **modulemd_defaults_href** | **String**| URI of Modulemd Defaults. e.g.: /pulp/api/v3/content/rpm/modulemd-defaults/1/ |
186
+ **fields** | **String**| A list of fields to include in the response. | [optional]
187
+
188
+ ### Return type
189
+
190
+ [**ModulemdDefaults**](ModulemdDefaults.md)
191
+
192
+ ### Authorization
193
+
194
+ [Basic](../README.md#Basic)
195
+
196
+ ### HTTP request headers
197
+
198
+ - **Content-Type**: Not defined
199
+ - **Accept**: application/json
200
+
@@ -12,11 +12,11 @@ Method | HTTP request | Description
12
12
 
13
13
  ## create
14
14
 
15
- > Package create(data)
15
+ > AsyncOperationResponse create(relative_path, opts)
16
16
 
17
17
  Create a package
18
18
 
19
- Create a new Package from a request.
19
+ Trigger an asynchronous task to create content,optionally create new repository version.
20
20
 
21
21
  ### Example
22
22
 
@@ -31,11 +31,16 @@ PulpRpmClient.configure do |config|
31
31
  end
32
32
 
33
33
  api_instance = PulpRpmClient::ContentPackagesApi.new
34
- data = PulpRpmClient::Package.new # Package |
34
+ relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
35
+ opts = {
36
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
37
+ file: File.new('/path/to/file'), # File | An uploaded file that should be turned into the artifact of the content unit.
38
+ repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
39
+ }
35
40
 
36
41
  begin
37
42
  #Create a package
38
- result = api_instance.create(data)
43
+ result = api_instance.create(relative_path, opts)
39
44
  p result
40
45
  rescue PulpRpmClient::ApiError => e
41
46
  puts "Exception when calling ContentPackagesApi->create: #{e}"
@@ -47,11 +52,14 @@ end
47
52
 
48
53
  Name | Type | Description | Notes
49
54
  ------------- | ------------- | ------------- | -------------
50
- **data** | [**Package**](Package.md)| |
55
+ **relative_path** | **String**| Path where the artifact is located relative to distributions base_path |
56
+ **artifact** | **String**| Artifact file representing the physical content | [optional]
57
+ **file** | **File**| An uploaded file that should be turned into the artifact of the content unit. | [optional]
58
+ **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
51
59
 
52
60
  ### Return type
53
61
 
54
- [**Package**](Package.md)
62
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
55
63
 
56
64
  ### Authorization
57
65
 
@@ -59,13 +67,13 @@ Name | Type | Description | Notes
59
67
 
60
68
  ### HTTP request headers
61
69
 
62
- - **Content-Type**: application/json
70
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
63
71
  - **Accept**: application/json
64
72
 
65
73
 
66
74
  ## list
67
75
 
68
- > InlineResponse2001 list(opts)
76
+ > InlineResponse2003 list(opts)
69
77
 
70
78
  List packages
71
79
 
@@ -144,7 +152,7 @@ Name | Type | Description | Notes
144
152
 
145
153
  ### Return type
146
154
 
147
- [**InlineResponse2001**](InlineResponse2001.md)
155
+ [**InlineResponse2003**](InlineResponse2003.md)
148
156
 
149
157
  ### Authorization
150
158
 
@@ -64,7 +64,7 @@ nil (empty response body)
64
64
 
65
65
  ## list
66
66
 
67
- > InlineResponse2002 list(opts)
67
+ > InlineResponse2004 list(opts)
68
68
 
69
69
  List distribution trees
70
70
 
@@ -109,7 +109,7 @@ Name | Type | Description | Notes
109
109
 
110
110
  ### Return type
111
111
 
112
- [**InlineResponse2002**](InlineResponse2002.md)
112
+ [**InlineResponse2004**](InlineResponse2004.md)
113
113
 
114
114
  ### Authorization
115
115
 
@@ -121,7 +121,7 @@ Name | Type | Description | Notes
121
121
 
122
122
  ## list
123
123
 
124
- > InlineResponse2003 list(opts)
124
+ > InlineResponse2005 list(opts)
125
125
 
126
126
  List rpm distributions
127
127
 
@@ -178,7 +178,7 @@ Name | Type | Description | Notes
178
178
 
179
179
  ### Return type
180
180
 
181
- [**InlineResponse2003**](InlineResponse2003.md)
181
+ [**InlineResponse2005**](InlineResponse2005.md)
182
182
 
183
183
  ### Authorization
184
184
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array&lt;Package&gt;**](Package.md) | |
10
+ **results** | [**Array&lt;ModulemdDefaults&gt;**](ModulemdDefaults.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array&lt;DistributionTree&gt;**](DistributionTree.md) | |
10
+ **results** | [**Array&lt;Modulemd&gt;**](Modulemd.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array&lt;RpmDistribution&gt;**](RpmDistribution.md) | |
10
+ **results** | [**Array&lt;Package&gt;**](Package.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array&lt;RpmPublication&gt;**](RpmPublication.md) | |
10
+ **results** | [**Array&lt;DistributionTree&gt;**](DistributionTree.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array&lt;RpmRemote&gt;**](RpmRemote.md) | |
10
+ **results** | [**Array&lt;RpmDistribution&gt;**](RpmDistribution.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array&lt;RepoMetadataFile&gt;**](RepoMetadataFile.md) | |
10
+ **results** | [**Array&lt;RpmPublication&gt;**](RpmPublication.md) | |
11
11
 
12
12
  ## Code Sample
13
13