pulp_file_client 1.7.0.dev1615693136 → 1.7.0.dev1617508282

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 pulp_file_client might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bca1da43fef04160aaf2ac9cf6f258244c24b260c3b95eb81dd35cfff50d9bf
4
- data.tar.gz: 12c2a631e3838a0c202df940ce12852e90e123ac68b7bb92815daab38a8750b7
3
+ metadata.gz: d6aba4a1f378943ca22a9912fd5f3b9875ebc78b9e703ceb61f1d11e912a3cd5
4
+ data.tar.gz: 329f3e12ff816b6b3f5e1ddf455a86c40df54aaa4d82f1878e02e274ee9e88d0
5
5
  SHA512:
6
- metadata.gz: abf67d46fb6cc7d2944d61859ad960eff55042909c8b43a92d95bbf17e214344311dccce0e5fe6e6668d42b25bd693ce2a14f57c8819f3f628e007f4df2dcf87
7
- data.tar.gz: d190a2be3aeb65bb82278b6d67bff2cc2b291fb7c721eb08c78e137597baf9a22ec33e3e8dff457b2e4833653c280b7cce176202ea31c7495360ce7edd426e86
6
+ metadata.gz: 390586c82e2e7cb913078d07404aef646f6d6f8d2db6e923a1cc8322154d22af26632682473d3c8eb85f94fee6dd74cbced8fe541d8042944c8b2255f6387726
7
+ data.tar.gz: 4d5fab93af7398f2e17595f6d77e92d98cec67a0581874c7d731e05d4e47e85655dda341e04be235f4d9432be7772ea325d824146fe18426664697299d2deeda
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: 1.7.0.dev1615693136
10
+ - Package version: 1.7.0.dev1617508282
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 pulp_file_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_file_client-1.7.0.dev1615693136.gem
27
+ gem install ./pulp_file_client-1.7.0.dev1617508282.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_file_client-1.7.0.dev1615693136.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_file_client-1.7.0.dev1617508282.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 'pulp_file_client', '~> 1.7.0.dev1615693136'
36
+ gem 'pulp_file_client', '~> 1.7.0.dev1617508282'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **added** | [**Object**](.md) | |
8
- **removed** | [**Object**](.md) | |
9
- **present** | [**Object**](.md) | |
7
+ **added** | **Hash<String, Object>** | |
8
+ **removed** | **Hash<String, Object>** | |
9
+ **present** | **Hash<String, Object>** | |
10
10
 
11
11
  ## Code Sample
12
12
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **added** | [**Object**](.md) | |
8
- **removed** | [**Object**](.md) | |
9
- **present** | [**Object**](.md) | |
7
+ **added** | **Hash<String, Object>** | |
8
+ **removed** | **Hash<String, Object>** | |
9
+ **present** | **Hash<String, Object>** | |
10
10
 
11
11
  ## Code Sample
12
12
 
@@ -68,11 +68,11 @@ Name | Type | Description | Notes
68
68
 
69
69
  ## delete
70
70
 
71
- > delete(file_file_filesystem_exporter_href)
71
+ > AsyncOperationResponse delete(file_file_filesystem_exporter_href)
72
72
 
73
73
  Delete a file filesystem exporter
74
74
 
75
- FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
75
+ Trigger an asynchronous delete task
76
76
 
77
77
  ### Example
78
78
 
@@ -91,7 +91,8 @@ file_file_filesystem_exporter_href = 'file_file_filesystem_exporter_href_example
91
91
 
92
92
  begin
93
93
  #Delete a file filesystem exporter
94
- api_instance.delete(file_file_filesystem_exporter_href)
94
+ result = api_instance.delete(file_file_filesystem_exporter_href)
95
+ p result
95
96
  rescue PulpFileClient::ApiError => e
96
97
  puts "Exception when calling ExportersFilesystemApi->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
- > FileFileFilesystemExporterResponse partial_update(file_file_filesystem_exporter_href, patchedfile_file_filesystem_exporter)
197
+ > AsyncOperationResponse partial_update(file_file_filesystem_exporter_href, patchedfile_file_filesystem_exporter)
197
198
 
198
199
  Update a file filesystem exporter
199
200
 
200
- FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
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
- [**FileFileFilesystemExporterResponse**](FileFileFilesystemExporterResponse.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
- > FileFileFilesystemExporterResponse update(file_file_filesystem_exporter_href, file_file_filesystem_exporter)
311
+ > AsyncOperationResponse update(file_file_filesystem_exporter_href, file_file_filesystem_exporter)
311
312
 
312
313
  Update a file filesystem exporter
313
314
 
314
- FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
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
- [**FileFileFilesystemExporterResponse**](FileFileFilesystemExporterResponse.md)
352
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
352
353
 
353
354
  ### Authorization
354
355
 
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **content_guard** | **String** | An optional content-guard. | [optional]
9
9
  **pulp_labels** | [**Object**](.md) | | [optional]
10
10
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
11
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
12
  **publication** | **String** | Publication to be served | [optional]
12
13
 
13
14
  ## Code Sample
@@ -19,6 +20,7 @@ instance = PulpFileClient::FileFileDistribution.new(base_path: null,
19
20
  content_guard: null,
20
21
  pulp_labels: null,
21
22
  name: null,
23
+ repository: null,
22
24
  publication: null)
23
25
  ```
24
26
 
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **content_guard** | **String** | An optional content-guard. | [optional]
12
12
  **pulp_labels** | [**Object**](.md) | | [optional]
13
13
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
14
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
14
15
  **publication** | **String** | Publication to be served | [optional]
15
16
 
16
17
  ## Code Sample
@@ -25,6 +26,7 @@ instance = PulpFileClient::FileFileDistributionResponse.new(pulp_href: null,
25
26
  content_guard: null,
26
27
  pulp_labels: null,
27
28
  name: null,
29
+ repository: null,
28
30
  publication: null)
29
31
  ```
30
32
 
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **content_guard** | **String** | An optional content-guard. | [optional]
9
9
  **pulp_labels** | [**Object**](.md) | | [optional]
10
10
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
11
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
12
  **publication** | **String** | Publication to be served | [optional]
12
13
 
13
14
  ## Code Sample
@@ -19,6 +20,7 @@ instance = PulpFileClient::PatchedfileFileDistribution.new(base_path: null,
19
20
  content_guard: null,
20
21
  pulp_labels: null,
21
22
  name: null,
23
+ repository: null,
22
24
  publication: null)
23
25
  ```
24
26
 
@@ -84,20 +84,20 @@ module PulpFileClient
84
84
  end
85
85
 
86
86
  # Delete a file filesystem exporter
87
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
87
+ # Trigger an asynchronous delete task
88
88
  # @param file_file_filesystem_exporter_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
- # @return [nil]
90
+ # @return [AsyncOperationResponse]
91
91
  def delete(file_file_filesystem_exporter_href, opts = {})
92
- delete_with_http_info(file_file_filesystem_exporter_href, opts)
93
- nil
92
+ data, _status_code, _headers = delete_with_http_info(file_file_filesystem_exporter_href, opts)
93
+ data
94
94
  end
95
95
 
96
96
  # Delete a file filesystem exporter
97
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
97
+ # Trigger an asynchronous delete task
98
98
  # @param file_file_filesystem_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(file_file_filesystem_exporter_href, opts = {})
102
102
  if @api_client.config.debugging
103
103
  @api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.delete ...'
@@ -114,6 +114,8 @@ module PulpFileClient
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 PulpFileClient
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 PulpFileClient
230
232
  end
231
233
 
232
234
  # Update a file filesystem exporter
233
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
235
+ # Trigger an asynchronous partial update task
234
236
  # @param file_file_filesystem_exporter_href [String]
235
237
  # @param patchedfile_file_filesystem_exporter [PatchedfileFileFilesystemExporter]
236
238
  # @param [Hash] opts the optional parameters
237
- # @return [FileFileFilesystemExporterResponse]
239
+ # @return [AsyncOperationResponse]
238
240
  def partial_update(file_file_filesystem_exporter_href, patchedfile_file_filesystem_exporter, opts = {})
239
241
  data, _status_code, _headers = partial_update_with_http_info(file_file_filesystem_exporter_href, patchedfile_file_filesystem_exporter, opts)
240
242
  data
241
243
  end
242
244
 
243
245
  # Update a file filesystem exporter
244
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
246
+ # Trigger an asynchronous partial update task
245
247
  # @param file_file_filesystem_exporter_href [String]
246
248
  # @param patchedfile_file_filesystem_exporter [PatchedfileFileFilesystemExporter]
247
249
  # @param [Hash] opts the optional parameters
248
- # @return [Array<(FileFileFilesystemExporterResponse, Integer, Hash)>] FileFileFilesystemExporterResponse 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(file_file_filesystem_exporter_href, patchedfile_file_filesystem_exporter, opts = {})
250
252
  if @api_client.config.debugging
251
253
  @api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.partial_update ...'
@@ -278,7 +280,7 @@ module PulpFileClient
278
280
  post_body = opts[:body] || @api_client.object_to_http_body(patchedfile_file_filesystem_exporter)
279
281
 
280
282
  # return_type
281
- return_type = opts[:return_type] || 'FileFileFilesystemExporterResponse'
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 PulpFileClient
368
370
  end
369
371
 
370
372
  # Update a file filesystem exporter
371
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
373
+ # Trigger an asynchronous update task
372
374
  # @param file_file_filesystem_exporter_href [String]
373
375
  # @param file_file_filesystem_exporter [FileFileFilesystemExporter]
374
376
  # @param [Hash] opts the optional parameters
375
- # @return [FileFileFilesystemExporterResponse]
377
+ # @return [AsyncOperationResponse]
376
378
  def update(file_file_filesystem_exporter_href, file_file_filesystem_exporter, opts = {})
377
379
  data, _status_code, _headers = update_with_http_info(file_file_filesystem_exporter_href, file_file_filesystem_exporter, opts)
378
380
  data
379
381
  end
380
382
 
381
383
  # Update a file filesystem exporter
382
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
384
+ # Trigger an asynchronous update task
383
385
  # @param file_file_filesystem_exporter_href [String]
384
386
  # @param file_file_filesystem_exporter [FileFileFilesystemExporter]
385
387
  # @param [Hash] opts the optional parameters
386
- # @return [Array<(FileFileFilesystemExporterResponse, Integer, Hash)>] FileFileFilesystemExporterResponse 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(file_file_filesystem_exporter_href, file_file_filesystem_exporter, opts = {})
388
390
  if @api_client.config.debugging
389
391
  @api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.update ...'
@@ -416,7 +418,7 @@ module PulpFileClient
416
418
  post_body = opts[:body] || @api_client.object_to_http_body(file_file_filesystem_exporter)
417
419
 
418
420
  # return_type
419
- return_type = opts[:return_type] || 'FileFileFilesystemExporterResponse'
421
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
420
422
 
421
423
  # auth_names
422
424
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -142,26 +142,6 @@ module PulpFileClient
142
142
  if @api_client.config.client_side_validation && file_file_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'file_file_repository_href' when calling RepositoriesFileVersionsApi.list"
144
144
  end
145
- if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
146
- fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesFileVersionsApi.list, must be smaller than or equal to 2147483647.'
147
- end
148
-
149
- if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
150
- fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesFileVersionsApi.list, must be smaller than or equal to 2147483647.'
151
- end
152
-
153
- if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
154
- fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesFileVersionsApi.list, must be smaller than or equal to 2147483647.'
155
- end
156
-
157
- if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
158
- fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesFileVersionsApi.list, must be smaller than or equal to 2147483647.'
159
- end
160
-
161
- if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
162
- fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesFileVersionsApi.list, must be smaller than or equal to 2147483647.'
163
- end
164
-
165
145
  # resource path
166
146
  local_var_path = '{file_file_repository_href}versions/'.sub('{' + 'file_file_repository_href' + '}', CGI.escape(file_file_repository_href.to_s).gsub('%2F', '/'))
167
147
 
@@ -33,9 +33,9 @@ module PulpFileClient
33
33
  # Attribute type mapping.
34
34
  def self.openapi_types
35
35
  {
36
- :'added' => :'Object',
37
- :'removed' => :'Object',
38
- :'present' => :'Object'
36
+ :'added' => :'Hash<String, Object>',
37
+ :'removed' => :'Hash<String, Object>',
38
+ :'present' => :'Hash<String, Object>'
39
39
  }
40
40
  end
41
41
 
@@ -61,15 +61,21 @@ module PulpFileClient
61
61
  }
62
62
 
63
63
  if attributes.key?(:'added')
64
- self.added = attributes[:'added']
64
+ if (value = attributes[:'added']).is_a?(Hash)
65
+ self.added = value
66
+ end
65
67
  end
66
68
 
67
69
  if attributes.key?(:'removed')
68
- self.removed = attributes[:'removed']
70
+ if (value = attributes[:'removed']).is_a?(Hash)
71
+ self.removed = value
72
+ end
69
73
  end
70
74
 
71
75
  if attributes.key?(:'present')
72
- self.present = attributes[:'present']
76
+ if (value = attributes[:'present']).is_a?(Hash)
77
+ self.present = value
78
+ end
73
79
  end
74
80
  end
75
81
 
@@ -33,9 +33,9 @@ module PulpFileClient
33
33
  # Attribute type mapping.
34
34
  def self.openapi_types
35
35
  {
36
- :'added' => :'Object',
37
- :'removed' => :'Object',
38
- :'present' => :'Object'
36
+ :'added' => :'Hash<String, Object>',
37
+ :'removed' => :'Hash<String, Object>',
38
+ :'present' => :'Hash<String, Object>'
39
39
  }
40
40
  end
41
41
 
@@ -61,15 +61,21 @@ module PulpFileClient
61
61
  }
62
62
 
63
63
  if attributes.key?(:'added')
64
- self.added = attributes[:'added']
64
+ if (value = attributes[:'added']).is_a?(Hash)
65
+ self.added = value
66
+ end
65
67
  end
66
68
 
67
69
  if attributes.key?(:'removed')
68
- self.removed = attributes[:'removed']
70
+ if (value = attributes[:'removed']).is_a?(Hash)
71
+ self.removed = value
72
+ end
69
73
  end
70
74
 
71
75
  if attributes.key?(:'present')
72
- self.present = attributes[:'present']
76
+ if (value = attributes[:'present']).is_a?(Hash)
77
+ self.present = value
78
+ end
73
79
  end
74
80
  end
75
81
 
@@ -26,6 +26,9 @@ module PulpFileClient
26
26
  # A unique name. Ex, `rawhide` and `stable`.
27
27
  attr_accessor :name
28
28
 
29
+ # The latest RepositoryVersion for this Repository will be served.
30
+ attr_accessor :repository
31
+
29
32
  # Publication to be served
30
33
  attr_accessor :publication
31
34
 
@@ -36,6 +39,7 @@ module PulpFileClient
36
39
  :'content_guard' => :'content_guard',
37
40
  :'pulp_labels' => :'pulp_labels',
38
41
  :'name' => :'name',
42
+ :'repository' => :'repository',
39
43
  :'publication' => :'publication'
40
44
  }
41
45
  end
@@ -47,6 +51,7 @@ module PulpFileClient
47
51
  :'content_guard' => :'String',
48
52
  :'pulp_labels' => :'Object',
49
53
  :'name' => :'String',
54
+ :'repository' => :'String',
50
55
  :'publication' => :'String'
51
56
  }
52
57
  end
@@ -55,6 +60,7 @@ module PulpFileClient
55
60
  def self.openapi_nullable
56
61
  Set.new([
57
62
  :'content_guard',
63
+ :'repository',
58
64
  :'publication'
59
65
  ])
60
66
  end
@@ -90,6 +96,10 @@ module PulpFileClient
90
96
  self.name = attributes[:'name']
91
97
  end
92
98
 
99
+ if attributes.key?(:'repository')
100
+ self.repository = attributes[:'repository']
101
+ end
102
+
93
103
  if attributes.key?(:'publication')
94
104
  self.publication = attributes[:'publication']
95
105
  end
@@ -127,6 +137,7 @@ module PulpFileClient
127
137
  content_guard == o.content_guard &&
128
138
  pulp_labels == o.pulp_labels &&
129
139
  name == o.name &&
140
+ repository == o.repository &&
130
141
  publication == o.publication
131
142
  end
132
143
 
@@ -139,7 +150,7 @@ module PulpFileClient
139
150
  # Calculates hash code according to all attributes.
140
151
  # @return [Integer] Hash code
141
152
  def hash
142
- [base_path, content_guard, pulp_labels, name, publication].hash
153
+ [base_path, content_guard, pulp_labels, name, repository, publication].hash
143
154
  end
144
155
 
145
156
  # Builds the object from hash
@@ -34,6 +34,9 @@ module PulpFileClient
34
34
  # A unique name. Ex, `rawhide` and `stable`.
35
35
  attr_accessor :name
36
36
 
37
+ # The latest RepositoryVersion for this Repository will be served.
38
+ attr_accessor :repository
39
+
37
40
  # Publication to be served
38
41
  attr_accessor :publication
39
42
 
@@ -47,6 +50,7 @@ module PulpFileClient
47
50
  :'content_guard' => :'content_guard',
48
51
  :'pulp_labels' => :'pulp_labels',
49
52
  :'name' => :'name',
53
+ :'repository' => :'repository',
50
54
  :'publication' => :'publication'
51
55
  }
52
56
  end
@@ -61,6 +65,7 @@ module PulpFileClient
61
65
  :'content_guard' => :'String',
62
66
  :'pulp_labels' => :'Object',
63
67
  :'name' => :'String',
68
+ :'repository' => :'String',
64
69
  :'publication' => :'String'
65
70
  }
66
71
  end
@@ -69,6 +74,7 @@ module PulpFileClient
69
74
  def self.openapi_nullable
70
75
  Set.new([
71
76
  :'content_guard',
77
+ :'repository',
72
78
  :'publication'
73
79
  ])
74
80
  end
@@ -116,6 +122,10 @@ module PulpFileClient
116
122
  self.name = attributes[:'name']
117
123
  end
118
124
 
125
+ if attributes.key?(:'repository')
126
+ self.repository = attributes[:'repository']
127
+ end
128
+
119
129
  if attributes.key?(:'publication')
120
130
  self.publication = attributes[:'publication']
121
131
  end
@@ -156,6 +166,7 @@ module PulpFileClient
156
166
  content_guard == o.content_guard &&
157
167
  pulp_labels == o.pulp_labels &&
158
168
  name == o.name &&
169
+ repository == o.repository &&
159
170
  publication == o.publication
160
171
  end
161
172
 
@@ -168,7 +179,7 @@ module PulpFileClient
168
179
  # Calculates hash code according to all attributes.
169
180
  # @return [Integer] Hash code
170
181
  def hash
171
- [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, publication].hash
182
+ [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication].hash
172
183
  end
173
184
 
174
185
  # Builds the object from hash
@@ -26,6 +26,9 @@ module PulpFileClient
26
26
  # A unique name. Ex, `rawhide` and `stable`.
27
27
  attr_accessor :name
28
28
 
29
+ # The latest RepositoryVersion for this Repository will be served.
30
+ attr_accessor :repository
31
+
29
32
  # Publication to be served
30
33
  attr_accessor :publication
31
34
 
@@ -36,6 +39,7 @@ module PulpFileClient
36
39
  :'content_guard' => :'content_guard',
37
40
  :'pulp_labels' => :'pulp_labels',
38
41
  :'name' => :'name',
42
+ :'repository' => :'repository',
39
43
  :'publication' => :'publication'
40
44
  }
41
45
  end
@@ -47,6 +51,7 @@ module PulpFileClient
47
51
  :'content_guard' => :'String',
48
52
  :'pulp_labels' => :'Object',
49
53
  :'name' => :'String',
54
+ :'repository' => :'String',
50
55
  :'publication' => :'String'
51
56
  }
52
57
  end
@@ -55,6 +60,7 @@ module PulpFileClient
55
60
  def self.openapi_nullable
56
61
  Set.new([
57
62
  :'content_guard',
63
+ :'repository',
58
64
  :'publication'
59
65
  ])
60
66
  end
@@ -90,6 +96,10 @@ module PulpFileClient
90
96
  self.name = attributes[:'name']
91
97
  end
92
98
 
99
+ if attributes.key?(:'repository')
100
+ self.repository = attributes[:'repository']
101
+ end
102
+
93
103
  if attributes.key?(:'publication')
94
104
  self.publication = attributes[:'publication']
95
105
  end
@@ -117,6 +127,7 @@ module PulpFileClient
117
127
  content_guard == o.content_guard &&
118
128
  pulp_labels == o.pulp_labels &&
119
129
  name == o.name &&
130
+ repository == o.repository &&
120
131
  publication == o.publication
121
132
  end
122
133
 
@@ -129,7 +140,7 @@ module PulpFileClient
129
140
  # Calculates hash code according to all attributes.
130
141
  # @return [Integer] Hash code
131
142
  def hash
132
- [base_path, content_guard, pulp_labels, name, publication].hash
143
+ [base_path, content_guard, pulp_labels, name, repository, publication].hash
133
144
  end
134
145
 
135
146
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpFileClient
14
- VERSION = '1.7.0.dev1615693136'
14
+ VERSION = '1.7.0.dev1617508282'
15
15
  end
@@ -46,10 +46,10 @@ describe 'ExportersFilesystemApi' do
46
46
 
47
47
  # unit tests for delete
48
48
  # Delete a file filesystem exporter
49
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
49
+ # Trigger an asynchronous delete task
50
50
  # @param file_file_filesystem_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 'ExportersFilesystemApi' do
79
79
 
80
80
  # unit tests for partial_update
81
81
  # Update a file filesystem exporter
82
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
82
+ # Trigger an asynchronous partial update task
83
83
  # @param file_file_filesystem_exporter_href
84
84
  # @param patchedfile_file_filesystem_exporter
85
85
  # @param [Hash] opts the optional parameters
86
- # @return [FileFileFilesystemExporterResponse]
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 'ExportersFilesystemApi' do
106
106
 
107
107
  # unit tests for update
108
108
  # Update a file filesystem exporter
109
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
109
+ # Trigger an asynchronous update task
110
110
  # @param file_file_filesystem_exporter_href
111
111
  # @param file_file_filesystem_exporter
112
112
  # @param [Hash] opts the optional parameters
113
- # @return [FileFileFilesystemExporterResponse]
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
@@ -74,6 +74,12 @@ describe 'FileFileDistributionResponse' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "repository"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
77
83
  describe 'test attribute "publication"' do
78
84
  it 'should work' do
79
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -56,6 +56,12 @@ describe 'FileFileDistribution' do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "repository"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
59
65
  describe 'test attribute "publication"' do
60
66
  it 'should work' do
61
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -56,6 +56,12 @@ describe 'PatchedfileFileDistribution' do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "repository"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
59
65
  describe 'test attribute "publication"' do
60
66
  it 'should work' do
61
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_file_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0.dev1615693136
4
+ version: 1.7.0.dev1617508282
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-14 00:00:00.000000000 Z
11
+ date: 2021-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -235,47 +235,47 @@ specification_version: 4
235
235
  summary: Pulp 3 API Ruby Gem
236
236
  test_files:
237
237
  - spec/api/exporters_file_exports_api_spec.rb
238
- - spec/api/repositories_file_api_spec.rb
239
238
  - spec/api/repositories_file_versions_api_spec.rb
239
+ - spec/api/distributions_file_api_spec.rb
240
+ - spec/api/exporters_filesystem_api_spec.rb
240
241
  - spec/api/content_files_api_spec.rb
242
+ - spec/api/repositories_file_api_spec.rb
241
243
  - spec/api/remotes_file_api_spec.rb
242
- - spec/api/distributions_file_api_spec.rb
243
244
  - spec/api/publications_file_api_spec.rb
244
- - spec/api/exporters_filesystem_api_spec.rb
245
245
  - spec/api_client_spec.rb
246
246
  - spec/configuration_spec.rb
247
- - spec/models/file_file_remote_response_spec.rb
248
- - spec/models/file_file_distribution_spec.rb
247
+ - spec/models/repository_sync_url_spec.rb
248
+ - spec/models/file_file_filesystem_exporter_response_spec.rb
249
+ - spec/models/repository_version_response_spec.rb
250
+ - spec/models/paginatedfile_file_content_response_list_spec.rb
251
+ - spec/models/file_file_repository_spec.rb
252
+ - spec/models/publication_export_spec.rb
253
+ - spec/models/file_file_publication_spec.rb
254
+ - spec/models/content_summary_response_spec.rb
255
+ - spec/models/patchedfile_file_filesystem_exporter_spec.rb
256
+ - spec/models/paginatedfile_file_filesystem_exporter_response_list_spec.rb
257
+ - spec/models/paginatedfile_file_distribution_response_list_spec.rb
249
258
  - spec/models/paginatedfile_file_remote_response_list_spec.rb
259
+ - spec/models/patchedfile_file_repository_spec.rb
260
+ - spec/models/file_file_publication_response_spec.rb
261
+ - spec/models/export_response_spec.rb
262
+ - spec/models/paginatedfile_file_publication_response_list_spec.rb
250
263
  - spec/models/content_summary_spec.rb
251
- - spec/models/paginatedfile_file_repository_response_list_spec.rb
252
264
  - spec/models/file_file_content_spec.rb
253
- - spec/models/async_operation_response_spec.rb
254
- - spec/models/file_file_repository_spec.rb
265
+ - spec/models/repository_version_spec.rb
255
266
  - spec/models/paginated_export_response_list_spec.rb
256
- - spec/models/file_file_distribution_response_spec.rb
257
- - spec/models/file_file_filesystem_exporter_spec.rb
258
- - spec/models/paginatedfile_file_distribution_response_list_spec.rb
259
- - spec/models/file_file_remote_spec.rb
260
- - spec/models/patchedfile_file_filesystem_exporter_spec.rb
261
- - spec/models/paginatedfile_file_publication_response_list_spec.rb
267
+ - spec/models/file_file_remote_response_spec.rb
268
+ - spec/models/paginatedfile_file_repository_response_list_spec.rb
262
269
  - spec/models/policy_enum_spec.rb
263
- - spec/models/content_summary_response_spec.rb
264
- - spec/models/file_file_publication_spec.rb
265
- - spec/models/patchedfile_file_remote_spec.rb
266
- - spec/models/patchedfile_file_repository_spec.rb
267
- - spec/models/repository_version_spec.rb
270
+ - spec/models/file_file_distribution_response_spec.rb
268
271
  - spec/models/patchedfile_file_distribution_spec.rb
269
- - spec/models/publication_export_spec.rb
270
- - spec/models/paginated_repository_version_response_list_spec.rb
271
272
  - spec/models/repository_add_remove_content_spec.rb
272
- - spec/models/file_file_publication_response_spec.rb
273
- - spec/models/file_file_filesystem_exporter_response_spec.rb
274
- - spec/models/repository_version_response_spec.rb
273
+ - spec/models/async_operation_response_spec.rb
274
+ - spec/models/paginated_repository_version_response_list_spec.rb
275
275
  - spec/models/file_file_content_response_spec.rb
276
- - spec/models/export_response_spec.rb
277
- - spec/models/repository_sync_url_spec.rb
276
+ - spec/models/patchedfile_file_remote_spec.rb
278
277
  - spec/models/file_file_repository_response_spec.rb
279
- - spec/models/paginatedfile_file_content_response_list_spec.rb
280
- - spec/models/paginatedfile_file_filesystem_exporter_response_list_spec.rb
278
+ - spec/models/file_file_filesystem_exporter_spec.rb
279
+ - spec/models/file_file_remote_spec.rb
280
+ - spec/models/file_file_distribution_spec.rb
281
281
  - spec/spec_helper.rb