pulp_file_client 3.110.3 → 3.111.0
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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContentFilesApi.md +4 -0
- data/docs/RepositoryAddRemoveContent.md +3 -1
- data/lib/pulp_file_client/api/content_files_api.rb +6 -0
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +16 -4
- data/lib/pulp_file_client/version.rb +1 -1
- data/spec/api/content_files_api_spec.rb +2 -0
- data/spec/models/repository_add_remove_content_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93ac995a87e2f5f6f8f5fe00aa1c9dedb7e6ddc59f53d7883813dd707a00a8d0
|
|
4
|
+
data.tar.gz: 8bcc7b3939f14a366244a873ca13b7beefd1d130538e575c45e7c3e43ddf8b10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d94fc51522d4d93cbab775a4203c37fb78e4664dcf38f4e1bf98e88af17037bf1563410eeeb484b0d05d589b28027d35eb37c078babd79d9048fcc182a8683f
|
|
7
|
+
data.tar.gz: '0287e50067e1ce797a34690e3ac03fe3ea53398226838eca29a6a3ca3e209de42336ac892aed4934f792d64b35184bb6d7414fde3816ae4459b15e41e408683d'
|
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.
|
|
10
|
+
- Package version: 3.111.0
|
|
11
11
|
- Generator version: 7.10.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -25,16 +25,16 @@ gem build pulp_file_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulp_file_client-3.
|
|
28
|
+
gem install ./pulp_file_client-3.111.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulp_file_client-3.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_file_client-3.111.0.gem` to install the development dependencies)
|
|
32
32
|
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
34
34
|
|
|
35
35
|
Finally add this to the Gemfile:
|
|
36
36
|
|
|
37
|
-
gem 'pulp_file_client', '~> 3.
|
|
37
|
+
gem 'pulp_file_client', '~> 3.111.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
data/docs/ContentFilesApi.md
CHANGED
|
@@ -37,6 +37,7 @@ relative_path = 'relative_path_example' # String | Path where the artifact is lo
|
|
|
37
37
|
opts = {
|
|
38
38
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
39
39
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
|
40
|
+
overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
40
41
|
pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
41
42
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
|
42
43
|
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
|
@@ -79,6 +80,7 @@ end
|
|
|
79
80
|
| **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | |
|
|
80
81
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
81
82
|
| **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
|
|
83
|
+
| **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true. | [optional][default to true] |
|
|
82
84
|
| **pulp_labels** | [**Hash<String, String>**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
|
|
83
85
|
| **artifact** | **String** | Artifact file representing the physical content | [optional] |
|
|
84
86
|
| **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
|
|
@@ -458,6 +460,7 @@ api_instance = PulpFileClient::ContentFilesApi.new
|
|
|
458
460
|
relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
|
|
459
461
|
opts = {
|
|
460
462
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
463
|
+
overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
461
464
|
pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
462
465
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
|
463
466
|
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
|
@@ -499,6 +502,7 @@ end
|
|
|
499
502
|
| ---- | ---- | ----------- | ----- |
|
|
500
503
|
| **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | |
|
|
501
504
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
505
|
+
| **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true. | [optional][default to true] |
|
|
502
506
|
| **pulp_labels** | [**Hash<String, String>**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
|
|
503
507
|
| **artifact** | **String** | Artifact file representing the physical content | [optional] |
|
|
504
508
|
| **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **add_content_units** | **Array<String>** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional] |
|
|
8
8
|
| **remove_content_units** | **Array<String>** | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional] |
|
|
9
9
|
| **base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional] |
|
|
10
|
+
| **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true. | [optional][default to true] |
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,7 +17,8 @@ require 'pulp_file_client'
|
|
|
16
17
|
instance = PulpFileClient::RepositoryAddRemoveContent.new(
|
|
17
18
|
add_content_units: null,
|
|
18
19
|
remove_content_units: null,
|
|
19
|
-
base_version: null
|
|
20
|
+
base_version: null,
|
|
21
|
+
overwrite: null
|
|
20
22
|
)
|
|
21
23
|
```
|
|
22
24
|
|
|
@@ -25,6 +25,7 @@ module PulpFileClient
|
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
27
27
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
28
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true. (default to true)
|
|
28
29
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
29
30
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
30
31
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -43,6 +44,7 @@ module PulpFileClient
|
|
|
43
44
|
# @param [Hash] opts the optional parameters
|
|
44
45
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
45
46
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
47
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true. (default to true)
|
|
46
48
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
47
49
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
48
50
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -87,6 +89,7 @@ module PulpFileClient
|
|
|
87
89
|
form_params = opts[:form_params] || {}
|
|
88
90
|
form_params['relative_path'] = relative_path
|
|
89
91
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
92
|
+
form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
|
|
90
93
|
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
|
91
94
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
|
92
95
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
@@ -463,6 +466,7 @@ module PulpFileClient
|
|
|
463
466
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
|
464
467
|
# @param [Hash] opts the optional parameters
|
|
465
468
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
469
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true. (default to true)
|
|
466
470
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
467
471
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
468
472
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -480,6 +484,7 @@ module PulpFileClient
|
|
|
480
484
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
|
481
485
|
# @param [Hash] opts the optional parameters
|
|
482
486
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
487
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true. (default to true)
|
|
483
488
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
484
489
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
485
490
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -523,6 +528,7 @@ module PulpFileClient
|
|
|
523
528
|
# form parameters
|
|
524
529
|
form_params = opts[:form_params] || {}
|
|
525
530
|
form_params['relative_path'] = relative_path
|
|
531
|
+
form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
|
|
526
532
|
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
|
527
533
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
|
528
534
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
@@ -25,12 +25,16 @@ module PulpFileClient
|
|
|
25
25
|
# A repository version whose content will be used as the initial set of content for the new repository version
|
|
26
26
|
attr_accessor :base_version
|
|
27
27
|
|
|
28
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true.
|
|
29
|
+
attr_accessor :overwrite
|
|
30
|
+
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
32
|
def self.attribute_map
|
|
30
33
|
{
|
|
31
34
|
:'add_content_units' => :'add_content_units',
|
|
32
35
|
:'remove_content_units' => :'remove_content_units',
|
|
33
|
-
:'base_version' => :'base_version'
|
|
36
|
+
:'base_version' => :'base_version',
|
|
37
|
+
:'overwrite' => :'overwrite'
|
|
34
38
|
}
|
|
35
39
|
end
|
|
36
40
|
|
|
@@ -44,7 +48,8 @@ module PulpFileClient
|
|
|
44
48
|
{
|
|
45
49
|
:'add_content_units' => :'Array<String>',
|
|
46
50
|
:'remove_content_units' => :'Array<String>',
|
|
47
|
-
:'base_version' => :'String'
|
|
51
|
+
:'base_version' => :'String',
|
|
52
|
+
:'overwrite' => :'Boolean'
|
|
48
53
|
}
|
|
49
54
|
end
|
|
50
55
|
|
|
@@ -84,6 +89,12 @@ module PulpFileClient
|
|
|
84
89
|
if attributes.key?(:'base_version')
|
|
85
90
|
self.base_version = attributes[:'base_version']
|
|
86
91
|
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'overwrite')
|
|
94
|
+
self.overwrite = attributes[:'overwrite']
|
|
95
|
+
else
|
|
96
|
+
self.overwrite = true
|
|
97
|
+
end
|
|
87
98
|
end
|
|
88
99
|
|
|
89
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -108,7 +119,8 @@ module PulpFileClient
|
|
|
108
119
|
self.class == o.class &&
|
|
109
120
|
add_content_units == o.add_content_units &&
|
|
110
121
|
remove_content_units == o.remove_content_units &&
|
|
111
|
-
base_version == o.base_version
|
|
122
|
+
base_version == o.base_version &&
|
|
123
|
+
overwrite == o.overwrite
|
|
112
124
|
end
|
|
113
125
|
|
|
114
126
|
# @see the `==` method
|
|
@@ -120,7 +132,7 @@ module PulpFileClient
|
|
|
120
132
|
# Calculates hash code according to all attributes.
|
|
121
133
|
# @return [Integer] Hash code
|
|
122
134
|
def hash
|
|
123
|
-
[add_content_units, remove_content_units, base_version].hash
|
|
135
|
+
[add_content_units, remove_content_units, base_version, overwrite].hash
|
|
124
136
|
end
|
|
125
137
|
|
|
126
138
|
# Builds the object from hash
|
|
@@ -39,6 +39,7 @@ describe 'ContentFilesApi' do
|
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
41
41
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
42
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
42
43
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
43
44
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
44
45
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -129,6 +130,7 @@ describe 'ContentFilesApi' do
|
|
|
129
130
|
# @param relative_path Path where the artifact is located relative to distributions base_path
|
|
130
131
|
# @param [Hash] opts the optional parameters
|
|
131
132
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
133
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
132
134
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
133
135
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
134
136
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -45,4 +45,10 @@ describe PulpFileClient::RepositoryAddRemoveContent do
|
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
describe 'test attribute "overwrite"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
48
54
|
end
|