pulpcore_client 3.12.0.dev1616644625 → 3.12.0.dev1617163325

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.

Potentially problematic release.


This version of pulpcore_client might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1007d728b2d755e795167bd9ca9516eb8425ee9db7393cb1e33d5e09a37290a3
4
- data.tar.gz: 81b57aa3fd3dfaeddc1c0d8e258db3e12f4adc6fe6dc03b46a25b2fdaa0c13d1
3
+ metadata.gz: 9f05ce4005a4e2212631beef88140dc7b172f72a9fee31d539db373e847f78b9
4
+ data.tar.gz: ede0310f88d9d0349d0d93a33247b3042451867eb79b915484777d52eb1512d1
5
5
  SHA512:
6
- metadata.gz: 5d164d9bb753011f5fe1e12a92bab8ac0287afd57b4c51ccd7d896b5118022b01ecebc638bbbb4ae7c3ab740dab2c05f7f22493110730037673439fc2868c925
7
- data.tar.gz: bb85db4e202d04055fa69f9be6a77ae36c6d61777061315bbc99d2913febd004078ee4de1b82a0fb2e7e84b673c7c3b47de9599ce9690c8ba28d84b30c6eb5fc
6
+ metadata.gz: 300299db37f4df04de3fce850d1659a78185675f33c0fe72c4205fed074eb8221e7bf0bc405406cb022a33c94b210e6d75c44b5f02286e6d924217daa0bc3873
7
+ data.tar.gz: dfcf0d5db550bb7c3d3153fb8b262a9376d4977b9e36b7de53dbc5c572d1fadde1efed52002e62dde02047d9813600a607fbfaa73cbec16fba87826689bc127f
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.12.0.dev1616644625
10
+ - Package version: 3.12.0.dev1617163325
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulpcore_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulpcore_client-3.12.0.dev1616644625.gem
27
+ gem install ./pulpcore_client-3.12.0.dev1617163325.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulpcore_client-3.12.0.dev1616644625.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulpcore_client-3.12.0.dev1617163325.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulpcore_client', '~> 3.12.0.dev1616644625'
36
+ gem 'pulpcore_client', '~> 3.12.0.dev1617163325'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -68,11 +68,11 @@ Name | Type | Description | Notes
68
68
 
69
69
  ## delete
70
70
 
71
- > delete(pulp_exporter_href)
71
+ > AsyncOperationResponse delete(pulp_exporter_href)
72
72
 
73
73
  Delete a pulp exporter
74
74
 
75
- ViewSet for viewing PulpExporters.
75
+ Trigger an asynchronous delete task
76
76
 
77
77
  ### Example
78
78
 
@@ -91,7 +91,8 @@ pulp_exporter_href = 'pulp_exporter_href_example' # String |
91
91
 
92
92
  begin
93
93
  #Delete a pulp exporter
94
- api_instance.delete(pulp_exporter_href)
94
+ result = api_instance.delete(pulp_exporter_href)
95
+ p result
95
96
  rescue PulpcoreClient::ApiError => e
96
97
  puts "Exception when calling ExportersPulpApi->delete: #{e}"
97
98
  end
@@ -106,7 +107,7 @@ Name | Type | Description | Notes
106
107
 
107
108
  ### Return type
108
109
 
109
- nil (empty response body)
110
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
110
111
 
111
112
  ### Authorization
112
113
 
@@ -115,7 +116,7 @@ nil (empty response body)
115
116
  ### HTTP request headers
116
117
 
117
118
  - **Content-Type**: Not defined
118
- - **Accept**: Not defined
119
+ - **Accept**: application/json
119
120
 
120
121
 
121
122
  ## list
@@ -193,11 +194,11 @@ Name | Type | Description | Notes
193
194
 
194
195
  ## partial_update
195
196
 
196
- > PulpExporterResponse partial_update(pulp_exporter_href, patched_pulp_exporter)
197
+ > AsyncOperationResponse partial_update(pulp_exporter_href, patched_pulp_exporter)
197
198
 
198
199
  Update a pulp exporter
199
200
 
200
- ViewSet for viewing PulpExporters.
201
+ Trigger an asynchronous partial update task
201
202
 
202
203
  ### Example
203
204
 
@@ -234,7 +235,7 @@ Name | Type | Description | Notes
234
235
 
235
236
  ### Return type
236
237
 
237
- [**PulpExporterResponse**](PulpExporterResponse.md)
238
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
238
239
 
239
240
  ### Authorization
240
241
 
@@ -307,11 +308,11 @@ Name | Type | Description | Notes
307
308
 
308
309
  ## update
309
310
 
310
- > PulpExporterResponse update(pulp_exporter_href, pulp_exporter)
311
+ > AsyncOperationResponse update(pulp_exporter_href, pulp_exporter)
311
312
 
312
313
  Update a pulp exporter
313
314
 
314
- ViewSet for viewing PulpExporters.
315
+ Trigger an asynchronous update task
315
316
 
316
317
  ### Example
317
318
 
@@ -348,7 +349,7 @@ Name | Type | Description | Notes
348
349
 
349
350
  ### Return type
350
351
 
351
- [**PulpExporterResponse**](PulpExporterResponse.md)
352
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
352
353
 
353
354
  ### Authorization
354
355
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **pulp_href** | **String** | | [optional] [readonly]
8
7
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
8
+ **pulp_href** | **String** | | [optional] [readonly]
9
9
  **name** | **String** | The name of the worker. | [optional] [readonly]
10
10
  **last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional] [readonly]
11
11
 
@@ -14,8 +14,8 @@ Name | Type | Description | Notes
14
14
  ```ruby
15
15
  require 'PulpcoreClient'
16
16
 
17
- instance = PulpcoreClient::WorkerResponse.new(pulp_href: null,
18
- pulp_created: null,
17
+ instance = PulpcoreClient::WorkerResponse.new(pulp_created: null,
18
+ pulp_href: null,
19
19
  name: null,
20
20
  last_heartbeat: null)
21
21
  ```
@@ -84,20 +84,20 @@ module PulpcoreClient
84
84
  end
85
85
 
86
86
  # Delete a pulp exporter
87
- # ViewSet for viewing PulpExporters.
87
+ # Trigger an asynchronous delete task
88
88
  # @param pulp_exporter_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
- # @return [nil]
90
+ # @return [AsyncOperationResponse]
91
91
  def delete(pulp_exporter_href, opts = {})
92
- delete_with_http_info(pulp_exporter_href, opts)
93
- nil
92
+ data, _status_code, _headers = delete_with_http_info(pulp_exporter_href, opts)
93
+ data
94
94
  end
95
95
 
96
96
  # Delete a pulp exporter
97
- # ViewSet for viewing PulpExporters.
97
+ # Trigger an asynchronous delete task
98
98
  # @param pulp_exporter_href [String]
99
99
  # @param [Hash] opts the optional parameters
100
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
100
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
101
  def delete_with_http_info(pulp_exporter_href, opts = {})
102
102
  if @api_client.config.debugging
103
103
  @api_client.config.logger.debug 'Calling API: ExportersPulpApi.delete ...'
@@ -114,6 +114,8 @@ module PulpcoreClient
114
114
 
115
115
  # header parameters
116
116
  header_params = opts[:header_params] || {}
117
+ # HTTP header 'Accept' (if needed)
118
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
117
119
 
118
120
  # form parameters
119
121
  form_params = opts[:form_params] || {}
@@ -122,7 +124,7 @@ module PulpcoreClient
122
124
  post_body = opts[:body]
123
125
 
124
126
  # return_type
125
- return_type = opts[:return_type]
127
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
126
128
 
127
129
  # auth_names
128
130
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -230,22 +232,22 @@ module PulpcoreClient
230
232
  end
231
233
 
232
234
  # Update a pulp exporter
233
- # ViewSet for viewing PulpExporters.
235
+ # Trigger an asynchronous partial update task
234
236
  # @param pulp_exporter_href [String]
235
237
  # @param patched_pulp_exporter [PatchedPulpExporter]
236
238
  # @param [Hash] opts the optional parameters
237
- # @return [PulpExporterResponse]
239
+ # @return [AsyncOperationResponse]
238
240
  def partial_update(pulp_exporter_href, patched_pulp_exporter, opts = {})
239
241
  data, _status_code, _headers = partial_update_with_http_info(pulp_exporter_href, patched_pulp_exporter, opts)
240
242
  data
241
243
  end
242
244
 
243
245
  # Update a pulp exporter
244
- # ViewSet for viewing PulpExporters.
246
+ # Trigger an asynchronous partial update task
245
247
  # @param pulp_exporter_href [String]
246
248
  # @param patched_pulp_exporter [PatchedPulpExporter]
247
249
  # @param [Hash] opts the optional parameters
248
- # @return [Array<(PulpExporterResponse, Integer, Hash)>] PulpExporterResponse data, response status code and response headers
250
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
249
251
  def partial_update_with_http_info(pulp_exporter_href, patched_pulp_exporter, opts = {})
250
252
  if @api_client.config.debugging
251
253
  @api_client.config.logger.debug 'Calling API: ExportersPulpApi.partial_update ...'
@@ -278,7 +280,7 @@ module PulpcoreClient
278
280
  post_body = opts[:body] || @api_client.object_to_http_body(patched_pulp_exporter)
279
281
 
280
282
  # return_type
281
- return_type = opts[:return_type] || 'PulpExporterResponse'
283
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
282
284
 
283
285
  # auth_names
284
286
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -368,22 +370,22 @@ module PulpcoreClient
368
370
  end
369
371
 
370
372
  # Update a pulp exporter
371
- # ViewSet for viewing PulpExporters.
373
+ # Trigger an asynchronous update task
372
374
  # @param pulp_exporter_href [String]
373
375
  # @param pulp_exporter [PulpExporter]
374
376
  # @param [Hash] opts the optional parameters
375
- # @return [PulpExporterResponse]
377
+ # @return [AsyncOperationResponse]
376
378
  def update(pulp_exporter_href, pulp_exporter, opts = {})
377
379
  data, _status_code, _headers = update_with_http_info(pulp_exporter_href, pulp_exporter, opts)
378
380
  data
379
381
  end
380
382
 
381
383
  # Update a pulp exporter
382
- # ViewSet for viewing PulpExporters.
384
+ # Trigger an asynchronous update task
383
385
  # @param pulp_exporter_href [String]
384
386
  # @param pulp_exporter [PulpExporter]
385
387
  # @param [Hash] opts the optional parameters
386
- # @return [Array<(PulpExporterResponse, Integer, Hash)>] PulpExporterResponse data, response status code and response headers
388
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
387
389
  def update_with_http_info(pulp_exporter_href, pulp_exporter, opts = {})
388
390
  if @api_client.config.debugging
389
391
  @api_client.config.logger.debug 'Calling API: ExportersPulpApi.update ...'
@@ -416,7 +418,7 @@ module PulpcoreClient
416
418
  post_body = opts[:body] || @api_client.object_to_http_body(pulp_exporter)
417
419
 
418
420
  # return_type
419
- return_type = opts[:return_type] || 'PulpExporterResponse'
421
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
420
422
 
421
423
  # auth_names
422
424
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -15,11 +15,11 @@ require 'date'
15
15
  module PulpcoreClient
16
16
  # Base serializer for use with :class:`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.
17
17
  class WorkerResponse
18
- attr_accessor :pulp_href
19
-
20
18
  # Timestamp of creation.
21
19
  attr_accessor :pulp_created
22
20
 
21
+ attr_accessor :pulp_href
22
+
23
23
  # The name of the worker.
24
24
  attr_accessor :name
25
25
 
@@ -29,8 +29,8 @@ module PulpcoreClient
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'pulp_href' => :'pulp_href',
33
32
  :'pulp_created' => :'pulp_created',
33
+ :'pulp_href' => :'pulp_href',
34
34
  :'name' => :'name',
35
35
  :'last_heartbeat' => :'last_heartbeat'
36
36
  }
@@ -39,8 +39,8 @@ module PulpcoreClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'pulp_href' => :'String',
43
42
  :'pulp_created' => :'DateTime',
43
+ :'pulp_href' => :'String',
44
44
  :'name' => :'String',
45
45
  :'last_heartbeat' => :'DateTime'
46
46
  }
@@ -67,14 +67,14 @@ module PulpcoreClient
67
67
  h[k.to_sym] = v
68
68
  }
69
69
 
70
- if attributes.key?(:'pulp_href')
71
- self.pulp_href = attributes[:'pulp_href']
72
- end
73
-
74
70
  if attributes.key?(:'pulp_created')
75
71
  self.pulp_created = attributes[:'pulp_created']
76
72
  end
77
73
 
74
+ if attributes.key?(:'pulp_href')
75
+ self.pulp_href = attributes[:'pulp_href']
76
+ end
77
+
78
78
  if attributes.key?(:'name')
79
79
  self.name = attributes[:'name']
80
80
  end
@@ -102,8 +102,8 @@ module PulpcoreClient
102
102
  def ==(o)
103
103
  return true if self.equal?(o)
104
104
  self.class == o.class &&
105
- pulp_href == o.pulp_href &&
106
105
  pulp_created == o.pulp_created &&
106
+ pulp_href == o.pulp_href &&
107
107
  name == o.name &&
108
108
  last_heartbeat == o.last_heartbeat
109
109
  end
@@ -117,7 +117,7 @@ module PulpcoreClient
117
117
  # Calculates hash code according to all attributes.
118
118
  # @return [Integer] Hash code
119
119
  def hash
120
- [pulp_href, pulp_created, name, last_heartbeat].hash
120
+ [pulp_created, pulp_href, name, last_heartbeat].hash
121
121
  end
122
122
 
123
123
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.12.0.dev1616644625'
14
+ VERSION = '3.12.0.dev1617163325'
15
15
  end
@@ -46,10 +46,10 @@ describe 'ExportersPulpApi' do
46
46
 
47
47
  # unit tests for delete
48
48
  # Delete a pulp exporter
49
- # ViewSet for viewing PulpExporters.
49
+ # Trigger an asynchronous delete task
50
50
  # @param pulp_exporter_href
51
51
  # @param [Hash] opts the optional parameters
52
- # @return [nil]
52
+ # @return [AsyncOperationResponse]
53
53
  describe 'delete test' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -79,11 +79,11 @@ describe 'ExportersPulpApi' do
79
79
 
80
80
  # unit tests for partial_update
81
81
  # Update a pulp exporter
82
- # ViewSet for viewing PulpExporters.
82
+ # Trigger an asynchronous partial update task
83
83
  # @param pulp_exporter_href
84
84
  # @param patched_pulp_exporter
85
85
  # @param [Hash] opts the optional parameters
86
- # @return [PulpExporterResponse]
86
+ # @return [AsyncOperationResponse]
87
87
  describe 'partial_update test' do
88
88
  it 'should work' do
89
89
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -106,11 +106,11 @@ describe 'ExportersPulpApi' do
106
106
 
107
107
  # unit tests for update
108
108
  # Update a pulp exporter
109
- # ViewSet for viewing PulpExporters.
109
+ # Trigger an asynchronous update task
110
110
  # @param pulp_exporter_href
111
111
  # @param pulp_exporter
112
112
  # @param [Hash] opts the optional parameters
113
- # @return [PulpExporterResponse]
113
+ # @return [AsyncOperationResponse]
114
114
  describe 'update test' do
115
115
  it 'should work' do
116
116
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,13 +32,13 @@ describe 'WorkerResponse' do
32
32
  expect(@instance).to be_instance_of(PulpcoreClient::WorkerResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_href"' do
35
+ describe 'test attribute "pulp_created"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "pulp_created"' do
41
+ describe 'test attribute "pulp_href"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  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.12.0.dev1616644625
4
+ version: 3.12.0.dev1617163325
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-25 00:00:00.000000000 Z
11
+ date: 2021-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday