pulp_python_client 3.27.2 → 3.27.3
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 +5 -4
- data/docs/ContentPackagesApi.md +4 -0
- data/docs/ContentProvenanceApi.md +2 -0
- data/docs/RepositoryAddRemoveContent.md +3 -1
- data/lib/pulp_python_client/api/content_packages_api.rb +6 -0
- data/lib/pulp_python_client/api/content_provenance_api.rb +3 -0
- data/lib/pulp_python_client/models/repository_add_remove_content.rb +16 -4
- data/lib/pulp_python_client/version.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +2 -0
- data/spec/api/content_provenance_api_spec.rb +1 -0
- data/spec/models/repository_add_remove_content_spec.rb +6 -0
- metadata +45 -45
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a7976a1e98f22bd1b7b8f798201a9466bb639b7b55fa83ab50fff574be00bdcf
|
|
4
|
+
data.tar.gz: 81fef1f10d9029746acf18399d59bf0e685e8d831167f9d6451584e48277f830
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ecab0bc28e787e0360518b4e7ac23f21cac19428fdd7a1f04a276fe2dec57c6e0ef387a8bef6cadbca3a165de9e75906b2f9d632c4bece989c00a8537f713a9
|
|
7
|
+
data.tar.gz: 217e0bca206f1ea2daa0bc85591ca53d119be90760fa3d88a263a2eff410beb9c8f21615cb08aafc9116054a7b652b47dd4fef917db1d96c672c20951476b93f
|
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.27.
|
|
10
|
+
- Package version: 3.27.3
|
|
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_python_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulp_python_client-3.27.
|
|
28
|
+
gem install ./pulp_python_client-3.27.3.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulp_python_client-3.27.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_python_client-3.27.3.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_python_client', '~> 3.27.
|
|
37
|
+
gem 'pulp_python_client', '~> 3.27.3'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -72,6 +72,7 @@ relative_path = 'relative_path_example' # String | Path where the artifact is lo
|
|
|
72
72
|
opts = {
|
|
73
73
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
74
74
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
|
75
|
+
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.
|
|
75
76
|
pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
76
77
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
|
77
78
|
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
data/docs/ContentPackagesApi.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.
|
|
@@ -107,6 +108,7 @@ end
|
|
|
107
108
|
| **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | |
|
|
108
109
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
109
110
|
| **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
|
|
111
|
+
| **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] |
|
|
110
112
|
| **pulp_labels** | [**Hash<String, String>**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
|
|
111
113
|
| **artifact** | **String** | Artifact file representing the physical content | [optional] |
|
|
112
114
|
| **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
|
|
@@ -555,6 +557,7 @@ end
|
|
|
555
557
|
api_instance = PulpPythonClient::ContentPackagesApi.new
|
|
556
558
|
opts = {
|
|
557
559
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
560
|
+
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.
|
|
558
561
|
pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
559
562
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
|
560
563
|
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
|
@@ -623,6 +626,7 @@ end
|
|
|
623
626
|
| Name | Type | Description | Notes |
|
|
624
627
|
| ---- | ---- | ----------- | ----- |
|
|
625
628
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
629
|
+
| **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] |
|
|
626
630
|
| **pulp_labels** | [**Hash<String, String>**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
|
|
627
631
|
| **artifact** | **String** | Artifact file representing the physical content | [optional] |
|
|
628
632
|
| **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
|
|
@@ -36,6 +36,7 @@ package = 'package_example' # String | The package that the provenance is for.
|
|
|
36
36
|
opts = {
|
|
37
37
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
38
38
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
|
39
|
+
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.
|
|
39
40
|
pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
40
41
|
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
|
41
42
|
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
|
@@ -78,6 +79,7 @@ end
|
|
|
78
79
|
| **package** | **String** | The package that the provenance is for. | |
|
|
79
80
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
80
81
|
| **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
|
|
82
|
+
| **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] |
|
|
81
83
|
| **pulp_labels** | [**Hash<String, String>**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
|
|
82
84
|
| **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
|
|
83
85
|
| **upload** | **String** | An uncommitted upload 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_python_client'
|
|
|
16
17
|
instance = PulpPythonClient::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 PulpPythonClient
|
|
|
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.
|
|
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.
|
|
@@ -71,6 +72,7 @@ module PulpPythonClient
|
|
|
71
72
|
# @param [Hash] opts the optional parameters
|
|
72
73
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
73
74
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
75
|
+
# @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.
|
|
74
76
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
75
77
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
76
78
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -151,6 +153,7 @@ module PulpPythonClient
|
|
|
151
153
|
form_params = opts[:form_params] || {}
|
|
152
154
|
form_params['relative_path'] = relative_path
|
|
153
155
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
156
|
+
form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
|
|
154
157
|
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
|
155
158
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
|
156
159
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
@@ -621,6 +624,7 @@ module PulpPythonClient
|
|
|
621
624
|
# Create a Python package.
|
|
622
625
|
# @param [Hash] opts the optional parameters
|
|
623
626
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
627
|
+
# @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.
|
|
624
628
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
625
629
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
626
630
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -665,6 +669,7 @@ module PulpPythonClient
|
|
|
665
669
|
# Create a Python package.
|
|
666
670
|
# @param [Hash] opts the optional parameters
|
|
667
671
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
672
|
+
# @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.
|
|
668
673
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
669
674
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
670
675
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -735,6 +740,7 @@ module PulpPythonClient
|
|
|
735
740
|
|
|
736
741
|
# form parameters
|
|
737
742
|
form_params = opts[:form_params] || {}
|
|
743
|
+
form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
|
|
738
744
|
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
|
739
745
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
|
740
746
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
@@ -25,6 +25,7 @@ module PulpPythonClient
|
|
|
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.
|
|
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 [File] :file An uploaded file that may be turned into the content unit.
|
|
30
31
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
@@ -43,6 +44,7 @@ module PulpPythonClient
|
|
|
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.
|
|
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 [File] :file An uploaded file that may be turned into the content unit.
|
|
48
50
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
@@ -83,6 +85,7 @@ module PulpPythonClient
|
|
|
83
85
|
form_params = opts[:form_params] || {}
|
|
84
86
|
form_params['package'] = package
|
|
85
87
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
88
|
+
form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
|
|
86
89
|
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
|
87
90
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
88
91
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
|
@@ -25,12 +25,16 @@ module PulpPythonClient
|
|
|
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 PulpPythonClient
|
|
|
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 PulpPythonClient
|
|
|
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 PulpPythonClient
|
|
|
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 PulpPythonClient
|
|
|
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 'ContentPackagesApi' 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.
|
|
@@ -177,6 +178,7 @@ describe 'ContentPackagesApi' do
|
|
|
177
178
|
# Create a Python package.
|
|
178
179
|
# @param [Hash] opts the optional parameters
|
|
179
180
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
181
|
+
# @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.
|
|
180
182
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
181
183
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
182
184
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -39,6 +39,7 @@ describe 'ContentProvenanceApi' 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 [File] :file An uploaded file that may be turned into the content unit.
|
|
44
45
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
@@ -45,4 +45,10 @@ describe PulpPythonClient::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
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulp_python_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.27.
|
|
4
|
+
version: 3.27.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -293,62 +293,62 @@ signing_key:
|
|
|
293
293
|
specification_version: 4
|
|
294
294
|
summary: Pulp 3 API Ruby Gem
|
|
295
295
|
test_files:
|
|
296
|
-
- spec/api/
|
|
297
|
-
- spec/api/pypi_simple_api_spec.rb
|
|
298
|
-
- spec/api/repositories_python_api_spec.rb
|
|
299
|
-
- spec/api/pypi_provenance_api_spec.rb
|
|
296
|
+
- spec/api/publications_pypi_api_spec.rb
|
|
300
297
|
- spec/api/content_provenance_api_spec.rb
|
|
301
|
-
- spec/api/pypi_api_spec.rb
|
|
302
|
-
- spec/api/repositories_python_versions_api_spec.rb
|
|
303
298
|
- spec/api/distributions_pypi_api_spec.rb
|
|
304
|
-
- spec/api/
|
|
305
|
-
- spec/api/content_packages_api_spec.rb
|
|
306
|
-
- spec/api/publications_pypi_api_spec.rb
|
|
299
|
+
- spec/api/pypi_provenance_api_spec.rb
|
|
307
300
|
- spec/api/pypi_legacy_api_spec.rb
|
|
308
|
-
- spec/
|
|
301
|
+
- spec/api/pypi_api_spec.rb
|
|
302
|
+
- spec/api/content_packages_api_spec.rb
|
|
303
|
+
- spec/api/remotes_python_api_spec.rb
|
|
304
|
+
- spec/api/repositories_python_versions_api_spec.rb
|
|
305
|
+
- spec/api/pypi_metadata_api_spec.rb
|
|
306
|
+
- spec/api/repositories_python_api_spec.rb
|
|
307
|
+
- spec/api/pypi_simple_api_spec.rb
|
|
308
|
+
- spec/models/python_python_remote_response_spec.rb
|
|
309
309
|
- spec/models/nested_role_spec.rb
|
|
310
|
-
- spec/models/
|
|
311
|
-
- spec/models/
|
|
312
|
-
- spec/models/
|
|
310
|
+
- spec/models/python_python_distribution_response_spec.rb
|
|
311
|
+
- spec/models/my_permissions_response_spec.rb
|
|
312
|
+
- spec/models/filetype_enum_spec.rb
|
|
313
|
+
- spec/models/unset_label_spec.rb
|
|
313
314
|
- spec/models/paginatedpython_python_remote_response_list_spec.rb
|
|
314
|
-
- spec/models/
|
|
315
|
-
- spec/models/repository_add_remove_content_spec.rb
|
|
316
|
-
- spec/models/summary_response_spec.rb
|
|
317
|
-
- spec/models/package_metadata_response_spec.rb
|
|
315
|
+
- spec/models/set_label_response_spec.rb
|
|
318
316
|
- spec/models/python_python_publication_response_spec.rb
|
|
319
317
|
- spec/models/async_operation_response_spec.rb
|
|
320
|
-
- spec/models/
|
|
321
|
-
- spec/models/policy_enum_spec.rb
|
|
318
|
+
- spec/models/summary_response_spec.rb
|
|
322
319
|
- spec/models/repository_sync_url_spec.rb
|
|
323
|
-
- spec/models/
|
|
324
|
-
- spec/models/paginatedpython_python_distribution_response_list_spec.rb
|
|
325
|
-
- spec/models/python_python_publication_spec.rb
|
|
326
|
-
- spec/models/patchedpython_python_repository_spec.rb
|
|
327
|
-
- spec/models/paginatedpython_python_publication_response_list_spec.rb
|
|
320
|
+
- spec/models/python_package_provenance_response_spec.rb
|
|
328
321
|
- spec/models/metadata_version_enum_spec.rb
|
|
329
|
-
- spec/models/
|
|
330
|
-
- spec/models/
|
|
331
|
-
- spec/models/
|
|
332
|
-
- spec/models/
|
|
333
|
-
- spec/models/
|
|
334
|
-
- spec/models/python_python_distribution_spec.rb
|
|
322
|
+
- spec/models/repository_add_remove_content_spec.rb
|
|
323
|
+
- spec/models/set_label_spec.rb
|
|
324
|
+
- spec/models/patchedpython_python_distribution_spec.rb
|
|
325
|
+
- spec/models/policy_enum_spec.rb
|
|
326
|
+
- spec/models/repository_version_response_spec.rb
|
|
335
327
|
- spec/models/remote_network_config_response_spec.rb
|
|
328
|
+
- spec/models/nested_role_response_spec.rb
|
|
336
329
|
- spec/models/package_types_enum_spec.rb
|
|
330
|
+
- spec/models/python_python_repository_response_spec.rb
|
|
337
331
|
- spec/models/paginatedpython_package_provenance_response_list_spec.rb
|
|
338
|
-
- spec/models/
|
|
339
|
-
- spec/models/
|
|
340
|
-
- spec/models/
|
|
341
|
-
- spec/models/
|
|
342
|
-
- spec/models/repository_version_response_spec.rb
|
|
343
|
-
- spec/models/package_upload_task_response_spec.rb
|
|
344
|
-
- spec/models/python_package_provenance_response_spec.rb
|
|
345
|
-
- spec/models/python_python_remote_response_hidden_fields_inner_spec.rb
|
|
332
|
+
- spec/models/python_python_distribution_spec.rb
|
|
333
|
+
- spec/models/object_roles_response_spec.rb
|
|
334
|
+
- spec/models/paginatedpython_python_package_content_response_list_spec.rb
|
|
335
|
+
- spec/models/patchedpython_python_remote_spec.rb
|
|
346
336
|
- spec/models/protocol_version_enum_spec.rb
|
|
347
|
-
- spec/models/
|
|
348
|
-
- spec/models/
|
|
349
|
-
- spec/models/
|
|
350
|
-
- spec/models/my_permissions_response_spec.rb
|
|
337
|
+
- spec/models/paginatedpython_python_distribution_response_list_spec.rb
|
|
338
|
+
- spec/models/remote_network_config_spec.rb
|
|
339
|
+
- spec/models/package_metadata_response_spec.rb
|
|
351
340
|
- spec/models/repair_spec.rb
|
|
341
|
+
- spec/models/paginatedpython_python_repository_response_list_spec.rb
|
|
342
|
+
- spec/models/python_python_remote_response_hidden_fields_inner_spec.rb
|
|
343
|
+
- spec/models/exclude_platforms_enum_spec.rb
|
|
344
|
+
- spec/models/unset_label_response_spec.rb
|
|
345
|
+
- spec/models/content_summary_response_spec.rb
|
|
346
|
+
- spec/models/python_python_repository_spec.rb
|
|
347
|
+
- spec/models/patchedpython_python_repository_spec.rb
|
|
348
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
349
|
+
- spec/models/python_python_package_content_response_spec.rb
|
|
352
350
|
- spec/models/python_python_remote_spec.rb
|
|
353
|
-
- spec/models/
|
|
351
|
+
- spec/models/paginatedpython_python_publication_response_list_spec.rb
|
|
352
|
+
- spec/models/python_python_publication_spec.rb
|
|
353
|
+
- spec/models/package_upload_task_response_spec.rb
|
|
354
354
|
- spec/spec_helper.rb
|