pulp_rpm_client 3.36.0 → 3.36.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc532a5a5b5b3cb67ae54c0d7be231c63c546bcc449db960cef1bee8fd7a49a1
4
- data.tar.gz: 9f9dfc8f618481cb77be30ed7bcc0a0ee35f45318c7c8acceecdcf886d95064a
3
+ metadata.gz: 5502af37bca7c566fbce18e740384b4d4dd85627363b3bca56009abed3693400
4
+ data.tar.gz: ea242808b2dcafd30b57b770452aed331c21d119e38b757cd311576ac006174e
5
5
  SHA512:
6
- metadata.gz: d8e2e58fd4ebfb94cf82b42da075e29a170574ad9f00962d2e1beb286e7b414dccb2b90921de09e1566bc5d500488d371e9fd7c6839453da70443ca773952308
7
- data.tar.gz: 68441b16c00c20f97c99bc9d23482acf5d5ee99ecbbe35f0901a187f45e73b7f1351b5cd99dc6076d8c853e0dbad0928c31f735cfbda41e8be4a5c2f6d53c089
6
+ metadata.gz: 43248e47a8704b54d4b8a8bd1d5e96a677ce15f2ec7202ab2b83b7fd4e75450af5d08f858e6672b701892916b4334e97127e2df70fe4ea5dd9be4713d48dd7f3
7
+ data.tar.gz: 0ad05c56b17bb2781744f674f14884e998248117f59adf3d71868492ba93efc86fb0d2c96267943657a19094a123aff507c60648788f0ccf0374a6c88e986c8e
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.36.0
10
+ - Package version: 3.36.1
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_rpm_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulp_rpm_client-3.36.0.gem
28
+ gem install ./pulp_rpm_client-3.36.1.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_rpm_client-3.36.0.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_rpm_client-3.36.1.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_rpm_client', '~> 3.36.0'
37
+ gem 'pulp_rpm_client', '~> 3.36.1'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -35,6 +35,7 @@ api_instance = PulpRpmClient::ContentAdvisoriesApi.new
35
35
  opts = {
36
36
  x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
37
37
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
38
+ 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.
38
39
  pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
39
40
  file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
40
41
  upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
@@ -75,6 +76,7 @@ end
75
76
  | ---- | ---- | ----------- | ----- |
76
77
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
77
78
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
79
+ | **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 &#39;repository&#39; is specified. Defaults to true. | [optional] |
78
80
  | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
79
81
  | **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
80
82
  | **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
@@ -36,6 +36,7 @@ api_instance = PulpRpmClient::ContentPackagesApi.new
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
  artifact: 'artifact_example', # String | Artifact file representing the physical content
41
42
  relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path
@@ -78,6 +79,7 @@ end
78
79
  | ---- | ---- | ----------- | ----- |
79
80
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](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 &#39;repository&#39; is specified. Defaults to true. | [optional] |
81
83
  | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
82
84
  | **artifact** | **String** | Artifact file representing the physical content | [optional] |
83
85
  | **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | [optional] |
@@ -511,6 +513,7 @@ end
511
513
  api_instance = PulpRpmClient::ContentPackagesApi.new
512
514
  opts = {
513
515
  x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
516
+ 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.
514
517
  pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
515
518
  artifact: 'artifact_example', # String | Artifact file representing the physical content
516
519
  file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
@@ -551,6 +554,7 @@ end
551
554
  | Name | Type | Description | Notes |
552
555
  | ---- | ---- | ----------- | ----- |
553
556
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
557
+ | **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 &#39;repository&#39; is specified. Defaults to true. | [optional] |
554
558
  | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
555
559
  | **artifact** | **String** | Artifact file representing the physical content | [optional] |
556
560
  | **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
@@ -7,6 +7,7 @@
7
7
  | **add_content_units** | **Array&lt;String&gt;** | 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&lt;String&gt;** | A list of content units to remove from the latest repository version. You may also specify &#39;*&#39; 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_rpm_client'
16
17
  instance = PulpRpmClient::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
 
data/docs/RpmModulemd.md CHANGED
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **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 &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **name** | **String** | Modulemd name. | |
10
11
  | **stream** | **String** | Stream name. | |
@@ -26,6 +27,7 @@ require 'pulp_rpm_client'
26
27
 
27
28
  instance = PulpRpmClient::RpmModulemd.new(
28
29
  repository: null,
30
+ overwrite: null,
29
31
  pulp_labels: null,
30
32
  name: null,
31
33
  stream: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **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 &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **_module** | **String** | Modulemd name. | |
10
11
  | **stream** | **String** | Modulemd default stream. | |
@@ -18,6 +19,7 @@ require 'pulp_rpm_client'
18
19
 
19
20
  instance = PulpRpmClient::RpmModulemdDefaults.new(
20
21
  repository: null,
22
+ overwrite: null,
21
23
  pulp_labels: null,
22
24
  _module: null,
23
25
  stream: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **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 &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **modified** | **String** | Obsolete modified time. | |
10
11
  | **module_name** | **String** | Modulemd name. | |
@@ -24,6 +25,7 @@ require 'pulp_rpm_client'
24
25
 
25
26
  instance = PulpRpmClient::RpmModulemdObsolete.new(
26
27
  repository: null,
28
+ overwrite: null,
27
29
  pulp_labels: null,
28
30
  modified: null,
29
31
  module_name: null,
@@ -24,6 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
26
26
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
27
+ # @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 &#39;repository&#39; is specified. Defaults to true.
27
28
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
28
29
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
29
30
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
@@ -40,6 +41,7 @@ module PulpRpmClient
40
41
  # @param [Hash] opts the optional parameters
41
42
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
42
43
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
44
+ # @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 &#39;repository&#39; is specified. Defaults to true.
43
45
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
44
46
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
45
47
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
@@ -74,6 +76,7 @@ module PulpRpmClient
74
76
  # form parameters
75
77
  form_params = opts[:form_params] || {}
76
78
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
79
+ form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
77
80
  form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
78
81
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
79
82
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
@@ -24,6 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
26
26
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
27
+ # @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 &#39;repository&#39; is specified. Defaults to true.
27
28
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
28
29
  # @option opts [String] :artifact Artifact file representing the physical content
29
30
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
@@ -42,6 +43,7 @@ module PulpRpmClient
42
43
  # @param [Hash] opts the optional parameters
43
44
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
44
45
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
46
+ # @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 &#39;repository&#39; is specified. Defaults to true.
45
47
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
46
48
  # @option opts [String] :artifact Artifact file representing the physical content
47
49
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
@@ -82,6 +84,7 @@ module PulpRpmClient
82
84
  # form parameters
83
85
  form_params = opts[:form_params] || {}
84
86
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
87
+ form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
85
88
  form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
86
89
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
87
90
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
@@ -543,6 +546,7 @@ module PulpRpmClient
543
546
  # Synchronously upload an RPM package.
544
547
  # @param [Hash] opts the optional parameters
545
548
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
549
+ # @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 &#39;repository&#39; is specified. Defaults to true.
546
550
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
547
551
  # @option opts [String] :artifact Artifact file representing the physical content
548
552
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -559,6 +563,7 @@ module PulpRpmClient
559
563
  # Synchronously upload an RPM package.
560
564
  # @param [Hash] opts the optional parameters
561
565
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
566
+ # @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 &#39;repository&#39; is specified. Defaults to true.
562
567
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
563
568
  # @option opts [String] :artifact Artifact file representing the physical content
564
569
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -593,6 +598,7 @@ module PulpRpmClient
593
598
 
594
599
  # form parameters
595
600
  form_params = opts[:form_params] || {}
601
+ form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
596
602
  form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
597
603
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
598
604
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
@@ -25,12 +25,16 @@ module PulpRpmClient
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 PulpRpmClient
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 PulpRpmClient
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 PulpRpmClient
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 PulpRpmClient
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
@@ -19,6 +19,9 @@ module PulpRpmClient
19
19
  # A URI of a repository the new content unit should be associated with.
20
20
  attr_accessor :repository
21
21
 
22
+ # 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.
23
+ attr_accessor :overwrite
24
+
22
25
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
26
  attr_accessor :pulp_labels
24
27
 
@@ -62,6 +65,7 @@ module PulpRpmClient
62
65
  def self.attribute_map
63
66
  {
64
67
  :'repository' => :'repository',
68
+ :'overwrite' => :'overwrite',
65
69
  :'pulp_labels' => :'pulp_labels',
66
70
  :'name' => :'name',
67
71
  :'stream' => :'stream',
@@ -87,6 +91,7 @@ module PulpRpmClient
87
91
  def self.openapi_types
88
92
  {
89
93
  :'repository' => :'String',
94
+ :'overwrite' => :'Boolean',
90
95
  :'pulp_labels' => :'Hash<String, String>',
91
96
  :'name' => :'String',
92
97
  :'stream' => :'String',
@@ -131,6 +136,10 @@ module PulpRpmClient
131
136
  self.repository = attributes[:'repository']
132
137
  end
133
138
 
139
+ if attributes.key?(:'overwrite')
140
+ self.overwrite = attributes[:'overwrite']
141
+ end
142
+
134
143
  if attributes.key?(:'pulp_labels')
135
144
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
136
145
  self.pulp_labels = value
@@ -397,6 +406,7 @@ module PulpRpmClient
397
406
  return true if self.equal?(o)
398
407
  self.class == o.class &&
399
408
  repository == o.repository &&
409
+ overwrite == o.overwrite &&
400
410
  pulp_labels == o.pulp_labels &&
401
411
  name == o.name &&
402
412
  stream == o.stream &&
@@ -421,7 +431,7 @@ module PulpRpmClient
421
431
  # Calculates hash code according to all attributes.
422
432
  # @return [Integer] Hash code
423
433
  def hash
424
- [repository, pulp_labels, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, snippet, profiles, description].hash
434
+ [repository, overwrite, pulp_labels, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, snippet, profiles, description].hash
425
435
  end
426
436
 
427
437
  # Builds the object from hash
@@ -19,6 +19,9 @@ module PulpRpmClient
19
19
  # A URI of a repository the new content unit should be associated with.
20
20
  attr_accessor :repository
21
21
 
22
+ # 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.
23
+ attr_accessor :overwrite
24
+
22
25
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
26
  attr_accessor :pulp_labels
24
27
 
@@ -38,6 +41,7 @@ module PulpRpmClient
38
41
  def self.attribute_map
39
42
  {
40
43
  :'repository' => :'repository',
44
+ :'overwrite' => :'overwrite',
41
45
  :'pulp_labels' => :'pulp_labels',
42
46
  :'_module' => :'module',
43
47
  :'stream' => :'stream',
@@ -55,6 +59,7 @@ module PulpRpmClient
55
59
  def self.openapi_types
56
60
  {
57
61
  :'repository' => :'String',
62
+ :'overwrite' => :'Boolean',
58
63
  :'pulp_labels' => :'Hash<String, String>',
59
64
  :'_module' => :'String',
60
65
  :'stream' => :'String',
@@ -89,6 +94,10 @@ module PulpRpmClient
89
94
  self.repository = attributes[:'repository']
90
95
  end
91
96
 
97
+ if attributes.key?(:'overwrite')
98
+ self.overwrite = attributes[:'overwrite']
99
+ end
100
+
92
101
  if attributes.key?(:'pulp_labels')
93
102
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
94
103
  self.pulp_labels = value
@@ -213,6 +222,7 @@ module PulpRpmClient
213
222
  return true if self.equal?(o)
214
223
  self.class == o.class &&
215
224
  repository == o.repository &&
225
+ overwrite == o.overwrite &&
216
226
  pulp_labels == o.pulp_labels &&
217
227
  _module == o._module &&
218
228
  stream == o.stream &&
@@ -229,7 +239,7 @@ module PulpRpmClient
229
239
  # Calculates hash code according to all attributes.
230
240
  # @return [Integer] Hash code
231
241
  def hash
232
- [repository, pulp_labels, _module, stream, profiles, snippet].hash
242
+ [repository, overwrite, pulp_labels, _module, stream, profiles, snippet].hash
233
243
  end
234
244
 
235
245
  # Builds the object from hash
@@ -19,6 +19,9 @@ module PulpRpmClient
19
19
  # A URI of a repository the new content unit should be associated with.
20
20
  attr_accessor :repository
21
21
 
22
+ # 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.
23
+ attr_accessor :overwrite
24
+
22
25
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
26
  attr_accessor :pulp_labels
24
27
 
@@ -56,6 +59,7 @@ module PulpRpmClient
56
59
  def self.attribute_map
57
60
  {
58
61
  :'repository' => :'repository',
62
+ :'overwrite' => :'overwrite',
59
63
  :'pulp_labels' => :'pulp_labels',
60
64
  :'modified' => :'modified',
61
65
  :'module_name' => :'module_name',
@@ -79,6 +83,7 @@ module PulpRpmClient
79
83
  def self.openapi_types
80
84
  {
81
85
  :'repository' => :'String',
86
+ :'overwrite' => :'Boolean',
82
87
  :'pulp_labels' => :'Hash<String, String>',
83
88
  :'modified' => :'String',
84
89
  :'module_name' => :'String',
@@ -123,6 +128,10 @@ module PulpRpmClient
123
128
  self.repository = attributes[:'repository']
124
129
  end
125
130
 
131
+ if attributes.key?(:'overwrite')
132
+ self.overwrite = attributes[:'overwrite']
133
+ end
134
+
126
135
  if attributes.key?(:'pulp_labels')
127
136
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
128
137
  self.pulp_labels = value
@@ -406,6 +415,7 @@ module PulpRpmClient
406
415
  return true if self.equal?(o)
407
416
  self.class == o.class &&
408
417
  repository == o.repository &&
418
+ overwrite == o.overwrite &&
409
419
  pulp_labels == o.pulp_labels &&
410
420
  modified == o.modified &&
411
421
  module_name == o.module_name &&
@@ -428,7 +438,7 @@ module PulpRpmClient
428
438
  # Calculates hash code according to all attributes.
429
439
  # @return [Integer] Hash code
430
440
  def hash
431
- [repository, pulp_labels, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
441
+ [repository, overwrite, pulp_labels, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
432
442
  end
433
443
 
434
444
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.36.0'
14
+ VERSION = '3.36.1'
15
15
  end
@@ -38,6 +38,7 @@ describe 'ContentAdvisoriesApi' do
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
40
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
41
+ # @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 &#39;repository&#39; is specified. Defaults to true.
41
42
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
42
43
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
43
44
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
@@ -38,6 +38,7 @@ describe 'ContentPackagesApi' do
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
40
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
41
+ # @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 &#39;repository&#39; is specified. Defaults to true.
41
42
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
42
43
  # @option opts [String] :artifact Artifact file representing the physical content
43
44
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
@@ -155,6 +156,7 @@ describe 'ContentPackagesApi' do
155
156
  # Synchronously upload an RPM package.
156
157
  # @param [Hash] opts the optional parameters
157
158
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
159
+ # @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 &#39;repository&#39; is specified. Defaults to true.
158
160
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
159
161
  # @option opts [String] :artifact Artifact file representing the physical content
160
162
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -45,4 +45,10 @@ describe PulpRpmClient::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
@@ -33,6 +33,12 @@ describe PulpRpmClient::RpmModulemdDefaults do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'test attribute "overwrite"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
36
42
  describe 'test attribute "pulp_labels"' do
37
43
  it 'should work' do
38
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -33,6 +33,12 @@ describe PulpRpmClient::RpmModulemdObsolete do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'test attribute "overwrite"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
36
42
  describe 'test attribute "pulp_labels"' do
37
43
  it 'should work' do
38
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -33,6 +33,12 @@ describe PulpRpmClient::RpmModulemd do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'test attribute "overwrite"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
36
42
  describe 'test attribute "pulp_labels"' do
37
43
  it 'should work' do
38
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
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.36.0
4
+ version: 3.36.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: 2026-04-20 00:00:00.000000000 Z
11
+ date: 2026-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -429,106 +429,106 @@ specification_version: 4
429
429
  summary: Pulp 3 API Ruby Gem
430
430
  test_files:
431
431
  - spec/api/rpm_copy_api_spec.rb
432
+ - spec/api/repositories_rpm_api_spec.rb
433
+ - spec/api/content_packages_api_spec.rb
432
434
  - spec/api/rpm_comps_api_spec.rb
433
- - spec/api/acs_rpm_api_spec.rb
434
- - spec/api/content_packageenvironments_api_spec.rb
435
- - spec/api/remotes_rpm_api_spec.rb
436
- - spec/api/rpm_prune_api_spec.rb
437
- - spec/api/content_distribution_trees_api_spec.rb
435
+ - spec/api/content_packagegroups_api_spec.rb
436
+ - spec/api/remotes_uln_api_spec.rb
437
+ - spec/api/content_modulemd_defaults_api_spec.rb
438
438
  - spec/api/distributions_rpm_api_spec.rb
439
+ - spec/api/remotes_rpm_api_spec.rb
439
440
  - spec/api/content_packagecategories_api_spec.rb
440
- - spec/api/content_modulemd_defaults_api_spec.rb
441
- - spec/api/content_modulemd_obsoletes_api_spec.rb
441
+ - spec/api/publications_rpm_api_spec.rb
442
+ - spec/api/content_packagelangpacks_api_spec.rb
442
443
  - spec/api/content_repo_metadata_files_api_spec.rb
443
- - spec/api/repositories_rpm_api_spec.rb
444
- - spec/api/content_packages_api_spec.rb
445
- - spec/api/content_advisories_api_spec.rb
444
+ - spec/api/rpm_prune_api_spec.rb
445
+ - spec/api/acs_rpm_api_spec.rb
446
446
  - spec/api/repositories_rpm_versions_api_spec.rb
447
+ - spec/api/content_packageenvironments_api_spec.rb
447
448
  - spec/api/content_modulemds_api_spec.rb
448
- - spec/api/content_packagelangpacks_api_spec.rb
449
- - spec/api/remotes_uln_api_spec.rb
450
- - spec/api/content_packagegroups_api_spec.rb
451
- - spec/api/publications_rpm_api_spec.rb
452
- - spec/models/object_roles_response_spec.rb
453
- - spec/models/rpm_rpm_distribution_response_spec.rb
454
- - spec/models/nested_role_spec.rb
449
+ - spec/api/content_advisories_api_spec.rb
450
+ - spec/api/content_distribution_trees_api_spec.rb
451
+ - spec/api/content_modulemd_obsoletes_api_spec.rb
452
+ - spec/models/rpm_modulemd_obsolete_response_spec.rb
453
+ - spec/models/paginatedrpm_rpm_publication_response_list_spec.rb
454
+ - spec/models/rpm_distribution_tree_response_spec.rb
455
455
  - spec/models/unset_label_response_spec.rb
456
- - spec/models/skip_types_enum_spec.rb
457
- - spec/models/compression_type_enum_spec.rb
458
- - spec/models/rpm_package_langpacks_response_spec.rb
459
- - spec/models/patchedrpm_rpm_remote_spec.rb
460
- - spec/models/rpm_rpm_alternate_content_source_response_spec.rb
461
- - spec/models/paginatedrpm_package_category_response_list_spec.rb
462
- - spec/models/rpm_uln_remote_spec.rb
463
- - spec/models/rpm_update_record_response_spec.rb
464
- - spec/models/rpm_repo_metadata_file_response_spec.rb
465
- - spec/models/rpm_package_category_response_spec.rb
466
- - spec/models/patchedrpm_rpm_distribution_spec.rb
467
- - spec/models/rpm_update_collection_response_spec.rb
468
- - spec/models/repository_add_remove_content_spec.rb
469
- - spec/models/sync_policy_enum_spec.rb
470
- - spec/models/addon_response_spec.rb
471
- - spec/models/paginatedrpm_update_record_response_list_spec.rb
456
+ - spec/models/set_label_spec.rb
457
+ - spec/models/patchedrpm_uln_remote_spec.rb
458
+ - spec/models/rpm_rpm_alternate_content_source_spec.rb
472
459
  - spec/models/paginatedrpm_package_group_response_list_spec.rb
460
+ - spec/models/task_group_operation_response_spec.rb
461
+ - spec/models/paginatedrpm_package_langpacks_response_list_spec.rb
473
462
  - spec/models/rpm_rpm_remote_response_spec.rb
474
- - spec/models/rpm_modulemd_defaults_response_spec.rb
475
- - spec/models/async_operation_response_spec.rb
476
- - spec/models/rpm_rpm_publication_response_spec.rb
477
- - spec/models/variant_response_spec.rb
478
- - spec/models/rpm_uln_remote_response_spec.rb
479
463
  - spec/models/prune_packages_spec.rb
480
- - spec/models/rpm_rpm_alternate_content_source_spec.rb
481
- - spec/models/paginatedrpm_package_response_list_spec.rb
482
- - spec/models/patchedrpm_rpm_repository_spec.rb
483
- - spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb
484
- - spec/models/rpm_modulemd_defaults_spec.rb
485
- - spec/models/paginatedrpm_rpm_remote_response_list_spec.rb
464
+ - spec/models/layout_enum_spec.rb
486
465
  - spec/models/policy_enum_spec.rb
487
- - spec/models/rpm_package_response_spec.rb
466
+ - spec/models/rpm_update_collection_spec.rb
467
+ - spec/models/paginatedrpm_package_response_list_spec.rb
468
+ - spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb
469
+ - spec/models/rpm_rpm_publication_response_spec.rb
470
+ - spec/models/object_roles_response_spec.rb
488
471
  - spec/models/paginatedrpm_distribution_tree_response_list_spec.rb
489
472
  - spec/models/paginatedrpm_package_environment_response_list_spec.rb
490
- - spec/models/remote_network_config_spec.rb
491
- - spec/models/paginatedrpm_package_langpacks_response_list_spec.rb
492
- - spec/models/task_group_operation_response_spec.rb
473
+ - spec/models/rpm_rpm_remote_response_hidden_fields_inner_spec.rb
493
474
  - spec/models/paginatedrpm_uln_remote_response_list_spec.rb
494
- - spec/models/image_response_spec.rb
475
+ - spec/models/repository_add_remove_content_spec.rb
495
476
  - spec/models/artifact_response_spec.rb
477
+ - spec/models/paginatedrpm_rpm_remote_response_list_spec.rb
478
+ - spec/models/compression_type_enum_spec.rb
479
+ - spec/models/rpm_uln_remote_response_spec.rb
480
+ - spec/models/patchedrpm_rpm_repository_spec.rb
481
+ - spec/models/nested_role_response_spec.rb
496
482
  - spec/models/remote_network_config_response_spec.rb
497
- - spec/models/rpm_modulemd_obsolete_spec.rb
498
- - spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb
499
- - spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb
500
- - spec/models/rpm_rpm_repository_response_spec.rb
501
- - spec/models/rpm_update_collection_spec.rb
502
- - spec/models/rpm_rpm_distribution_spec.rb
503
- - spec/models/rpm_distribution_tree_response_spec.rb
504
- - spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb
505
- - spec/models/checksum_response_spec.rb
483
+ - spec/models/rpm_package_environment_response_spec.rb
484
+ - spec/models/rpm_update_collection_response_spec.rb
485
+ - spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb
486
+ - spec/models/rpm_rpm_remote_spec.rb
487
+ - spec/models/paginatedrpm_package_category_response_list_spec.rb
488
+ - spec/models/rpm_package_group_response_spec.rb
489
+ - spec/models/rpm_modulemd_defaults_spec.rb
506
490
  - spec/models/unset_label_spec.rb
491
+ - spec/models/skip_types_enum_spec.rb
507
492
  - spec/models/content_summary_response_spec.rb
508
- - spec/models/rpm_package_group_response_spec.rb
509
- - spec/models/rpm_rpm_repository_spec.rb
510
- - spec/models/rpm_rpm_remote_spec.rb
511
- - spec/models/rpm_rpm_publication_spec.rb
512
- - spec/models/repository_version_response_spec.rb
493
+ - spec/models/rpm_package_langpacks_response_spec.rb
494
+ - spec/models/package_checksum_type_enum_spec.rb
495
+ - spec/models/paginatedrpm_rpm_repository_response_list_spec.rb
496
+ - spec/models/patchedrpm_rpm_distribution_spec.rb
497
+ - spec/models/rpm_update_record_response_spec.rb
498
+ - spec/models/sync_policy_enum_spec.rb
499
+ - spec/models/paginated_repository_version_response_list_spec.rb
513
500
  - spec/models/paginatedrpm_modulemd_response_list_spec.rb
501
+ - spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb
502
+ - spec/models/rpm_rpm_distribution_spec.rb
503
+ - spec/models/remote_network_config_spec.rb
504
+ - spec/models/patchedrpm_rpm_remote_spec.rb
514
505
  - spec/models/paginatedrpm_modulemd_obsolete_response_list_spec.rb
515
- - spec/models/rpm_repository_sync_url_spec.rb
516
- - spec/models/paginatedrpm_rpm_publication_response_list_spec.rb
517
- - spec/models/rpm_rpm_remote_response_hidden_fields_inner_spec.rb
506
+ - spec/models/rpm_rpm_distribution_response_spec.rb
507
+ - spec/models/rpm_rpm_repository_spec.rb
508
+ - spec/models/addon_response_spec.rb
509
+ - spec/models/rpm_modulemd_obsolete_spec.rb
510
+ - spec/models/rpm_rpm_alternate_content_source_response_spec.rb
511
+ - spec/models/rpm_uln_remote_spec.rb
512
+ - spec/models/repository_version_response_spec.rb
518
513
  - spec/models/set_label_response_spec.rb
519
- - spec/models/paginated_repository_version_response_list_spec.rb
520
- - spec/models/patchedrpm_uln_remote_spec.rb
521
- - spec/models/nested_role_response_spec.rb
522
- - spec/models/paginatedrpm_rpm_repository_response_list_spec.rb
514
+ - spec/models/rpm_rpm_publication_spec.rb
515
+ - spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb
516
+ - spec/models/rpm_repo_metadata_file_response_spec.rb
517
+ - spec/models/patchedrpm_rpm_alternate_content_source_spec.rb
523
518
  - spec/models/my_permissions_response_spec.rb
524
- - spec/models/copy_spec.rb
519
+ - spec/models/rpm_rpm_repository_response_spec.rb
520
+ - spec/models/variant_response_spec.rb
521
+ - spec/models/checksum_response_spec.rb
522
+ - spec/models/rpm_modulemd_spec.rb
525
523
  - spec/models/repair_spec.rb
526
- - spec/models/package_checksum_type_enum_spec.rb
524
+ - spec/models/nested_role_spec.rb
525
+ - spec/models/paginatedrpm_update_record_response_list_spec.rb
526
+ - spec/models/rpm_package_response_spec.rb
527
+ - spec/models/async_operation_response_spec.rb
528
+ - spec/models/copy_spec.rb
529
+ - spec/models/rpm_repository_sync_url_spec.rb
530
+ - spec/models/rpm_modulemd_defaults_response_spec.rb
531
+ - spec/models/image_response_spec.rb
527
532
  - spec/models/rpm_modulemd_response_spec.rb
528
- - spec/models/layout_enum_spec.rb
529
- - spec/models/rpm_package_environment_response_spec.rb
530
- - spec/models/set_label_spec.rb
531
- - spec/models/rpm_modulemd_spec.rb
532
- - spec/models/rpm_modulemd_obsolete_response_spec.rb
533
- - spec/models/patchedrpm_rpm_alternate_content_source_spec.rb
533
+ - spec/models/rpm_package_category_response_spec.rb
534
534
  - spec/spec_helper.rb