pulp_container_client 2.1.0 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +4 -4
  4. data/docs/ContainerContainerDistribution.md +6 -6
  5. data/docs/ContainerContainerDistributionResponse.md +8 -8
  6. data/docs/ManifestCopy.md +1 -1
  7. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  8. data/docs/RecursiveManage.md +1 -1
  9. data/docs/TagCopy.md +1 -1
  10. data/lib/pulp_container_client/api/content_blobs_api.rb +1 -1
  11. data/lib/pulp_container_client/api/content_manifests_api.rb +1 -1
  12. data/lib/pulp_container_client/api/content_tags_api.rb +1 -1
  13. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +1 -1
  14. data/lib/pulp_container_client/api/distributions_container_api.rb +1 -1
  15. data/lib/pulp_container_client/api/remotes_container_api.rb +1 -1
  16. data/lib/pulp_container_client/api/repositories_container_api.rb +1 -1
  17. data/lib/pulp_container_client/api/repositories_container_push_api.rb +1 -1
  18. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +1 -1
  19. data/lib/pulp_container_client/api/token_api.rb +1 -1
  20. data/lib/pulp_container_client/api_client.rb +13 -12
  21. data/lib/pulp_container_client/api_error.rb +1 -1
  22. data/lib/pulp_container_client/configuration.rb +9 -1
  23. data/lib/pulp_container_client/models/async_operation_response.rb +1 -1
  24. data/lib/pulp_container_client/models/container_blob_response.rb +1 -1
  25. data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
  26. data/lib/pulp_container_client/models/container_container_distribution_response.rb +41 -41
  27. data/lib/pulp_container_client/models/container_container_push_repository.rb +1 -1
  28. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +1 -1
  29. data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
  30. data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
  31. data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
  32. data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
  33. data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +1 -1
  34. data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +1 -1
  35. data/lib/pulp_container_client/models/container_manifest_response.rb +1 -1
  36. data/lib/pulp_container_client/models/container_tag_response.rb +1 -1
  37. data/lib/pulp_container_client/models/content_summary.rb +1 -1
  38. data/lib/pulp_container_client/models/content_summary_response.rb +1 -1
  39. data/lib/pulp_container_client/models/inline_response200.rb +1 -1
  40. data/lib/pulp_container_client/models/inline_response2001.rb +1 -1
  41. data/lib/pulp_container_client/models/inline_response2002.rb +1 -1
  42. data/lib/pulp_container_client/models/inline_response2003.rb +1 -1
  43. data/lib/pulp_container_client/models/inline_response2004.rb +1 -1
  44. data/lib/pulp_container_client/models/inline_response2005.rb +1 -1
  45. data/lib/pulp_container_client/models/inline_response2006.rb +1 -1
  46. data/lib/pulp_container_client/models/inline_response2007.rb +1 -1
  47. data/lib/pulp_container_client/models/inline_response2008.rb +1 -1
  48. data/lib/pulp_container_client/models/manifest_copy.rb +2 -2
  49. data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
  50. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +26 -26
  51. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
  52. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
  53. data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +1 -1
  54. data/lib/pulp_container_client/models/policy_enum.rb +1 -1
  55. data/lib/pulp_container_client/models/recursive_manage.rb +2 -2
  56. data/lib/pulp_container_client/models/repository_sync_url.rb +1 -1
  57. data/lib/pulp_container_client/models/repository_version.rb +1 -1
  58. data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
  59. data/lib/pulp_container_client/models/tag_copy.rb +2 -2
  60. data/lib/pulp_container_client/models/tag_image.rb +1 -1
  61. data/lib/pulp_container_client/models/un_tag_image.rb +1 -1
  62. data/lib/pulp_container_client/version.rb +2 -2
  63. data/lib/pulp_container_client.rb +1 -1
  64. data/pulp_container_client.gemspec +2 -2
  65. data/spec/api/content_blobs_api_spec.rb +1 -1
  66. data/spec/api/content_manifests_api_spec.rb +1 -1
  67. data/spec/api/content_tags_api_spec.rb +1 -1
  68. data/spec/api/contentguards_content_redirect_api_spec.rb +1 -1
  69. data/spec/api/distributions_container_api_spec.rb +1 -1
  70. data/spec/api/remotes_container_api_spec.rb +1 -1
  71. data/spec/api/repositories_container_api_spec.rb +1 -1
  72. data/spec/api/repositories_container_push_api_spec.rb +1 -1
  73. data/spec/api/repositories_container_versions_api_spec.rb +1 -1
  74. data/spec/api/token_api_spec.rb +1 -1
  75. data/spec/api_client_spec.rb +2 -2
  76. data/spec/configuration_spec.rb +1 -1
  77. data/spec/models/async_operation_response_spec.rb +1 -1
  78. data/spec/models/container_blob_response_spec.rb +1 -1
  79. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  80. data/spec/models/container_container_distribution_spec.rb +5 -5
  81. data/spec/models/container_container_push_repository_response_spec.rb +1 -1
  82. data/spec/models/container_container_push_repository_spec.rb +1 -1
  83. data/spec/models/container_container_remote_response_spec.rb +1 -1
  84. data/spec/models/container_container_remote_spec.rb +1 -1
  85. data/spec/models/container_container_repository_response_spec.rb +1 -1
  86. data/spec/models/container_container_repository_spec.rb +1 -1
  87. data/spec/models/container_content_redirect_content_guard_response_spec.rb +1 -1
  88. data/spec/models/container_content_redirect_content_guard_spec.rb +1 -1
  89. data/spec/models/container_manifest_response_spec.rb +1 -1
  90. data/spec/models/container_tag_response_spec.rb +1 -1
  91. data/spec/models/content_summary_response_spec.rb +1 -1
  92. data/spec/models/content_summary_spec.rb +1 -1
  93. data/spec/models/inline_response2001_spec.rb +1 -1
  94. data/spec/models/inline_response2002_spec.rb +1 -1
  95. data/spec/models/inline_response2003_spec.rb +1 -1
  96. data/spec/models/inline_response2004_spec.rb +1 -1
  97. data/spec/models/inline_response2005_spec.rb +1 -1
  98. data/spec/models/inline_response2006_spec.rb +1 -1
  99. data/spec/models/inline_response2007_spec.rb +1 -1
  100. data/spec/models/inline_response2008_spec.rb +1 -1
  101. data/spec/models/inline_response200_spec.rb +1 -1
  102. data/spec/models/manifest_copy_spec.rb +1 -1
  103. data/spec/models/oci_build_image_spec.rb +1 -1
  104. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  105. data/spec/models/patchedcontainer_container_remote_spec.rb +1 -1
  106. data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
  107. data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +1 -1
  108. data/spec/models/policy_enum_spec.rb +1 -1
  109. data/spec/models/recursive_manage_spec.rb +1 -1
  110. data/spec/models/repository_sync_url_spec.rb +1 -1
  111. data/spec/models/repository_version_response_spec.rb +1 -1
  112. data/spec/models/repository_version_spec.rb +1 -1
  113. data/spec/models/tag_copy_spec.rb +1 -1
  114. data/spec/models/tag_image_spec.rb +1 -1
  115. data/spec/models/un_tag_image_spec.rb +1 -1
  116. data/spec/spec_helper.rb +1 -1
  117. metadata +47 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b25fb470f71876178c4b0ad540e557a59e366c9e25d7252321c8a566f37baba
4
- data.tar.gz: a41abfb800c24ddd16e0ca970b12ad7e08609b8af31272de721ba5ff928a1fba
3
+ metadata.gz: 04aabfc1c65a3ac0e9c21b01174099bfe2b277033ae58021c7ea697ef5551cd4
4
+ data.tar.gz: 177dec5567b6a63469f1b320bb04d81b0705cfbae998457e1881687f27ab9067
5
5
  SHA512:
6
- metadata.gz: 9f9bc7398e125db4172ca153bc4adb81708449cea983fa26084436e38070a155a37a885d8a9e1ba0ad573fc229ba82c1fbb1dda9a648321d7ae678abdd82ed3b
7
- data.tar.gz: c9a353ad95b7d1708f5a8ebbab5fc7c18caf4a4f2c0e11850fd1f7b6efb326ab60e9492414518ae7ccd63c8727d4e223f6ad26cfabea94304600c207b27c25a0
6
+ metadata.gz: a45dd4f9d4a26c278a5091a473b54886ddca944d0ebe25abe0c00da36c2f07cb106b542b6091a091527544dc958d2f9ac6724e3870bea5b74ec196b283bd01a6
7
+ data.tar.gz: f7d6014229ed57e33a62e66aebe9e3beb17c3fa0965673036971d366bad212108d59be591156476bb10be480a57720d58a257b6b509d8d07763cb83bfe91c5f8
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '~> 13.0.1'
7
7
  gem 'pry-byebug'
8
8
  gem 'rubocop', '~> 0.66.0'
9
9
  end
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: 2.1.0
10
+ - Package version: 2.1.3
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_container_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_container_client-2.1.0.gem
27
+ gem install ./pulp_container_client-2.1.3.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_container_client-2.1.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_container_client-2.1.3.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_container_client', '~> 2.1.0'
36
+ gem 'pulp_container_client', '~> 2.1.3'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -4,22 +4,22 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
7
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
8
8
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
9
- **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
10
9
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
10
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
11
+ **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
12
12
 
13
13
  ## Code Sample
14
14
 
15
15
  ```ruby
16
16
  require 'PulpContainerClient'
17
17
 
18
- instance = PulpContainerClient::ContainerContainerDistribution.new(name: null,
18
+ instance = PulpContainerClient::ContainerContainerDistribution.new(content_guard: null,
19
19
  repository_version: null,
20
- base_path: null,
21
20
  repository: null,
22
- content_guard: null)
21
+ base_path: null,
22
+ name: null)
23
23
  ```
24
24
 
25
25
 
@@ -4,13 +4,13 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
7
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
8
8
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
9
- **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
10
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
11
9
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
12
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
13
10
  **pulp_href** | **String** | | [optional] [readonly]
11
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
12
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
13
+ **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
14
14
  **registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
15
15
 
16
16
  ## Code Sample
@@ -18,13 +18,13 @@ Name | Type | Description | Notes
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::ContainerContainerDistributionResponse.new(name: null,
21
+ instance = PulpContainerClient::ContainerContainerDistributionResponse.new(content_guard: null,
22
22
  repository_version: null,
23
- base_path: null,
24
- pulp_created: null,
25
23
  repository: null,
26
- content_guard: null,
27
24
  pulp_href: null,
25
+ pulp_created: null,
26
+ base_path: null,
27
+ name: null,
28
28
  registry_path: null)
29
29
  ```
30
30
 
data/docs/ManifestCopy.md CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **source_repository** | **String** | A URI of the repository to copy content from. | [optional]
8
8
  **source_repository_version** | **String** | A URI of the repository version to copy content from. | [optional]
9
- **digests** | **Array<Object>** | A list of manifest digests to copy. | [optional]
9
+ **digests** | [**Array<AnyType>**](AnyType.md) | A list of manifest digests to copy. | [optional]
10
10
  **media_types** | **Array<String>** | A list of media_types to copy. | [optional]
11
11
 
12
12
  ## Code Sample
@@ -4,22 +4,22 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
7
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
8
8
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
9
- **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
10
9
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
10
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
11
+ **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
12
12
 
13
13
  ## Code Sample
14
14
 
15
15
  ```ruby
16
16
  require 'PulpContainerClient'
17
17
 
18
- instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(name: null,
18
+ instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(content_guard: null,
19
19
  repository_version: null,
20
- base_path: null,
21
20
  repository: null,
22
- content_guard: null)
21
+ base_path: null,
22
+ name: null)
23
23
  ```
24
24
 
25
25
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **content_units** | **Array<Object>** | A list of content units to operate on. | [optional]
7
+ **content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to operate on. | [optional]
8
8
 
9
9
  ## Code Sample
10
10
 
data/docs/TagCopy.md CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **source_repository** | **String** | A URI of the repository to copy content from. | [optional]
8
8
  **source_repository_version** | **String** | A URI of the repository version to copy content from. | [optional]
9
- **names** | **Array<Object>** | A list of tag names to copy. | [optional]
9
+ **names** | [**Array<AnyType>**](AnyType.md) | A list of tag names to copy. | [optional]
10
10
 
11
11
  ## Code Sample
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -53,8 +53,10 @@ module PulpContainerClient
53
53
  :client_cert => @config.ssl_client_cert,
54
54
  :client_key => @config.ssl_client_key
55
55
  }
56
-
57
- connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
56
+ request_options = {
57
+ :params_encoder => @config.params_encoder
58
+ }
59
+ connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
58
60
  conn.basic_auth(config.username, config.password)
59
61
  if opts[:header_params]["Content-Type"] == "multipart/form-data"
60
62
  conn.request :multipart
@@ -116,9 +118,6 @@ module PulpContainerClient
116
118
  update_params_for_auth! header_params, query_params, opts[:auth_names]
117
119
 
118
120
  req_opts = {
119
- :method => http_method,
120
- :headers => header_params,
121
- :params => query_params,
122
121
  :params_encoding => @config.params_encoding,
123
122
  :timeout => @config.timeout,
124
123
  :verbose => @config.debugging
@@ -126,13 +125,13 @@ module PulpContainerClient
126
125
 
127
126
  if [:post, :patch, :put, :delete].include?(http_method)
128
127
  req_body = build_request_body(header_params, form_params, opts[:body])
129
- req_opts.update :body => req_body
130
128
  if @config.debugging
131
129
  @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
132
130
  end
133
131
  end
134
132
  request.headers = header_params
135
133
  request.body = req_body
134
+ request.options = OpenStruct.new(req_opts)
136
135
  request.url url
137
136
  request.params = query_params
138
137
  download_file(request) if opts[:return_type] == 'File'
@@ -285,11 +284,13 @@ module PulpContainerClient
285
284
  tempfile.write(chunk)
286
285
  end
287
286
  request.on_complete do |response|
288
- tempfile.close if tempfile
289
- @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
290
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
291
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
292
- "explicitly with `tempfile.delete`"
287
+ if tempfile
288
+ tempfile.close
289
+ @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
290
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
291
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
292
+ "explicitly with `tempfile.delete`"
293
+ end
293
294
  end
294
295
  end
295
296
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -109,6 +109,12 @@ module PulpContainerClient
109
109
  # Client private key file (for client certificate)
110
110
  attr_accessor :ssl_client_key
111
111
 
112
+ # Set this to customize parameters encoder of array parameter.
113
+ # Default to nil. Faraday uses NestedParamsEncoder when nil.
114
+ #
115
+ # @see The params_encoder option of Faraday. Related source code:
116
+ # https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
117
+ attr_accessor :params_encoder
112
118
  # Set this to customize parameters encoding of array parameter with multi collectionFormat.
113
119
  # Default to nil.
114
120
  #
@@ -133,6 +139,8 @@ module PulpContainerClient
133
139
  @ssl_ca_file = nil
134
140
  @ssl_client_cert = nil
135
141
  @ssl_client_key = nil
142
+ @params_encoder = nil
143
+ @timeout = 60
136
144
  @debugging = false
137
145
  @inject_format = false
138
146
  @force_ending_format = false
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -15,40 +15,40 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
- # A unique name. Ex, `rawhide` and `stable`.
19
- attr_accessor :name
18
+ # An optional content-guard. If none is specified, a default one will be used.
19
+ attr_accessor :content_guard
20
20
 
21
21
  # RepositoryVersion to be served
22
22
  attr_accessor :repository_version
23
23
 
24
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
- attr_accessor :base_path
26
-
27
24
  # The latest RepositoryVersion for this Repository will be served.
28
25
  attr_accessor :repository
29
26
 
30
- # An optional content-guard. If none is specified, a default one will be used.
31
- attr_accessor :content_guard
27
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
28
+ attr_accessor :base_path
29
+
30
+ # A unique name. Ex, `rawhide` and `stable`.
31
+ attr_accessor :name
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'name' => :'name',
36
+ :'content_guard' => :'content_guard',
37
37
  :'repository_version' => :'repository_version',
38
- :'base_path' => :'base_path',
39
38
  :'repository' => :'repository',
40
- :'content_guard' => :'content_guard'
39
+ :'base_path' => :'base_path',
40
+ :'name' => :'name'
41
41
  }
42
42
  end
43
43
 
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'name' => :'String',
47
+ :'content_guard' => :'String',
48
48
  :'repository_version' => :'String',
49
- :'base_path' => :'String',
50
49
  :'repository' => :'String',
51
- :'content_guard' => :'String'
50
+ :'base_path' => :'String',
51
+ :'name' => :'String'
52
52
  }
53
53
  end
54
54
 
@@ -75,24 +75,24 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'name')
79
- self.name = attributes[:'name']
78
+ if attributes.key?(:'content_guard')
79
+ self.content_guard = attributes[:'content_guard']
80
80
  end
81
81
 
82
82
  if attributes.key?(:'repository_version')
83
83
  self.repository_version = attributes[:'repository_version']
84
84
  end
85
85
 
86
- if attributes.key?(:'base_path')
87
- self.base_path = attributes[:'base_path']
88
- end
89
-
90
86
  if attributes.key?(:'repository')
91
87
  self.repository = attributes[:'repository']
92
88
  end
93
89
 
94
- if attributes.key?(:'content_guard')
95
- self.content_guard = attributes[:'content_guard']
90
+ if attributes.key?(:'base_path')
91
+ self.base_path = attributes[:'base_path']
92
+ end
93
+
94
+ if attributes.key?(:'name')
95
+ self.name = attributes[:'name']
96
96
  end
97
97
  end
98
98
 
@@ -100,22 +100,22 @@ module PulpContainerClient
100
100
  # @return Array for valid properties with the reasons
101
101
  def list_invalid_properties
102
102
  invalid_properties = Array.new
103
- if @name.nil?
104
- invalid_properties.push('invalid value for "name", name cannot be nil.')
105
- end
106
-
107
103
  if @base_path.nil?
108
104
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
109
105
  end
110
106
 
107
+ if @name.nil?
108
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
109
+ end
110
+
111
111
  invalid_properties
112
112
  end
113
113
 
114
114
  # Check to see if the all the properties in the model are valid
115
115
  # @return true if the model is valid
116
116
  def valid?
117
- return false if @name.nil?
118
117
  return false if @base_path.nil?
118
+ return false if @name.nil?
119
119
  true
120
120
  end
121
121
 
@@ -124,11 +124,11 @@ module PulpContainerClient
124
124
  def ==(o)
125
125
  return true if self.equal?(o)
126
126
  self.class == o.class &&
127
- name == o.name &&
127
+ content_guard == o.content_guard &&
128
128
  repository_version == o.repository_version &&
129
- base_path == o.base_path &&
130
129
  repository == o.repository &&
131
- content_guard == o.content_guard
130
+ base_path == o.base_path &&
131
+ name == o.name
132
132
  end
133
133
 
134
134
  # @see the `==` method
@@ -140,7 +140,7 @@ module PulpContainerClient
140
140
  # Calculates hash code according to all attributes.
141
141
  # @return [Integer] Hash code
142
142
  def hash
143
- [name, repository_version, base_path, repository, content_guard].hash
143
+ [content_guard, repository_version, repository, base_path, name].hash
144
144
  end
145
145
 
146
146
  # Builds the object from hash