pulp_maven_client 0.13.0 → 0.14.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: 2ecd9a2111555c17113eb52b2ec15537b3caf4aa0f7a149ed79ea3eb35d72197
4
- data.tar.gz: fd7d31bb34c3bea433e909da9b0a5d1cf764729f6bd45bbc93e8b6cb03263b4d
3
+ metadata.gz: 84d624390d9a4297abcdb9d2eef0c3ae5dc7fec3dce7793bb18c88a22b054c63
4
+ data.tar.gz: 4a628a86ef1198a2882aff33a62a7a0ea9f464679739700caf03c1582a08b9c2
5
5
  SHA512:
6
- metadata.gz: a689166e8420e0d18b71d7bcfd9869152455d3411d63d1bc1148d9ca7aced866aa9f2443cf2000f37bba90523ee97038f4135d0b55fc140320b271890b1e4656
7
- data.tar.gz: e96f7eb72e0c19900107c5276f9cbd2cfb50ac67e3c570b2671bdad61d20b4a4c7a2255cfc08373e20acc79d41aab0e521e48c9a2c4f7f62d3ddda8eef08a584
6
+ metadata.gz: 23c7d20bb9ec2871aeec78e34d65a67a001ae3d3dcb9f4f1d2149d7d1368dccc151b17be35c530eefaf64acd5d79997bbcfb32467850d3439ce929c7a6bd5cd2
7
+ data.tar.gz: d573031e6986f8b1448ab41328e4f2e8701159651e6cd77398c7c026a095fe4500a67b0a9dd3da1d4282f07261025e28819b6c40a20d412470deee1cc46280bd
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: 0.13.0
10
+ - Package version: 0.14.0
11
11
  - Generator version: 7.10.0
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
@@ -25,16 +25,16 @@ gem build pulp_maven_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulp_maven_client-0.13.0.gem
28
+ gem install ./pulp_maven_client-0.14.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_maven_client-0.13.0.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_maven_client-0.14.0.gem` to install the development dependencies)
32
32
 
33
33
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
34
34
 
35
35
  Finally add this to the Gemfile:
36
36
 
37
- gem 'pulp_maven_client', '~> 0.13.0'
37
+ gem 'pulp_maven_client', '~> 0.14.0'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -116,6 +116,7 @@ Class | Method | HTTP request | Description
116
116
  *PulpMavenClient::RepositoriesMavenApi* | [**create**](docs/RepositoriesMavenApi.md#create) | **POST** /pulp/api/v3/repositories/maven/maven/ | Create a maven repository
117
117
  *PulpMavenClient::RepositoriesMavenApi* | [**delete**](docs/RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository
118
118
  *PulpMavenClient::RepositoriesMavenApi* | [**list**](docs/RepositoriesMavenApi.md#list) | **GET** /pulp/api/v3/repositories/maven/maven/ | List maven repositorys
119
+ *PulpMavenClient::RepositoriesMavenApi* | [**modify**](docs/RepositoriesMavenApi.md#modify) | **POST** {maven_maven_repository_href}modify/ | Modify Repository Content
119
120
  *PulpMavenClient::RepositoriesMavenApi* | [**partial_update**](docs/RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository
120
121
  *PulpMavenClient::RepositoriesMavenApi* | [**read**](docs/RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository
121
122
  *PulpMavenClient::RepositoriesMavenApi* | [**set_label**](docs/RepositoriesMavenApi.md#set_label) | **POST** {maven_maven_repository_href}set_label/ | Set a label
@@ -151,6 +152,7 @@ Class | Method | HTTP request | Description
151
152
  - [PulpMavenClient::PolicyEnum](docs/PolicyEnum.md)
152
153
  - [PulpMavenClient::Repair](docs/Repair.md)
153
154
  - [PulpMavenClient::RepositoryAddCachedContent](docs/RepositoryAddCachedContent.md)
155
+ - [PulpMavenClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
154
156
  - [PulpMavenClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
155
157
  - [PulpMavenClient::SetLabel](docs/SetLabel.md)
156
158
  - [PulpMavenClient::SetLabelResponse](docs/SetLabelResponse.md)
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost:24817*
8
8
  | [**create**](RepositoriesMavenApi.md#create) | **POST** /pulp/api/v3/repositories/maven/maven/ | Create a maven repository |
9
9
  | [**delete**](RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository |
10
10
  | [**list**](RepositoriesMavenApi.md#list) | **GET** /pulp/api/v3/repositories/maven/maven/ | List maven repositorys |
11
+ | [**modify**](RepositoriesMavenApi.md#modify) | **POST** {maven_maven_repository_href}modify/ | Modify Repository Content |
11
12
  | [**partial_update**](RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository |
12
13
  | [**read**](RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository |
13
14
  | [**set_label**](RepositoriesMavenApi.md#set_label) | **POST** {maven_maven_repository_href}set_label/ | Set a label |
@@ -387,6 +388,82 @@ end
387
388
  - **Accept**: application/json
388
389
 
389
390
 
391
+ ## modify
392
+
393
+ > <AsyncOperationResponse> modify(maven_maven_repository_href, repository_add_remove_content, opts)
394
+
395
+ Modify Repository Content
396
+
397
+ Trigger an asynchronous task to create a new repository version.
398
+
399
+ ### Examples
400
+
401
+ ```ruby
402
+ require 'time'
403
+ require 'pulp_maven_client'
404
+ # setup authorization
405
+ PulpMavenClient.configure do |config|
406
+ # Configure HTTP basic authorization: basicAuth
407
+ config.username = 'YOUR USERNAME'
408
+ config.password = 'YOUR PASSWORD'
409
+ end
410
+
411
+ api_instance = PulpMavenClient::RepositoriesMavenApi.new
412
+ maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
413
+ repository_add_remove_content = PulpMavenClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
414
+ opts = {
415
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
416
+ }
417
+
418
+ begin
419
+ # Modify Repository Content
420
+ result = api_instance.modify(maven_maven_repository_href, repository_add_remove_content, opts)
421
+ p result
422
+ rescue PulpMavenClient::ApiError => e
423
+ puts "Error when calling RepositoriesMavenApi->modify: #{e}"
424
+ end
425
+ ```
426
+
427
+ #### Using the modify_with_http_info variant
428
+
429
+ This returns an Array which contains the response data, status code and headers.
430
+
431
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> modify_with_http_info(maven_maven_repository_href, repository_add_remove_content, opts)
432
+
433
+ ```ruby
434
+ begin
435
+ # Modify Repository Content
436
+ data, status_code, headers = api_instance.modify_with_http_info(maven_maven_repository_href, repository_add_remove_content, opts)
437
+ p status_code # => 2xx
438
+ p headers # => { ... }
439
+ p data # => <AsyncOperationResponse>
440
+ rescue PulpMavenClient::ApiError => e
441
+ puts "Error when calling RepositoriesMavenApi->modify_with_http_info: #{e}"
442
+ end
443
+ ```
444
+
445
+ ### Parameters
446
+
447
+ | Name | Type | Description | Notes |
448
+ | ---- | ---- | ----------- | ----- |
449
+ | **maven_maven_repository_href** | **String** | | |
450
+ | **repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md) | | |
451
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
452
+
453
+ ### Return type
454
+
455
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
456
+
457
+ ### Authorization
458
+
459
+ [basicAuth](../README.md#basicAuth)
460
+
461
+ ### HTTP request headers
462
+
463
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
464
+ - **Accept**: application/json
465
+
466
+
390
467
  ## partial_update
391
468
 
392
469
  > <MavenMavenRepositoryResponse> partial_update(maven_maven_repository_href, patchedmaven_maven_repository, opts)
@@ -0,0 +1,24 @@
1
+ # PulpMavenClient::RepositoryAddRemoveContent
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
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
+ | **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
+ | **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] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'pulp_maven_client'
16
+
17
+ instance = PulpMavenClient::RepositoryAddRemoveContent.new(
18
+ add_content_units: null,
19
+ remove_content_units: null,
20
+ base_version: null,
21
+ overwrite: null
22
+ )
23
+ ```
24
+
@@ -411,6 +411,83 @@ module PulpMavenClient
411
411
  return data, status_code, headers
412
412
  end
413
413
 
414
+ # Modify Repository Content
415
+ # Trigger an asynchronous task to create a new repository version.
416
+ # @param maven_maven_repository_href [String]
417
+ # @param repository_add_remove_content [RepositoryAddRemoveContent]
418
+ # @param [Hash] opts the optional parameters
419
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
420
+ # @return [AsyncOperationResponse]
421
+ def modify(maven_maven_repository_href, repository_add_remove_content, opts = {})
422
+ data, _status_code, _headers = modify_with_http_info(maven_maven_repository_href, repository_add_remove_content, opts)
423
+ data
424
+ end
425
+
426
+ # Modify Repository Content
427
+ # Trigger an asynchronous task to create a new repository version.
428
+ # @param maven_maven_repository_href [String]
429
+ # @param repository_add_remove_content [RepositoryAddRemoveContent]
430
+ # @param [Hash] opts the optional parameters
431
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
432
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
433
+ def modify_with_http_info(maven_maven_repository_href, repository_add_remove_content, opts = {})
434
+ if @api_client.config.debugging
435
+ @api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.modify ...'
436
+ end
437
+ # verify the required parameter 'maven_maven_repository_href' is set
438
+ if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
439
+ fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.modify"
440
+ end
441
+ # verify the required parameter 'repository_add_remove_content' is set
442
+ if @api_client.config.client_side_validation && repository_add_remove_content.nil?
443
+ fail ArgumentError, "Missing the required parameter 'repository_add_remove_content' when calling RepositoriesMavenApi.modify"
444
+ end
445
+ # resource path
446
+ local_var_path = '{maven_maven_repository_href}modify/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
447
+
448
+ # query parameters
449
+ query_params = opts[:query_params] || {}
450
+
451
+ # header parameters
452
+ header_params = opts[:header_params] || {}
453
+ # HTTP header 'Accept' (if needed)
454
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
455
+ # HTTP header 'Content-Type'
456
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
457
+ if !content_type.nil?
458
+ header_params['Content-Type'] = content_type
459
+ end
460
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
461
+
462
+ # form parameters
463
+ form_params = opts[:form_params] || {}
464
+
465
+ # http body (model)
466
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(repository_add_remove_content)
467
+
468
+ # return_type
469
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
470
+
471
+ # auth_names
472
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
473
+
474
+ new_options = opts.merge(
475
+ :operation => :"RepositoriesMavenApi.modify",
476
+ :header_params => header_params,
477
+ :query_params => query_params,
478
+ :form_params => form_params,
479
+ :body => post_body,
480
+ :auth_names => auth_names,
481
+ :return_type => return_type
482
+ )
483
+
484
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
485
+ if @api_client.config.debugging
486
+ @api_client.config.logger.debug "API called: RepositoriesMavenApi#modify\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
487
+ end
488
+ return data, status_code, headers
489
+ end
490
+
414
491
  # Update a maven repository
415
492
  # Update the entity partially and trigger an asynchronous task if necessary
416
493
  # @param maven_maven_repository_href [String]
@@ -0,0 +1,252 @@
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 PulpMavenClient
17
+ # Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
18
+ class RepositoryAddRemoveContent
19
+ # A list of content units to add to a new repository version. This content is added after remove_content_units are removed.
20
+ attr_accessor :add_content_units
21
+
22
+ # 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.
23
+ attr_accessor :remove_content_units
24
+
25
+ # A repository version whose content will be used as the initial set of content for the new repository version
26
+ attr_accessor :base_version
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
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'add_content_units' => :'add_content_units',
35
+ :'remove_content_units' => :'remove_content_units',
36
+ :'base_version' => :'base_version',
37
+ :'overwrite' => :'overwrite'
38
+ }
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'add_content_units' => :'Array<String>',
50
+ :'remove_content_units' => :'Array<String>',
51
+ :'base_version' => :'String',
52
+ :'overwrite' => :'Boolean'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::RepositoryAddRemoveContent` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!self.class.attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::RepositoryAddRemoveContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'add_content_units')
78
+ if (value = attributes[:'add_content_units']).is_a?(Array)
79
+ self.add_content_units = value
80
+ end
81
+ end
82
+
83
+ if attributes.key?(:'remove_content_units')
84
+ if (value = attributes[:'remove_content_units']).is_a?(Array)
85
+ self.remove_content_units = value
86
+ end
87
+ end
88
+
89
+ if attributes.key?(:'base_version')
90
+ self.base_version = attributes[:'base_version']
91
+ end
92
+
93
+ if attributes.key?(:'overwrite')
94
+ self.overwrite = attributes[:'overwrite']
95
+ else
96
+ self.overwrite = true
97
+ end
98
+ end
99
+
100
+ # Show invalid properties with the reasons. Usually used together with valid?
101
+ # @return Array for valid properties with the reasons
102
+ def list_invalid_properties
103
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
104
+ invalid_properties = Array.new
105
+ invalid_properties
106
+ end
107
+
108
+ # Check to see if the all the properties in the model are valid
109
+ # @return true if the model is valid
110
+ def valid?
111
+ warn '[DEPRECATED] the `valid?` method is obsolete'
112
+ true
113
+ end
114
+
115
+ # Checks equality by comparing each attribute.
116
+ # @param [Object] Object to be compared
117
+ def ==(o)
118
+ return true if self.equal?(o)
119
+ self.class == o.class &&
120
+ add_content_units == o.add_content_units &&
121
+ remove_content_units == o.remove_content_units &&
122
+ base_version == o.base_version &&
123
+ overwrite == o.overwrite
124
+ end
125
+
126
+ # @see the `==` method
127
+ # @param [Object] Object to be compared
128
+ def eql?(o)
129
+ self == o
130
+ end
131
+
132
+ # Calculates hash code according to all attributes.
133
+ # @return [Integer] Hash code
134
+ def hash
135
+ [add_content_units, remove_content_units, base_version, overwrite].hash
136
+ end
137
+
138
+ # Builds the object from hash
139
+ # @param [Hash] attributes Model attributes in the form of hash
140
+ # @return [Object] Returns the model itself
141
+ def self.build_from_hash(attributes)
142
+ return nil unless attributes.is_a?(Hash)
143
+ attributes = attributes.transform_keys(&:to_sym)
144
+ transformed_hash = {}
145
+ openapi_types.each_pair do |key, type|
146
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
147
+ transformed_hash["#{key}"] = nil
148
+ elsif type =~ /\AArray<(.*)>/i
149
+ # check to ensure the input is an array given that the attribute
150
+ # is documented as an array but the input is not
151
+ if attributes[attribute_map[key]].is_a?(Array)
152
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
153
+ end
154
+ elsif !attributes[attribute_map[key]].nil?
155
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
156
+ end
157
+ end
158
+ new(transformed_hash)
159
+ end
160
+
161
+ # Deserializes the data based on type
162
+ # @param string type Data type
163
+ # @param string value Value to be deserialized
164
+ # @return [Object] Deserialized data
165
+ def self._deserialize(type, value)
166
+ case type.to_sym
167
+ when :Time
168
+ Time.parse(value)
169
+ when :Date
170
+ Date.parse(value)
171
+ when :String
172
+ value.to_s
173
+ when :Integer
174
+ value.to_i
175
+ when :Float
176
+ value.to_f
177
+ when :Boolean
178
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
179
+ true
180
+ else
181
+ false
182
+ end
183
+ when :Object
184
+ # generic object (usually a Hash), return directly
185
+ value
186
+ when /\AArray<(?<inner_type>.+)>\z/
187
+ inner_type = Regexp.last_match[:inner_type]
188
+ value.map { |v| _deserialize(inner_type, v) }
189
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
190
+ k_type = Regexp.last_match[:k_type]
191
+ v_type = Regexp.last_match[:v_type]
192
+ {}.tap do |hash|
193
+ value.each do |k, v|
194
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
195
+ end
196
+ end
197
+ else # model
198
+ # models (e.g. Pet) or oneOf
199
+ klass = PulpMavenClient.const_get(type)
200
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
201
+ end
202
+ end
203
+
204
+ # Returns the string representation of the object
205
+ # @return [String] String presentation of the object
206
+ def to_s
207
+ to_hash.to_s
208
+ end
209
+
210
+ # to_body is an alias to to_hash (backward compatibility)
211
+ # @return [Hash] Returns the object in the form of hash
212
+ def to_body
213
+ to_hash
214
+ end
215
+
216
+ # Returns the object in the form of hash
217
+ # @return [Hash] Returns the object in the form of hash
218
+ def to_hash
219
+ hash = {}
220
+ self.class.attribute_map.each_pair do |attr, param|
221
+ value = self.send(attr)
222
+ if value.nil?
223
+ is_nullable = self.class.openapi_nullable.include?(attr)
224
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
225
+ end
226
+
227
+ hash[param] = _to_hash(value)
228
+ end
229
+ hash
230
+ end
231
+
232
+ # Outputs non-array value in the form of hash
233
+ # For object, use to_hash. Otherwise, just return the value
234
+ # @param [Object] value Any valid value
235
+ # @return [Hash] Returns the value in the form of hash
236
+ def _to_hash(value)
237
+ if value.is_a?(Array)
238
+ value.compact.map { |v| _to_hash(v) }
239
+ elsif value.is_a?(Hash)
240
+ {}.tap do |hash|
241
+ value.each { |k, v| hash[k] = _to_hash(v) }
242
+ end
243
+ elsif value.respond_to? :to_hash
244
+ value.to_hash
245
+ else
246
+ value
247
+ end
248
+ end
249
+
250
+ end
251
+
252
+ end
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpMavenClient
14
- VERSION = '0.13.0'
14
+ VERSION = '0.14.0'
15
15
  end
@@ -39,6 +39,7 @@ require 'pulp_maven_client/models/patchedmaven_maven_repository'
39
39
  require 'pulp_maven_client/models/policy_enum'
40
40
  require 'pulp_maven_client/models/repair'
41
41
  require 'pulp_maven_client/models/repository_add_cached_content'
42
+ require 'pulp_maven_client/models/repository_add_remove_content'
42
43
  require 'pulp_maven_client/models/repository_version_response'
43
44
  require 'pulp_maven_client/models/set_label'
44
45
  require 'pulp_maven_client/models/set_label_response'
@@ -122,6 +122,20 @@ describe 'RepositoriesMavenApi' do
122
122
  end
123
123
  end
124
124
 
125
+ # unit tests for modify
126
+ # Modify Repository Content
127
+ # Trigger an asynchronous task to create a new repository version.
128
+ # @param maven_maven_repository_href
129
+ # @param repository_add_remove_content
130
+ # @param [Hash] opts the optional parameters
131
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
132
+ # @return [AsyncOperationResponse]
133
+ describe 'modify test' do
134
+ it 'should work' do
135
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
136
+ end
137
+ end
138
+
125
139
  # unit tests for partial_update
126
140
  # Update a maven repository
127
141
  # Update the entity partially and trigger an asynchronous task if necessary
@@ -0,0 +1,54 @@
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 PulpMavenClient::RepositoryAddRemoveContent
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PulpMavenClient::RepositoryAddRemoveContent do
21
+ let(:instance) { PulpMavenClient::RepositoryAddRemoveContent.new }
22
+
23
+ describe 'test an instance of RepositoryAddRemoveContent' do
24
+ it 'should create an instance of RepositoryAddRemoveContent' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PulpMavenClient::RepositoryAddRemoveContent)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "add_content_units"' 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
+ describe 'test attribute "remove_content_units"' 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
+
42
+ describe 'test attribute "base_version"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
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
+
54
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_maven_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.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-12 00:00:00.000000000 Z
11
+ date: 2026-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -116,6 +116,7 @@ files:
116
116
  - docs/RepositoriesMavenApi.md
117
117
  - docs/RepositoriesMavenVersionsApi.md
118
118
  - docs/RepositoryAddCachedContent.md
119
+ - docs/RepositoryAddRemoveContent.md
119
120
  - docs/RepositoryVersionResponse.md
120
121
  - docs/SetLabel.md
121
122
  - docs/SetLabelResponse.md
@@ -153,6 +154,7 @@ files:
153
154
  - lib/pulp_maven_client/models/policy_enum.rb
154
155
  - lib/pulp_maven_client/models/repair.rb
155
156
  - lib/pulp_maven_client/models/repository_add_cached_content.rb
157
+ - lib/pulp_maven_client/models/repository_add_remove_content.rb
156
158
  - lib/pulp_maven_client/models/repository_version_response.rb
157
159
  - lib/pulp_maven_client/models/set_label.rb
158
160
  - lib/pulp_maven_client/models/set_label_response.rb
@@ -188,6 +190,7 @@ files:
188
190
  - spec/models/policy_enum_spec.rb
189
191
  - spec/models/repair_spec.rb
190
192
  - spec/models/repository_add_cached_content_spec.rb
193
+ - spec/models/repository_add_remove_content_spec.rb
191
194
  - spec/models/repository_version_response_spec.rb
192
195
  - spec/models/set_label_response_spec.rb
193
196
  - spec/models/set_label_spec.rb
@@ -231,6 +234,7 @@ test_files:
231
234
  - spec/models/paginatedmaven_maven_distribution_response_list_spec.rb
232
235
  - spec/models/maven_maven_remote_response_hidden_fields_inner_spec.rb
233
236
  - spec/models/maven_maven_remote_spec.rb
237
+ - spec/models/repository_add_remove_content_spec.rb
234
238
  - spec/models/paginatedmaven_maven_remote_response_list_spec.rb
235
239
  - spec/models/maven_maven_artifact_response_spec.rb
236
240
  - spec/models/set_label_spec.rb