pulpcore_client 3.112.1 → 3.114.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f06dc513444cda314139d4cf0e5be9ed28b0dfb06ccd159543f5a7547c02ee7
4
- data.tar.gz: 731a6001e23bfb028c8f78de9737e3b93b0de47249208e5b6532d364459b43ee
3
+ metadata.gz: 0c3877c0ae07780146e560d6f2b6c387f0d4b848ab9ef1b8a215bdff6affcd38
4
+ data.tar.gz: ca04c7876d225d8cab790e81001ad749e78c2496637bf0928a360a0d3d9cf682
5
5
  SHA512:
6
- metadata.gz: 8d69ef627634ae363c2180be07d0bb79bd4dd5012013a696866ae2780b5c6e5e2be6d37ac2b041580caa12e60368b15e50b0041ce2a85c8740409e51c623160a
7
- data.tar.gz: 3574aa7abdeb93e39adf829ecb872fd6555cf2267e6a9be71a68574a8b78fa4de85a5800ec9255f9adf8be73decc9e7c1d11dd22a37b9e543c2ccb0a5e3363c3
6
+ metadata.gz: bd64ea40e320597accd2fad1aacc2faf4f86a478a6e0b1f8bf39d337452d9cedc4a52f3c81ef916e37c5fcef4a02637f382f2b01a9f5f9756441f49a3d7f0a75
7
+ data.tar.gz: bb8360b000dda7863afb563b2d8c61ef163b180a28323ce5ddf558c755fd7f3cb1f244a71caef9c521fc520aeac151cedb5ed790aa67ec161b1f26ba3bfbaa71
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.112.1
10
+ - Package version: 3.114.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 pulpcore_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulpcore_client-3.112.1.gem
28
+ gem install ./pulpcore_client-3.114.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulpcore_client-3.112.1.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulpcore_client-3.114.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 'pulpcore_client', '~> 3.112.1'
37
+ gem 'pulpcore_client', '~> 3.114.0'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -512,6 +512,7 @@ Class | Method | HTTP request | Description
512
512
  - [PulpcoreClient::UploadDetailResponse](docs/UploadDetailResponse.md)
513
513
  - [PulpcoreClient::UploadResponse](docs/UploadResponse.md)
514
514
  - [PulpcoreClient::UpstreamPulp](docs/UpstreamPulp.md)
515
+ - [PulpcoreClient::UpstreamPulpReplicate](docs/UpstreamPulpReplicate.md)
515
516
  - [PulpcoreClient::UpstreamPulpResponse](docs/UpstreamPulpResponse.md)
516
517
  - [PulpcoreClient::User](docs/User.md)
517
518
  - [PulpcoreClient::UserGroup](docs/UserGroup.md)
@@ -4,19 +4,19 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
8
7
  | **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
9
- | **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
10
8
  | **pulp_href** | **String** | | [optional][readonly] |
11
- | **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
12
- | **content_guard** | **String** | An optional content-guard. | [optional] |
13
- | **content_guard_prn** | **String** | The Pulp Resource Name (PRN) of the associated optional content guard. | [optional][readonly] |
14
- | **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
9
+ | **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | |
15
10
  | **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
11
+ | **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
12
+ | **repository_version** | **String** | RepositoryVersion to be served | [optional] |
16
13
  | **pulp_labels** | **Hash<String, String>** | | [optional] |
14
+ | **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
15
+ | **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
16
+ | **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
17
+ | **content_guard_prn** | **String** | The Pulp Resource Name (PRN) of the associated optional content guard. | [optional][readonly] |
18
+ | **content_guard** | **String** | An optional content-guard. | [optional] |
17
19
  | **no_content_change_since** | **String** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional][readonly] |
18
- | **repository_version** | **String** | RepositoryVersion to be served | [optional] |
19
- | **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | |
20
20
 
21
21
  ## Example
22
22
 
@@ -24,19 +24,19 @@
24
24
  require 'pulpcore_client'
25
25
 
26
26
  instance = PulpcoreClient::ArtifactDistributionResponse.new(
27
- pulp_last_updated: null,
28
27
  pulp_created: null,
29
- prn: null,
30
28
  pulp_href: null,
31
- name: null,
32
- content_guard: null,
33
- content_guard_prn: null,
34
- base_url: null,
29
+ base_path: null,
35
30
  hidden: null,
36
- pulp_labels: null,
37
- no_content_change_since: null,
31
+ pulp_last_updated: null,
38
32
  repository_version: null,
39
- base_path: null
33
+ pulp_labels: null,
34
+ prn: null,
35
+ name: null,
36
+ base_url: null,
37
+ content_guard_prn: null,
38
+ content_guard: null,
39
+ no_content_change_since: null
40
40
  )
41
41
  ```
42
42
 
data/docs/Purge.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **finished_before** | **Time** | Purge tasks completed earlier than this timestamp. Format '%Y-%m-%d[T%H:%M:%S]' | [optional][default to '2026-05-04'] |
7
+ | **finished_before** | **Time** | Purge tasks completed earlier than this timestamp. Format '%Y-%m-%d[T%H:%M:%S]' | [optional][default to '2026-05-10'] |
8
8
  | **states** | [**Array<StatesEnum>**](StatesEnum.md) | List of task-states to be purged. Only 'final' states are allowed. | [optional] |
9
9
 
10
10
  ## Example
@@ -0,0 +1,18 @@
1
+ # PulpcoreClient::UpstreamPulpReplicate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **q_select** | **String** | Filter distributions on the upstream Pulp using complex filtering. When specified, overrides the stored q_select for this replication run only. E.g. pulp_label_select=\"foo\" OR pulp_label_select=\"key=val\" | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'pulpcore_client'
13
+
14
+ instance = PulpcoreClient::UpstreamPulpReplicate.new(
15
+ q_select: null
16
+ )
17
+ ```
18
+
@@ -768,7 +768,7 @@ end
768
768
 
769
769
  ## replicate
770
770
 
771
- > <TaskGroupOperationResponse> replicate(upstream_pulp_href, opts)
771
+ > <TaskGroupOperationResponse> replicate(upstream_pulp_href, upstream_pulp_replicate, opts)
772
772
 
773
773
  Replicate
774
774
 
@@ -788,13 +788,14 @@ end
788
788
 
789
789
  api_instance = PulpcoreClient::UpstreamPulpsApi.new
790
790
  upstream_pulp_href = 'upstream_pulp_href_example' # String |
791
+ upstream_pulp_replicate = PulpcoreClient::UpstreamPulpReplicate.new # UpstreamPulpReplicate |
791
792
  opts = {
792
793
  x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
793
794
  }
794
795
 
795
796
  begin
796
797
  # Replicate
797
- result = api_instance.replicate(upstream_pulp_href, opts)
798
+ result = api_instance.replicate(upstream_pulp_href, upstream_pulp_replicate, opts)
798
799
  p result
799
800
  rescue PulpcoreClient::ApiError => e
800
801
  puts "Error when calling UpstreamPulpsApi->replicate: #{e}"
@@ -805,12 +806,12 @@ end
805
806
 
806
807
  This returns an Array which contains the response data, status code and headers.
807
808
 
808
- > <Array(<TaskGroupOperationResponse>, Integer, Hash)> replicate_with_http_info(upstream_pulp_href, opts)
809
+ > <Array(<TaskGroupOperationResponse>, Integer, Hash)> replicate_with_http_info(upstream_pulp_href, upstream_pulp_replicate, opts)
809
810
 
810
811
  ```ruby
811
812
  begin
812
813
  # Replicate
813
- data, status_code, headers = api_instance.replicate_with_http_info(upstream_pulp_href, opts)
814
+ data, status_code, headers = api_instance.replicate_with_http_info(upstream_pulp_href, upstream_pulp_replicate, opts)
814
815
  p status_code # => 2xx
815
816
  p headers # => { ... }
816
817
  p data # => <TaskGroupOperationResponse>
@@ -824,6 +825,7 @@ end
824
825
  | Name | Type | Description | Notes |
825
826
  | ---- | ---- | ----------- | ----- |
826
827
  | **upstream_pulp_href** | **String** | | |
828
+ | **upstream_pulp_replicate** | [**UpstreamPulpReplicate**](UpstreamPulpReplicate.md) | | |
827
829
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
828
830
 
829
831
  ### Return type
@@ -836,7 +838,7 @@ end
836
838
 
837
839
  ### HTTP request headers
838
840
 
839
- - **Content-Type**: Not defined
841
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
840
842
  - **Accept**: application/json
841
843
 
842
844
 
@@ -770,21 +770,23 @@ module PulpcoreClient
770
770
  # Replicate
771
771
  # Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
772
772
  # @param upstream_pulp_href [String]
773
+ # @param upstream_pulp_replicate [UpstreamPulpReplicate]
773
774
  # @param [Hash] opts the optional parameters
774
775
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
775
776
  # @return [TaskGroupOperationResponse]
776
- def replicate(upstream_pulp_href, opts = {})
777
- data, _status_code, _headers = replicate_with_http_info(upstream_pulp_href, opts)
777
+ def replicate(upstream_pulp_href, upstream_pulp_replicate, opts = {})
778
+ data, _status_code, _headers = replicate_with_http_info(upstream_pulp_href, upstream_pulp_replicate, opts)
778
779
  data
779
780
  end
780
781
 
781
782
  # Replicate
782
783
  # Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
783
784
  # @param upstream_pulp_href [String]
785
+ # @param upstream_pulp_replicate [UpstreamPulpReplicate]
784
786
  # @param [Hash] opts the optional parameters
785
787
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
786
788
  # @return [Array<(TaskGroupOperationResponse, Integer, Hash)>] TaskGroupOperationResponse data, response status code and response headers
787
- def replicate_with_http_info(upstream_pulp_href, opts = {})
789
+ def replicate_with_http_info(upstream_pulp_href, upstream_pulp_replicate, opts = {})
788
790
  if @api_client.config.debugging
789
791
  @api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.replicate ...'
790
792
  end
@@ -792,6 +794,10 @@ module PulpcoreClient
792
794
  if @api_client.config.client_side_validation && upstream_pulp_href.nil?
793
795
  fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.replicate"
794
796
  end
797
+ # verify the required parameter 'upstream_pulp_replicate' is set
798
+ if @api_client.config.client_side_validation && upstream_pulp_replicate.nil?
799
+ fail ArgumentError, "Missing the required parameter 'upstream_pulp_replicate' when calling UpstreamPulpsApi.replicate"
800
+ end
795
801
  # resource path
796
802
  local_var_path = '{upstream_pulp_href}replicate/'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
797
803
 
@@ -802,13 +808,18 @@ module PulpcoreClient
802
808
  header_params = opts[:header_params] || {}
803
809
  # HTTP header 'Accept' (if needed)
804
810
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
811
+ # HTTP header 'Content-Type'
812
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
813
+ if !content_type.nil?
814
+ header_params['Content-Type'] = content_type
815
+ end
805
816
  header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
806
817
 
807
818
  # form parameters
808
819
  form_params = opts[:form_params] || {}
809
820
 
810
821
  # http body (model)
811
- post_body = opts[:debug_body]
822
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(upstream_pulp_replicate)
812
823
 
813
824
  # return_type
814
825
  return_type = opts[:debug_return_type] || 'TaskGroupOperationResponse'
@@ -16,59 +16,59 @@ require 'time'
16
16
  module PulpcoreClient
17
17
  # A serializer for ArtifactDistribution.
18
18
  class ArtifactDistributionResponse
19
+ # Timestamp of creation.
20
+ attr_accessor :pulp_created
21
+
22
+ attr_accessor :pulp_href
23
+
24
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
+ attr_accessor :base_path
26
+
27
+ # Whether this distribution should be shown in the content app.
28
+ attr_accessor :hidden
29
+
19
30
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
20
31
  attr_accessor :pulp_last_updated
21
32
 
22
- # Timestamp of creation.
23
- attr_accessor :pulp_created
33
+ # RepositoryVersion to be served
34
+ attr_accessor :repository_version
35
+
36
+ attr_accessor :pulp_labels
24
37
 
25
38
  # The Pulp Resource Name (PRN).
26
39
  attr_accessor :prn
27
40
 
28
- attr_accessor :pulp_href
29
-
30
41
  # A unique name. Ex, `rawhide` and `stable`.
31
42
  attr_accessor :name
32
43
 
33
- # An optional content-guard.
34
- attr_accessor :content_guard
35
-
36
- # The Pulp Resource Name (PRN) of the associated optional content guard.
37
- attr_accessor :content_guard_prn
38
-
39
44
  # The URL for accessing the publication as defined by this distribution.
40
45
  attr_accessor :base_url
41
46
 
42
- # Whether this distribution should be shown in the content app.
43
- attr_accessor :hidden
47
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
48
+ attr_accessor :content_guard_prn
44
49
 
45
- attr_accessor :pulp_labels
50
+ # An optional content-guard.
51
+ attr_accessor :content_guard
46
52
 
47
53
  # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
48
54
  attr_accessor :no_content_change_since
49
55
 
50
- # RepositoryVersion to be served
51
- attr_accessor :repository_version
52
-
53
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
54
- attr_accessor :base_path
55
-
56
56
  # Attribute mapping from ruby-style variable name to JSON key.
57
57
  def self.attribute_map
58
58
  {
59
- :'pulp_last_updated' => :'pulp_last_updated',
60
59
  :'pulp_created' => :'pulp_created',
61
- :'prn' => :'prn',
62
60
  :'pulp_href' => :'pulp_href',
63
- :'name' => :'name',
64
- :'content_guard' => :'content_guard',
65
- :'content_guard_prn' => :'content_guard_prn',
66
- :'base_url' => :'base_url',
61
+ :'base_path' => :'base_path',
67
62
  :'hidden' => :'hidden',
68
- :'pulp_labels' => :'pulp_labels',
69
- :'no_content_change_since' => :'no_content_change_since',
63
+ :'pulp_last_updated' => :'pulp_last_updated',
70
64
  :'repository_version' => :'repository_version',
71
- :'base_path' => :'base_path'
65
+ :'pulp_labels' => :'pulp_labels',
66
+ :'prn' => :'prn',
67
+ :'name' => :'name',
68
+ :'base_url' => :'base_url',
69
+ :'content_guard_prn' => :'content_guard_prn',
70
+ :'content_guard' => :'content_guard',
71
+ :'no_content_change_since' => :'no_content_change_since'
72
72
  }
73
73
  end
74
74
 
@@ -80,27 +80,27 @@ module PulpcoreClient
80
80
  # Attribute type mapping.
81
81
  def self.openapi_types
82
82
  {
83
- :'pulp_last_updated' => :'Time',
84
83
  :'pulp_created' => :'Time',
85
- :'prn' => :'String',
86
84
  :'pulp_href' => :'String',
87
- :'name' => :'String',
88
- :'content_guard' => :'String',
89
- :'content_guard_prn' => :'String',
90
- :'base_url' => :'String',
85
+ :'base_path' => :'String',
91
86
  :'hidden' => :'Boolean',
92
- :'pulp_labels' => :'Hash<String, String>',
93
- :'no_content_change_since' => :'String',
87
+ :'pulp_last_updated' => :'Time',
94
88
  :'repository_version' => :'String',
95
- :'base_path' => :'String'
89
+ :'pulp_labels' => :'Hash<String, String>',
90
+ :'prn' => :'String',
91
+ :'name' => :'String',
92
+ :'base_url' => :'String',
93
+ :'content_guard_prn' => :'String',
94
+ :'content_guard' => :'String',
95
+ :'no_content_change_since' => :'String'
96
96
  }
97
97
  end
98
98
 
99
99
  # List of attributes with nullable: true
100
100
  def self.openapi_nullable
101
101
  Set.new([
102
- :'content_guard',
103
102
  :'repository_version',
103
+ :'content_guard',
104
104
  ])
105
105
  end
106
106
 
@@ -119,38 +119,18 @@ module PulpcoreClient
119
119
  h[k.to_sym] = v
120
120
  }
121
121
 
122
- if attributes.key?(:'pulp_last_updated')
123
- self.pulp_last_updated = attributes[:'pulp_last_updated']
124
- end
125
-
126
122
  if attributes.key?(:'pulp_created')
127
123
  self.pulp_created = attributes[:'pulp_created']
128
124
  end
129
125
 
130
- if attributes.key?(:'prn')
131
- self.prn = attributes[:'prn']
132
- end
133
-
134
126
  if attributes.key?(:'pulp_href')
135
127
  self.pulp_href = attributes[:'pulp_href']
136
128
  end
137
129
 
138
- if attributes.key?(:'name')
139
- self.name = attributes[:'name']
130
+ if attributes.key?(:'base_path')
131
+ self.base_path = attributes[:'base_path']
140
132
  else
141
- self.name = nil
142
- end
143
-
144
- if attributes.key?(:'content_guard')
145
- self.content_guard = attributes[:'content_guard']
146
- end
147
-
148
- if attributes.key?(:'content_guard_prn')
149
- self.content_guard_prn = attributes[:'content_guard_prn']
150
- end
151
-
152
- if attributes.key?(:'base_url')
153
- self.base_url = attributes[:'base_url']
133
+ self.base_path = nil
154
134
  end
155
135
 
156
136
  if attributes.key?(:'hidden')
@@ -159,24 +139,44 @@ module PulpcoreClient
159
139
  self.hidden = false
160
140
  end
161
141
 
142
+ if attributes.key?(:'pulp_last_updated')
143
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
144
+ end
145
+
146
+ if attributes.key?(:'repository_version')
147
+ self.repository_version = attributes[:'repository_version']
148
+ end
149
+
162
150
  if attributes.key?(:'pulp_labels')
163
151
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
164
152
  self.pulp_labels = value
165
153
  end
166
154
  end
167
155
 
168
- if attributes.key?(:'no_content_change_since')
169
- self.no_content_change_since = attributes[:'no_content_change_since']
156
+ if attributes.key?(:'prn')
157
+ self.prn = attributes[:'prn']
170
158
  end
171
159
 
172
- if attributes.key?(:'repository_version')
173
- self.repository_version = attributes[:'repository_version']
160
+ if attributes.key?(:'name')
161
+ self.name = attributes[:'name']
162
+ else
163
+ self.name = nil
174
164
  end
175
165
 
176
- if attributes.key?(:'base_path')
177
- self.base_path = attributes[:'base_path']
178
- else
179
- self.base_path = nil
166
+ if attributes.key?(:'base_url')
167
+ self.base_url = attributes[:'base_url']
168
+ end
169
+
170
+ if attributes.key?(:'content_guard_prn')
171
+ self.content_guard_prn = attributes[:'content_guard_prn']
172
+ end
173
+
174
+ if attributes.key?(:'content_guard')
175
+ self.content_guard = attributes[:'content_guard']
176
+ end
177
+
178
+ if attributes.key?(:'no_content_change_since')
179
+ self.no_content_change_since = attributes[:'no_content_change_since']
180
180
  end
181
181
  end
182
182
 
@@ -185,14 +185,14 @@ module PulpcoreClient
185
185
  def list_invalid_properties
186
186
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
187
187
  invalid_properties = Array.new
188
- if @name.nil?
189
- invalid_properties.push('invalid value for "name", name cannot be nil.')
190
- end
191
-
192
188
  if @base_path.nil?
193
189
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
194
190
  end
195
191
 
192
+ if @name.nil?
193
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
194
+ end
195
+
196
196
  invalid_properties
197
197
  end
198
198
 
@@ -200,8 +200,8 @@ module PulpcoreClient
200
200
  # @return true if the model is valid
201
201
  def valid?
202
202
  warn '[DEPRECATED] the `valid?` method is obsolete'
203
- return false if @name.nil?
204
203
  return false if @base_path.nil?
204
+ return false if @name.nil?
205
205
  true
206
206
  end
207
207
 
@@ -210,19 +210,19 @@ module PulpcoreClient
210
210
  def ==(o)
211
211
  return true if self.equal?(o)
212
212
  self.class == o.class &&
213
- pulp_last_updated == o.pulp_last_updated &&
214
213
  pulp_created == o.pulp_created &&
215
- prn == o.prn &&
216
214
  pulp_href == o.pulp_href &&
217
- name == o.name &&
218
- content_guard == o.content_guard &&
219
- content_guard_prn == o.content_guard_prn &&
220
- base_url == o.base_url &&
215
+ base_path == o.base_path &&
221
216
  hidden == o.hidden &&
222
- pulp_labels == o.pulp_labels &&
223
- no_content_change_since == o.no_content_change_since &&
217
+ pulp_last_updated == o.pulp_last_updated &&
224
218
  repository_version == o.repository_version &&
225
- base_path == o.base_path
219
+ pulp_labels == o.pulp_labels &&
220
+ prn == o.prn &&
221
+ name == o.name &&
222
+ base_url == o.base_url &&
223
+ content_guard_prn == o.content_guard_prn &&
224
+ content_guard == o.content_guard &&
225
+ no_content_change_since == o.no_content_change_since
226
226
  end
227
227
 
228
228
  # @see the `==` method
@@ -234,7 +234,7 @@ module PulpcoreClient
234
234
  # Calculates hash code according to all attributes.
235
235
  # @return [Integer] Hash code
236
236
  def hash
237
- [pulp_last_updated, pulp_created, prn, pulp_href, name, content_guard, content_guard_prn, base_url, hidden, pulp_labels, no_content_change_since, repository_version, base_path].hash
237
+ [pulp_created, pulp_href, base_path, hidden, pulp_last_updated, repository_version, pulp_labels, prn, name, base_url, content_guard_prn, content_guard, no_content_change_since].hash
238
238
  end
239
239
 
240
240
  # Builds the object from hash
@@ -66,7 +66,7 @@ module PulpcoreClient
66
66
  if attributes.key?(:'finished_before')
67
67
  self.finished_before = attributes[:'finished_before']
68
68
  else
69
- self.finished_before = '2026-05-04'
69
+ self.finished_before = '2026-05-10'
70
70
  end
71
71
 
72
72
  if attributes.key?(:'states')
@@ -0,0 +1,216 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module PulpcoreClient
17
+ class UpstreamPulpReplicate
18
+ # Filter distributions on the upstream Pulp using complex filtering. When specified, overrides the stored q_select for this replication run only. E.g. pulp_label_select=\"foo\" OR pulp_label_select=\"key=val\"
19
+ attr_accessor :q_select
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'q_select' => :'q_select'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'q_select' => :'String'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ :'q_select'
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::UpstreamPulpReplicate` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::UpstreamPulpReplicate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'q_select')
63
+ self.q_select = attributes[:'q_select']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
71
+ invalid_properties = Array.new
72
+ invalid_properties
73
+ end
74
+
75
+ # Check to see if the all the properties in the model are valid
76
+ # @return true if the model is valid
77
+ def valid?
78
+ warn '[DEPRECATED] the `valid?` method is obsolete'
79
+ true
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param [Object] Object to be compared
84
+ def ==(o)
85
+ return true if self.equal?(o)
86
+ self.class == o.class &&
87
+ q_select == o.q_select
88
+ end
89
+
90
+ # @see the `==` method
91
+ # @param [Object] Object to be compared
92
+ def eql?(o)
93
+ self == o
94
+ end
95
+
96
+ # Calculates hash code according to all attributes.
97
+ # @return [Integer] Hash code
98
+ def hash
99
+ [q_select].hash
100
+ end
101
+
102
+ # Builds the object from hash
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @return [Object] Returns the model itself
105
+ def self.build_from_hash(attributes)
106
+ return nil unless attributes.is_a?(Hash)
107
+ attributes = attributes.transform_keys(&:to_sym)
108
+ transformed_hash = {}
109
+ openapi_types.each_pair do |key, type|
110
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
111
+ transformed_hash["#{key}"] = nil
112
+ elsif type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[attribute_map[key]].is_a?(Array)
116
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
117
+ end
118
+ elsif !attributes[attribute_map[key]].nil?
119
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
120
+ end
121
+ end
122
+ new(transformed_hash)
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def self._deserialize(type, value)
130
+ case type.to_sym
131
+ when :Time
132
+ Time.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :Boolean
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ # models (e.g. Pet) or oneOf
163
+ klass = PulpcoreClient.const_get(type)
164
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ if value.nil?
187
+ is_nullable = self.class.openapi_nullable.include?(attr)
188
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
189
+ end
190
+
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+
214
+ end
215
+
216
+ end
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.112.1'
14
+ VERSION = '3.114.0'
15
15
  end
@@ -186,6 +186,7 @@ require 'pulpcore_client/models/upload_commit'
186
186
  require 'pulpcore_client/models/upload_detail_response'
187
187
  require 'pulpcore_client/models/upload_response'
188
188
  require 'pulpcore_client/models/upstream_pulp'
189
+ require 'pulpcore_client/models/upstream_pulp_replicate'
189
190
  require 'pulpcore_client/models/upstream_pulp_response'
190
191
  require 'pulpcore_client/models/user'
191
192
  require 'pulpcore_client/models/user_group'
@@ -195,6 +195,7 @@ describe 'UpstreamPulpsApi' do
195
195
  # Replicate
196
196
  # Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
197
197
  # @param upstream_pulp_href
198
+ # @param upstream_pulp_replicate
198
199
  # @param [Hash] opts the optional parameters
199
200
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
200
201
  # @return [TaskGroupOperationResponse]
@@ -27,79 +27,79 @@ describe PulpcoreClient::ArtifactDistributionResponse do
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "pulp_last_updated"' do
30
+ describe 'test attribute "pulp_created"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
33
  end
34
34
  end
35
35
 
36
- describe 'test attribute "pulp_created"' do
36
+ describe 'test attribute "pulp_href"' do
37
37
  it 'should work' do
38
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
39
  end
40
40
  end
41
41
 
42
- describe 'test attribute "prn"' do
42
+ describe 'test attribute "base_path"' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
45
  end
46
46
  end
47
47
 
48
- describe 'test attribute "pulp_href"' do
48
+ describe 'test attribute "hidden"' do
49
49
  it 'should work' do
50
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
51
  end
52
52
  end
53
53
 
54
- describe 'test attribute "name"' do
54
+ describe 'test attribute "pulp_last_updated"' do
55
55
  it 'should work' do
56
56
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
57
  end
58
58
  end
59
59
 
60
- describe 'test attribute "content_guard"' do
60
+ describe 'test attribute "repository_version"' do
61
61
  it 'should work' do
62
62
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
63
  end
64
64
  end
65
65
 
66
- describe 'test attribute "content_guard_prn"' do
66
+ describe 'test attribute "pulp_labels"' do
67
67
  it 'should work' do
68
68
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
69
  end
70
70
  end
71
71
 
72
- describe 'test attribute "base_url"' do
72
+ describe 'test attribute "prn"' do
73
73
  it 'should work' do
74
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
75
  end
76
76
  end
77
77
 
78
- describe 'test attribute "hidden"' do
78
+ describe 'test attribute "name"' do
79
79
  it 'should work' do
80
80
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
81
  end
82
82
  end
83
83
 
84
- describe 'test attribute "pulp_labels"' do
84
+ describe 'test attribute "base_url"' do
85
85
  it 'should work' do
86
86
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
87
  end
88
88
  end
89
89
 
90
- describe 'test attribute "no_content_change_since"' do
90
+ describe 'test attribute "content_guard_prn"' do
91
91
  it 'should work' do
92
92
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
93
93
  end
94
94
  end
95
95
 
96
- describe 'test attribute "repository_version"' do
96
+ describe 'test attribute "content_guard"' do
97
97
  it 'should work' do
98
98
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
99
99
  end
100
100
  end
101
101
 
102
- describe 'test attribute "base_path"' do
102
+ describe 'test attribute "no_content_change_since"' do
103
103
  it 'should work' do
104
104
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
105
105
  end
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpcoreClient::UpstreamPulpReplicate
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PulpcoreClient::UpstreamPulpReplicate do
21
+ let(:instance) { PulpcoreClient::UpstreamPulpReplicate.new }
22
+
23
+ describe 'test an instance of UpstreamPulpReplicate' do
24
+ it 'should create an instance of UpstreamPulpReplicate' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PulpcoreClient::UpstreamPulpReplicate)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "q_select"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulpcore_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.112.1
4
+ version: 3.114.0
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-06-03 00:00:00.000000000 Z
11
+ date: 2026-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -304,6 +304,7 @@ files:
304
304
  - docs/UploadResponse.md
305
305
  - docs/UploadsApi.md
306
306
  - docs/UpstreamPulp.md
307
+ - docs/UpstreamPulpReplicate.md
307
308
  - docs/UpstreamPulpResponse.md
308
309
  - docs/UpstreamPulpsApi.md
309
310
  - docs/User.md
@@ -544,6 +545,7 @@ files:
544
545
  - lib/pulpcore_client/models/upload_detail_response.rb
545
546
  - lib/pulpcore_client/models/upload_response.rb
546
547
  - lib/pulpcore_client/models/upstream_pulp.rb
548
+ - lib/pulpcore_client/models/upstream_pulp_replicate.rb
547
549
  - lib/pulpcore_client/models/upstream_pulp_response.rb
548
550
  - lib/pulpcore_client/models/user.rb
549
551
  - lib/pulpcore_client/models/user_group.rb
@@ -776,6 +778,7 @@ files:
776
778
  - spec/models/upload_detail_response_spec.rb
777
779
  - spec/models/upload_response_spec.rb
778
780
  - spec/models/upload_spec.rb
781
+ - spec/models/upstream_pulp_replicate_spec.rb
779
782
  - spec/models/upstream_pulp_response_spec.rb
780
783
  - spec/models/upstream_pulp_spec.rb
781
784
  - spec/models/user_group_response_spec.rb
@@ -867,6 +870,7 @@ test_files:
867
870
  - spec/models/progress_report_response_spec.rb
868
871
  - spec/models/open_pgp_distribution_spec.rb
869
872
  - spec/models/paginated_generic_remote_response_list_spec.rb
873
+ - spec/models/upstream_pulp_replicate_spec.rb
870
874
  - spec/models/nested_open_pgp_signature_response_spec.rb
871
875
  - spec/models/unset_label_response_spec.rb
872
876
  - spec/models/set_label_spec.rb