pulp_rpm_client 3.11.0 → 3.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdf857673099dba05fd77f082635e3cf56e6b7fe4e6acd125effdf3fced4ec27
4
- data.tar.gz: d674ce5353ecfc6e1d6bb03882107f2888ac4c8740d1ab827dacaefd8e5d125e
3
+ metadata.gz: 8a86254bc56e2697f6c2750353346f52d89742bc2f37e36d3c2e4a1bbfc606f0
4
+ data.tar.gz: f17fe98ef1b91cbdd53b4631cd4ea73ed9fd88fcc1c6d364e1c2d72e5948cda0
5
5
  SHA512:
6
- metadata.gz: 8a5eb46052ffaddffca9dd080a46894c65a2ec1df0e5c1676c649a05485e470e3c23add8456967bf7c9343e4e63803180830db31602d87dea02db1f2c07860bf
7
- data.tar.gz: 03cf3a885951ce6d8e133fe037c22aacc80753bf817dbc14e77113819fcef435699555336b2a585a36a5dda6ed0e71613421ef664333d7718937d6b261cf9349
6
+ metadata.gz: edcd55f891e8c0ee89b66ccc084084b36a5da13cca3fd72406f6ed5b752f1cd98727447a789efcc9657efc13bf88a5d0fa1a4871923bc11ad586abf910636893
7
+ data.tar.gz: 6010f4b61e72bbcccf006a9ad1c10f4ebfc965417f681a24598f12b2845b1923520dbec9ccdee7ae3288d96da244c9f74acc4a49b435fb35e98dc00370cee894
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
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.11.0
10
+ - Package version: 3.11.1
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_rpm_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_rpm_client-3.11.0.gem
27
+ gem install ./pulp_rpm_client-3.11.1.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_rpm_client-3.11.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_rpm_client-3.11.1.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_rpm_client', '~> 3.11.0'
36
+ gem 'pulp_rpm_client', '~> 3.11.1'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -12,7 +12,7 @@ Method | HTTP request | Description
12
12
 
13
13
  ## create
14
14
 
15
- > AsyncOperationResponse create(relative_path, name, stream, version, static_context, context, arch, artifacts, dependencies, opts)
15
+ > AsyncOperationResponse create(relative_path, name, stream, version, context, arch, artifacts, dependencies, opts)
16
16
 
17
17
  Create a modulemd
18
18
 
@@ -35,7 +35,6 @@ relative_path = 'relative_path_example' # String | Path where the artifact is lo
35
35
  name = 'name_example' # String | Modulemd name.
36
36
  stream = 'stream_example' # String | Stream name.
37
37
  version = 'version_example' # String | Modulemd version.
38
- static_context = true # Boolean | Modulemd static-context flag.
39
38
  context = 'context_example' # String | Modulemd context.
40
39
  arch = 'arch_example' # String | Modulemd architecture.
41
40
  artifacts = nil # Object | Modulemd artifacts.
@@ -44,12 +43,13 @@ opts = {
44
43
  artifact: 'artifact_example', # String | Artifact file representing the physical content
45
44
  file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
46
45
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
46
+ static_context: true, # Boolean | Modulemd static-context flag.
47
47
  packages: 'packages_example' # Array<String> | Modulemd artifacts' packages.
48
48
  }
49
49
 
50
50
  begin
51
51
  #Create a modulemd
52
- result = api_instance.create(relative_path, name, stream, version, static_context, context, arch, artifacts, dependencies, opts)
52
+ result = api_instance.create(relative_path, name, stream, version, context, arch, artifacts, dependencies, opts)
53
53
  p result
54
54
  rescue PulpRpmClient::ApiError => e
55
55
  puts "Exception when calling ContentModulemdsApi->create: #{e}"
@@ -65,7 +65,6 @@ Name | Type | Description | Notes
65
65
  **name** | **String**| Modulemd name. |
66
66
  **stream** | **String**| Stream name. |
67
67
  **version** | **String**| Modulemd version. |
68
- **static_context** | **Boolean**| Modulemd static-context flag. |
69
68
  **context** | **String**| Modulemd context. |
70
69
  **arch** | **String**| Modulemd architecture. |
71
70
  **artifacts** | [**Object**](Object.md)| Modulemd artifacts. |
@@ -73,6 +72,7 @@ Name | Type | Description | Notes
73
72
  **artifact** | **String**| Artifact file representing the physical content | [optional]
74
73
  **file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
75
74
  **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
75
+ **static_context** | **Boolean**| Modulemd static-context flag. | [optional]
76
76
  **packages** | [**Array&lt;String&gt;**](String.md)| Modulemd artifacts&#39; packages. | [optional]
77
77
 
78
78
  ### Return type
data/docs/RpmModulemd.md CHANGED
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  **name** | **String** | Modulemd name. |
12
12
  **stream** | **String** | Stream name. |
13
13
  **version** | **String** | Modulemd version. |
14
- **static_context** | **Boolean** | Modulemd static-context flag. |
14
+ **static_context** | **Boolean** | Modulemd static-context flag. | [optional]
15
15
  **context** | **String** | Modulemd context. |
16
16
  **arch** | **String** | Modulemd architecture. |
17
17
  **artifacts** | [**Object**](.md) | Modulemd artifacts. |
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
16
16
  **name** | **String** | Modulemd name. |
17
17
  **stream** | **String** | Stream name. |
18
18
  **version** | **String** | Modulemd version. |
19
- **static_context** | **Boolean** | Modulemd static-context flag. |
19
+ **static_context** | **Boolean** | Modulemd static-context flag. | [optional]
20
20
  **context** | **String** | Modulemd context. |
21
21
  **arch** | **String** | Modulemd architecture. |
22
22
  **artifacts** | [**Object**](.md) | Modulemd artifacts. |
@@ -25,7 +25,6 @@ module PulpRpmClient
25
25
  # @param name [String] Modulemd name.
26
26
  # @param stream [String] Stream name.
27
27
  # @param version [String] Modulemd version.
28
- # @param static_context [Boolean] Modulemd static-context flag.
29
28
  # @param context [String] Modulemd context.
30
29
  # @param arch [String] Modulemd architecture.
31
30
  # @param artifacts [Object] Modulemd artifacts.
@@ -34,10 +33,11 @@ module PulpRpmClient
34
33
  # @option opts [String] :artifact Artifact file representing the physical content
35
34
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
36
35
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
36
+ # @option opts [Boolean] :static_context Modulemd static-context flag.
37
37
  # @option opts [Array<String>] :packages Modulemd artifacts&#39; packages.
38
38
  # @return [AsyncOperationResponse]
39
- def create(relative_path, name, stream, version, static_context, context, arch, artifacts, dependencies, opts = {})
40
- data, _status_code, _headers = create_with_http_info(relative_path, name, stream, version, static_context, context, arch, artifacts, dependencies, opts)
39
+ def create(relative_path, name, stream, version, context, arch, artifacts, dependencies, opts = {})
40
+ data, _status_code, _headers = create_with_http_info(relative_path, name, stream, version, context, arch, artifacts, dependencies, opts)
41
41
  data
42
42
  end
43
43
 
@@ -47,7 +47,6 @@ module PulpRpmClient
47
47
  # @param name [String] Modulemd name.
48
48
  # @param stream [String] Stream name.
49
49
  # @param version [String] Modulemd version.
50
- # @param static_context [Boolean] Modulemd static-context flag.
51
50
  # @param context [String] Modulemd context.
52
51
  # @param arch [String] Modulemd architecture.
53
52
  # @param artifacts [Object] Modulemd artifacts.
@@ -56,9 +55,10 @@ module PulpRpmClient
56
55
  # @option opts [String] :artifact Artifact file representing the physical content
57
56
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
58
57
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
58
+ # @option opts [Boolean] :static_context Modulemd static-context flag.
59
59
  # @option opts [Array<String>] :packages Modulemd artifacts&#39; packages.
60
60
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
61
- def create_with_http_info(relative_path, name, stream, version, static_context, context, arch, artifacts, dependencies, opts = {})
61
+ def create_with_http_info(relative_path, name, stream, version, context, arch, artifacts, dependencies, opts = {})
62
62
  if @api_client.config.debugging
63
63
  @api_client.config.logger.debug 'Calling API: ContentModulemdsApi.create ...'
64
64
  end
@@ -78,10 +78,6 @@ module PulpRpmClient
78
78
  if @api_client.config.client_side_validation && version.nil?
79
79
  fail ArgumentError, "Missing the required parameter 'version' when calling ContentModulemdsApi.create"
80
80
  end
81
- # verify the required parameter 'static_context' is set
82
- if @api_client.config.client_side_validation && static_context.nil?
83
- fail ArgumentError, "Missing the required parameter 'static_context' when calling ContentModulemdsApi.create"
84
- end
85
81
  # verify the required parameter 'context' is set
86
82
  if @api_client.config.client_side_validation && context.nil?
87
83
  fail ArgumentError, "Missing the required parameter 'context' when calling ContentModulemdsApi.create"
@@ -109,7 +105,6 @@ module PulpRpmClient
109
105
  form_params['name'] = name
110
106
  form_params['stream'] = stream
111
107
  form_params['version'] = version
112
- form_params['static_context'] = static_context
113
108
  form_params['context'] = context
114
109
  form_params['arch'] = arch
115
110
  form_params['artifacts'] = artifacts
@@ -117,6 +112,7 @@ module PulpRpmClient
117
112
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
118
113
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
119
114
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
115
+ form_params['static_context'] = opts[:'static_context'] if !opts[:'static_context'].nil?
120
116
  form_params['packages'] = @api_client.build_collection_param(opts[:'packages'], :csv) if !opts[:'packages'].nil?
121
117
 
122
118
  # http body (model)
@@ -190,10 +190,6 @@ module PulpRpmClient
190
190
  invalid_properties.push('invalid value for "version", version cannot be nil.')
191
191
  end
192
192
 
193
- if @static_context.nil?
194
- invalid_properties.push('invalid value for "static_context", static_context cannot be nil.')
195
- end
196
-
197
193
  if @context.nil?
198
194
  invalid_properties.push('invalid value for "context", context cannot be nil.')
199
195
  end
@@ -212,7 +208,6 @@ module PulpRpmClient
212
208
  return false if @name.nil?
213
209
  return false if @stream.nil?
214
210
  return false if @version.nil?
215
- return false if @static_context.nil?
216
211
  return false if @context.nil?
217
212
  return false if @arch.nil?
218
213
  true
@@ -230,10 +230,6 @@ module PulpRpmClient
230
230
  invalid_properties.push('invalid value for "version", version cannot be nil.')
231
231
  end
232
232
 
233
- if @static_context.nil?
234
- invalid_properties.push('invalid value for "static_context", static_context cannot be nil.')
235
- end
236
-
237
233
  if @context.nil?
238
234
  invalid_properties.push('invalid value for "context", context cannot be nil.')
239
235
  end
@@ -251,7 +247,6 @@ module PulpRpmClient
251
247
  return false if @name.nil?
252
248
  return false if @stream.nil?
253
249
  return false if @version.nil?
254
- return false if @static_context.nil?
255
250
  return false if @context.nil?
256
251
  return false if @arch.nil?
257
252
  true
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.11.0'
14
+ VERSION = '3.11.1'
15
15
  end
@@ -39,7 +39,6 @@ describe 'ContentModulemdsApi' do
39
39
  # @param name Modulemd name.
40
40
  # @param stream Stream name.
41
41
  # @param version Modulemd version.
42
- # @param static_context Modulemd static-context flag.
43
42
  # @param context Modulemd context.
44
43
  # @param arch Modulemd architecture.
45
44
  # @param artifacts Modulemd artifacts.
@@ -48,6 +47,7 @@ describe 'ContentModulemdsApi' do
48
47
  # @option opts [String] :artifact Artifact file representing the physical content
49
48
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
50
49
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
50
+ # @option opts [Boolean] :static_context Modulemd static-context flag.
51
51
  # @option opts [Array<String>] :packages Modulemd artifacts&#39; packages.
52
52
  # @return [AsyncOperationResponse]
53
53
  describe 'create test' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_rpm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.0
4
+ version: 3.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-18 00:00:00.000000000 Z
11
+ date: 2021-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -333,81 +333,81 @@ signing_key:
333
333
  specification_version: 4
334
334
  summary: Pulp 3 API Ruby Gem
335
335
  test_files:
336
- - spec/api/content_repo_metadata_files_api_spec.rb
336
+ - spec/api/repositories_rpm_api_spec.rb
337
+ - spec/api/distributions_rpm_api_spec.rb
338
+ - spec/api/content_packagegroups_api_spec.rb
337
339
  - spec/api/content_packagecategories_api_spec.rb
338
- - spec/api/content_packages_api_spec.rb
339
340
  - spec/api/remotes_rpm_api_spec.rb
341
+ - spec/api/content_packageenvironments_api_spec.rb
342
+ - spec/api/content_repo_metadata_files_api_spec.rb
343
+ - spec/api/content_packages_api_spec.rb
344
+ - spec/api/content_distribution_trees_api_spec.rb
340
345
  - spec/api/content_modulemds_api_spec.rb
346
+ - spec/api/content_modulemd_defaults_api_spec.rb
341
347
  - spec/api/repositories_rpm_versions_api_spec.rb
342
- - spec/api/distributions_rpm_api_spec.rb
343
348
  - spec/api/publications_rpm_api_spec.rb
344
349
  - spec/api/content_packagelangpacks_api_spec.rb
345
- - spec/api/content_advisories_api_spec.rb
346
- - spec/api/repositories_rpm_api_spec.rb
347
- - spec/api/content_modulemd_defaults_api_spec.rb
348
- - spec/api/content_distribution_trees_api_spec.rb
349
- - spec/api/content_packageenvironments_api_spec.rb
350
350
  - spec/api/rpm_copy_api_spec.rb
351
- - spec/api/content_packagegroups_api_spec.rb
351
+ - spec/api/content_advisories_api_spec.rb
352
352
  - spec/api_client_spec.rb
353
353
  - spec/configuration_spec.rb
354
- - spec/models/rpm_package_group_response_spec.rb
355
- - spec/models/rpm_rpm_publication_spec.rb
356
- - spec/models/paginatedrpm_distribution_tree_response_list_spec.rb
357
- - spec/models/patchedrpm_rpm_distribution_spec.rb
358
- - spec/models/patchedrpm_rpm_repository_spec.rb
359
- - spec/models/paginatedrpm_rpm_repository_response_list_spec.rb
360
- - spec/models/rpm_package_category_response_spec.rb
361
- - spec/models/paginatedrpm_package_category_response_list_spec.rb
362
- - spec/models/rpm_rpm_distribution_response_spec.rb
363
- - spec/models/repository_version_spec.rb
364
- - spec/models/rpm_rpm_publication_response_spec.rb
365
- - spec/models/copy_spec.rb
366
- - spec/models/rpm_rpm_remote_response_spec.rb
367
- - spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb
368
- - spec/models/rpm_rpm_repository_spec.rb
369
- - spec/models/addon_response_spec.rb
370
- - spec/models/paginatedrpm_package_environment_response_list_spec.rb
371
- - spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb
372
- - spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb
373
354
  - spec/models/rpm_modulemd_defaults_spec.rb
374
- - spec/models/skip_types_enum_spec.rb
355
+ - spec/models/copy_spec.rb
356
+ - spec/models/rpm_modulemd_response_spec.rb
357
+ - spec/models/repository_version_response_spec.rb
358
+ - spec/models/rpm_rpm_distribution_response_spec.rb
359
+ - spec/models/paginatedrpm_modulemd_response_list_spec.rb
360
+ - spec/models/patchedrpm_rpm_repository_spec.rb
361
+ - spec/models/rpm_rpm_remote_spec.rb
362
+ - spec/models/rpm_repo_metadata_file_response_spec.rb
363
+ - spec/models/package_checksum_type_enum_spec.rb
375
364
  - spec/models/patchedrpm_rpm_remote_spec.rb
376
365
  - spec/models/policy_enum_spec.rb
377
- - spec/models/rpm_package_response_spec.rb
378
- - spec/models/rpm_rpm_distribution_spec.rb
366
+ - spec/models/rpm_package_category_response_spec.rb
379
367
  - spec/models/paginatedrpm_package_group_response_list_spec.rb
380
- - spec/models/rpm_rpm_remote_spec.rb
381
- - spec/models/rpm_repo_metadata_file_response_spec.rb
382
368
  - spec/models/artifact_response_spec.rb
383
- - spec/models/rpm_repository_sync_url_spec.rb
384
- - spec/models/metadata_checksum_type_enum_spec.rb
385
- - spec/models/repository_version_response_spec.rb
386
- - spec/models/async_operation_response_spec.rb
387
- - spec/models/repository_add_remove_content_spec.rb
388
- - spec/models/rpm_modulemd_defaults_response_spec.rb
389
- - spec/models/rpm_update_record_response_spec.rb
390
- - spec/models/rpm_package_langpacks_response_spec.rb
391
- - spec/models/content_summary_spec.rb
369
+ - spec/models/addon_response_spec.rb
370
+ - spec/models/rpm_package_environment_response_spec.rb
392
371
  - spec/models/rpm_update_collection_response_spec.rb
393
- - spec/models/rpm_distribution_tree_response_spec.rb
394
- - spec/models/rpm_modulemd_spec.rb
395
- - spec/models/content_summary_response_spec.rb
372
+ - spec/models/rpm_package_group_response_spec.rb
373
+ - spec/models/skip_types_enum_spec.rb
374
+ - spec/models/rpm_package_spec.rb
396
375
  - spec/models/paginatedrpm_rpm_remote_response_list_spec.rb
397
- - spec/models/paginatedrpm_update_record_response_list_spec.rb
398
- - spec/models/paginatedrpm_rpm_publication_response_list_spec.rb
399
- - spec/models/rpm_modulemd_response_spec.rb
376
+ - spec/models/rpm_package_langpacks_response_spec.rb
377
+ - spec/models/paginatedrpm_rpm_repository_response_list_spec.rb
378
+ - spec/models/rpm_repository_sync_url_spec.rb
400
379
  - spec/models/rpm_rpm_repository_response_spec.rb
401
- - spec/models/variant_response_spec.rb
402
380
  - spec/models/paginated_repository_version_response_list_spec.rb
403
- - spec/models/rpm_package_environment_response_spec.rb
404
- - spec/models/paginatedrpm_package_response_list_spec.rb
405
- - spec/models/rpm_update_collection_spec.rb
406
- - spec/models/rpm_package_spec.rb
407
- - spec/models/image_response_spec.rb
408
- - spec/models/paginatedrpm_modulemd_response_list_spec.rb
381
+ - spec/models/repository_add_remove_content_spec.rb
382
+ - spec/models/paginatedrpm_package_category_response_list_spec.rb
383
+ - spec/models/paginatedrpm_package_environment_response_list_spec.rb
384
+ - spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb
385
+ - spec/models/variant_response_spec.rb
386
+ - spec/models/content_summary_response_spec.rb
387
+ - spec/models/repository_version_spec.rb
388
+ - spec/models/rpm_modulemd_defaults_response_spec.rb
409
389
  - spec/models/paginatedrpm_package_langpacks_response_list_spec.rb
410
- - spec/models/rpm_update_record_spec.rb
411
- - spec/models/package_checksum_type_enum_spec.rb
390
+ - spec/models/rpm_distribution_tree_response_spec.rb
391
+ - spec/models/rpm_rpm_remote_response_spec.rb
412
392
  - spec/models/checksum_response_spec.rb
393
+ - spec/models/content_summary_spec.rb
394
+ - spec/models/rpm_update_record_spec.rb
395
+ - spec/models/paginatedrpm_rpm_publication_response_list_spec.rb
396
+ - spec/models/rpm_update_record_response_spec.rb
397
+ - spec/models/rpm_rpm_distribution_spec.rb
398
+ - spec/models/rpm_rpm_repository_spec.rb
399
+ - spec/models/image_response_spec.rb
400
+ - spec/models/metadata_checksum_type_enum_spec.rb
401
+ - spec/models/rpm_update_collection_spec.rb
402
+ - spec/models/rpm_modulemd_spec.rb
403
+ - spec/models/paginatedrpm_package_response_list_spec.rb
404
+ - spec/models/paginatedrpm_update_record_response_list_spec.rb
405
+ - spec/models/paginatedrpm_distribution_tree_response_list_spec.rb
406
+ - spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb
407
+ - spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb
408
+ - spec/models/rpm_package_response_spec.rb
409
+ - spec/models/patchedrpm_rpm_distribution_spec.rb
410
+ - spec/models/async_operation_response_spec.rb
411
+ - spec/models/rpm_rpm_publication_response_spec.rb
412
+ - spec/models/rpm_rpm_publication_spec.rb
413
413
  - spec/spec_helper.rb