pulp_cookbook_client 0.1.0b10.dev1668310365 → 0.1.0b10.dev1668482712

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/docs/ContentCookbooksApi.md +12 -12
  4. data/docs/CookbookCookbookPackageContent.md +5 -5
  5. data/docs/CookbookCookbookPackageContentResponse.md +3 -3
  6. data/docs/DistributionsCookbookApi.md +8 -8
  7. data/docs/PublicationsCookbookApi.md +8 -8
  8. data/docs/RemotesCookbookApi.md +8 -8
  9. data/docs/RepositoriesCookbookApi.md +8 -8
  10. data/docs/RepositoriesCookbookVersionsApi.md +8 -8
  11. data/lib/pulp_cookbook_client/api/content_cookbooks_api.rb +18 -18
  12. data/lib/pulp_cookbook_client/api/distributions_cookbook_api.rb +12 -12
  13. data/lib/pulp_cookbook_client/api/publications_cookbook_api.rb +12 -12
  14. data/lib/pulp_cookbook_client/api/remotes_cookbook_api.rb +12 -12
  15. data/lib/pulp_cookbook_client/api/repositories_cookbook_api.rb +12 -12
  16. data/lib/pulp_cookbook_client/api/repositories_cookbook_versions_api.rb +12 -12
  17. data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content.rb +18 -18
  18. data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content_response.rb +10 -10
  19. data/lib/pulp_cookbook_client/version.rb +1 -1
  20. data/spec/api/content_cookbooks_api_spec.rb +6 -6
  21. data/spec/api/distributions_cookbook_api_spec.rb +4 -4
  22. data/spec/api/publications_cookbook_api_spec.rb +4 -4
  23. data/spec/api/remotes_cookbook_api_spec.rb +4 -4
  24. data/spec/api/repositories_cookbook_api_spec.rb +4 -4
  25. data/spec/api/repositories_cookbook_versions_api_spec.rb +4 -4
  26. data/spec/models/cookbook_cookbook_package_content_response_spec.rb +2 -2
  27. data/spec/models/cookbook_cookbook_package_content_spec.rb +3 -3
  28. metadata +2 -2
@@ -159,8 +159,8 @@ module PulpCookbookClient
159
159
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
160
160
  # @option opts [String] :repository Repository referenced by HREF
161
161
  # @option opts [String] :repository_version Repository Version referenced by HREF
162
- # @option opts [String] :fields A list of fields to include in the response.
163
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
162
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
163
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
164
164
  # @return [PaginatedcookbookCookbookPublicationResponseList]
165
165
  def list(opts = {})
166
166
  data, _status_code, _headers = list_with_http_info(opts)
@@ -183,8 +183,8 @@ module PulpCookbookClient
183
183
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
184
184
  # @option opts [String] :repository Repository referenced by HREF
185
185
  # @option opts [String] :repository_version Repository Version referenced by HREF
186
- # @option opts [String] :fields A list of fields to include in the response.
187
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
186
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
187
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
188
188
  # @return [Array<(PaginatedcookbookCookbookPublicationResponseList, Integer, Hash)>] PaginatedcookbookCookbookPublicationResponseList data, response status code and response headers
189
189
  def list_with_http_info(opts = {})
190
190
  if @api_client.config.debugging
@@ -212,8 +212,8 @@ module PulpCookbookClient
212
212
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
213
213
  query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
214
214
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
215
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
216
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
215
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
216
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
217
217
 
218
218
  # header parameters
219
219
  header_params = opts[:header_params] || {}
@@ -252,8 +252,8 @@ module PulpCookbookClient
252
252
  # File Publication Endpoint. A CookbookPublication contains metadata about all the Cookbook Content in a particular Cookbook Repository Version. Once a CookbookPublication has been created, it can be hosted using the Cookbook Distribution API.
253
253
  # @param cookbook_cookbook_publication_href [String]
254
254
  # @param [Hash] opts the optional parameters
255
- # @option opts [String] :fields A list of fields to include in the response.
256
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
255
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
256
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
257
257
  # @return [CookbookCookbookPublicationResponse]
258
258
  def read(cookbook_cookbook_publication_href, opts = {})
259
259
  data, _status_code, _headers = read_with_http_info(cookbook_cookbook_publication_href, opts)
@@ -264,8 +264,8 @@ module PulpCookbookClient
264
264
  # File Publication Endpoint. A CookbookPublication contains metadata about all the Cookbook Content in a particular Cookbook Repository Version. Once a CookbookPublication has been created, it can be hosted using the Cookbook Distribution API.
265
265
  # @param cookbook_cookbook_publication_href [String]
266
266
  # @param [Hash] opts the optional parameters
267
- # @option opts [String] :fields A list of fields to include in the response.
268
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
267
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
268
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
269
269
  # @return [Array<(CookbookCookbookPublicationResponse, Integer, Hash)>] CookbookCookbookPublicationResponse data, response status code and response headers
270
270
  def read_with_http_info(cookbook_cookbook_publication_href, opts = {})
271
271
  if @api_client.config.debugging
@@ -280,8 +280,8 @@ module PulpCookbookClient
280
280
 
281
281
  # query parameters
282
282
  query_params = opts[:query_params] || {}
283
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
284
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
283
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
284
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
285
285
 
286
286
  # header parameters
287
287
  header_params = opts[:header_params] || {}
@@ -163,8 +163,8 @@ module PulpCookbookClient
163
163
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
164
164
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
165
165
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
166
- # @option opts [String] :fields A list of fields to include in the response.
167
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
166
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
167
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
168
168
  # @return [PaginatedcookbookCookbookRemoteResponseList]
169
169
  def list(opts = {})
170
170
  data, _status_code, _headers = list_with_http_info(opts)
@@ -189,8 +189,8 @@ module PulpCookbookClient
189
189
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
190
190
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
191
191
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
192
- # @option opts [String] :fields A list of fields to include in the response.
193
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
192
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
193
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
194
194
  # @return [Array<(PaginatedcookbookCookbookRemoteResponseList, Integer, Hash)>] PaginatedcookbookCookbookRemoteResponseList data, response status code and response headers
195
195
  def list_with_http_info(opts = {})
196
196
  if @api_client.config.debugging
@@ -220,8 +220,8 @@ module PulpCookbookClient
220
220
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
221
221
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
222
222
  query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
223
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
224
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
223
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
224
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
225
225
 
226
226
  # header parameters
227
227
  header_params = opts[:header_params] || {}
@@ -330,8 +330,8 @@ module PulpCookbookClient
330
330
  # Cookbook Remote Endpoint. CookbookRemote represents an external source of Cookbook Content. The target url of a CookbookRemote must point to a universe API endpont.
331
331
  # @param cookbook_cookbook_remote_href [String]
332
332
  # @param [Hash] opts the optional parameters
333
- # @option opts [String] :fields A list of fields to include in the response.
334
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
333
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
334
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
335
335
  # @return [CookbookCookbookRemoteResponse]
336
336
  def read(cookbook_cookbook_remote_href, opts = {})
337
337
  data, _status_code, _headers = read_with_http_info(cookbook_cookbook_remote_href, opts)
@@ -342,8 +342,8 @@ module PulpCookbookClient
342
342
  # Cookbook Remote Endpoint. CookbookRemote represents an external source of Cookbook Content. The target url of a CookbookRemote must point to a universe API endpont.
343
343
  # @param cookbook_cookbook_remote_href [String]
344
344
  # @param [Hash] opts the optional parameters
345
- # @option opts [String] :fields A list of fields to include in the response.
346
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
345
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
346
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
347
347
  # @return [Array<(CookbookCookbookRemoteResponse, Integer, Hash)>] CookbookCookbookRemoteResponse data, response status code and response headers
348
348
  def read_with_http_info(cookbook_cookbook_remote_href, opts = {})
349
349
  if @api_client.config.debugging
@@ -358,8 +358,8 @@ module PulpCookbookClient
358
358
 
359
359
  # query parameters
360
360
  query_params = opts[:query_params] || {}
361
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
362
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
361
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
362
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
363
363
 
364
364
  # header parameters
365
365
  header_params = opts[:header_params] || {}
@@ -158,8 +158,8 @@ module PulpCookbookClient
158
158
  # @option opts [Array<String>] :ordering Ordering
159
159
  # @option opts [String] :pulp_label_select Filter labels by search string
160
160
  # @option opts [String] :remote Foreign Key referenced by HREF
161
- # @option opts [String] :fields A list of fields to include in the response.
162
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
161
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
162
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
163
163
  # @return [PaginatedcookbookCookbookRepositoryResponseList]
164
164
  def list(opts = {})
165
165
  data, _status_code, _headers = list_with_http_info(opts)
@@ -179,8 +179,8 @@ module PulpCookbookClient
179
179
  # @option opts [Array<String>] :ordering Ordering
180
180
  # @option opts [String] :pulp_label_select Filter labels by search string
181
181
  # @option opts [String] :remote Foreign Key referenced by HREF
182
- # @option opts [String] :fields A list of fields to include in the response.
183
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
183
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
184
184
  # @return [Array<(PaginatedcookbookCookbookRepositoryResponseList, Integer, Hash)>] PaginatedcookbookCookbookRepositoryResponseList data, response status code and response headers
185
185
  def list_with_http_info(opts = {})
186
186
  if @api_client.config.debugging
@@ -205,8 +205,8 @@ module PulpCookbookClient
205
205
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
206
206
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
207
207
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
208
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
209
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
208
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
209
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
210
210
 
211
211
  # header parameters
212
212
  header_params = opts[:header_params] || {}
@@ -385,8 +385,8 @@ module PulpCookbookClient
385
385
  # Cookbook Repository Endpoint. CookbookRepository represents a single cookbook repository, to which content can be synced, added, or removed.
386
386
  # @param cookbook_cookbook_repository_href [String]
387
387
  # @param [Hash] opts the optional parameters
388
- # @option opts [String] :fields A list of fields to include in the response.
389
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
388
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
389
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
390
390
  # @return [CookbookCookbookRepositoryResponse]
391
391
  def read(cookbook_cookbook_repository_href, opts = {})
392
392
  data, _status_code, _headers = read_with_http_info(cookbook_cookbook_repository_href, opts)
@@ -397,8 +397,8 @@ module PulpCookbookClient
397
397
  # Cookbook Repository Endpoint. CookbookRepository represents a single cookbook repository, to which content can be synced, added, or removed.
398
398
  # @param cookbook_cookbook_repository_href [String]
399
399
  # @param [Hash] opts the optional parameters
400
- # @option opts [String] :fields A list of fields to include in the response.
401
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
400
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
401
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
402
402
  # @return [Array<(CookbookCookbookRepositoryResponse, Integer, Hash)>] CookbookCookbookRepositoryResponse data, response status code and response headers
403
403
  def read_with_http_info(cookbook_cookbook_repository_href, opts = {})
404
404
  if @api_client.config.debugging
@@ -413,8 +413,8 @@ module PulpCookbookClient
413
413
 
414
414
  # query parameters
415
415
  query_params = opts[:query_params] || {}
416
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
417
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
416
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
417
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
418
418
 
419
419
  # header parameters
420
420
  header_params = opts[:header_params] || {}
@@ -102,8 +102,8 @@ module PulpCookbookClient
102
102
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
- # @option opts [String] :fields A list of fields to include in the response.
106
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
105
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
106
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
107
107
  # @return [PaginatedRepositoryVersionResponseList]
108
108
  def list(cookbook_cookbook_repository_href, opts = {})
109
109
  data, _status_code, _headers = list_with_http_info(cookbook_cookbook_repository_href, opts)
@@ -131,8 +131,8 @@ module PulpCookbookClient
131
131
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
132
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
133
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
134
- # @option opts [String] :fields A list of fields to include in the response.
135
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
134
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
135
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
136
136
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
137
137
  def list_with_http_info(cookbook_cookbook_repository_href, opts = {})
138
138
  if @api_client.config.debugging
@@ -168,8 +168,8 @@ module PulpCookbookClient
168
168
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
169
169
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
170
170
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
171
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
172
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
171
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
172
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
173
173
 
174
174
  # header parameters
175
175
  header_params = opts[:header_params] || {}
@@ -208,8 +208,8 @@ module PulpCookbookClient
208
208
  # Cookbook Repository Version Endpoint. CookbookRepositoryVersion represents a single cookbook repository version.
209
209
  # @param cookbook_cookbook_repository_version_href [String]
210
210
  # @param [Hash] opts the optional parameters
211
- # @option opts [String] :fields A list of fields to include in the response.
212
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
211
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
212
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
213
213
  # @return [RepositoryVersionResponse]
214
214
  def read(cookbook_cookbook_repository_version_href, opts = {})
215
215
  data, _status_code, _headers = read_with_http_info(cookbook_cookbook_repository_version_href, opts)
@@ -220,8 +220,8 @@ module PulpCookbookClient
220
220
  # Cookbook Repository Version Endpoint. CookbookRepositoryVersion represents a single cookbook repository version.
221
221
  # @param cookbook_cookbook_repository_version_href [String]
222
222
  # @param [Hash] opts the optional parameters
223
- # @option opts [String] :fields A list of fields to include in the response.
224
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
223
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
224
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
225
225
  # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
226
226
  def read_with_http_info(cookbook_cookbook_repository_version_href, opts = {})
227
227
  if @api_client.config.debugging
@@ -236,8 +236,8 @@ module PulpCookbookClient
236
236
 
237
237
  # query parameters
238
238
  query_params = opts[:query_params] || {}
239
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
240
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
239
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
240
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
241
241
 
242
242
  # header parameters
243
243
  header_params = opts[:header_params] || {}
@@ -15,17 +15,17 @@ require 'date'
15
15
  module PulpCookbookClient
16
16
  # Serializer for the cookbook content.
17
17
  class CookbookCookbookPackageContent
18
+ # A URI of a repository the new content unit should be associated with.
19
+ attr_accessor :repository
20
+
18
21
  # An uploaded file that may be turned into the artifact of the content unit.
19
22
  attr_accessor :file
20
23
 
21
- # Artifact file representing the physical content
22
- attr_accessor :artifact
23
-
24
24
  # An uncommitted upload that may be turned into the artifact of the content unit.
25
25
  attr_accessor :upload
26
26
 
27
- # A URI of a repository the new content unit should be associated with.
28
- attr_accessor :repository
27
+ # Artifact file representing the physical content
28
+ attr_accessor :artifact
29
29
 
30
30
  # name of the cookbook
31
31
  attr_accessor :name
@@ -36,10 +36,10 @@ module PulpCookbookClient
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
+ :'repository' => :'repository',
39
40
  :'file' => :'file',
40
- :'artifact' => :'artifact',
41
41
  :'upload' => :'upload',
42
- :'repository' => :'repository',
42
+ :'artifact' => :'artifact',
43
43
  :'name' => :'name',
44
44
  :'version' => :'version'
45
45
  }
@@ -48,10 +48,10 @@ module PulpCookbookClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
+ :'repository' => :'String',
51
52
  :'file' => :'File',
52
- :'artifact' => :'String',
53
53
  :'upload' => :'String',
54
- :'repository' => :'String',
54
+ :'artifact' => :'String',
55
55
  :'name' => :'String',
56
56
  :'version' => :'String'
57
57
  }
@@ -78,20 +78,20 @@ module PulpCookbookClient
78
78
  h[k.to_sym] = v
79
79
  }
80
80
 
81
- if attributes.key?(:'file')
82
- self.file = attributes[:'file']
81
+ if attributes.key?(:'repository')
82
+ self.repository = attributes[:'repository']
83
83
  end
84
84
 
85
- if attributes.key?(:'artifact')
86
- self.artifact = attributes[:'artifact']
85
+ if attributes.key?(:'file')
86
+ self.file = attributes[:'file']
87
87
  end
88
88
 
89
89
  if attributes.key?(:'upload')
90
90
  self.upload = attributes[:'upload']
91
91
  end
92
92
 
93
- if attributes.key?(:'repository')
94
- self.repository = attributes[:'repository']
93
+ if attributes.key?(:'artifact')
94
+ self.artifact = attributes[:'artifact']
95
95
  end
96
96
 
97
97
  if attributes.key?(:'name')
@@ -160,10 +160,10 @@ module PulpCookbookClient
160
160
  def ==(o)
161
161
  return true if self.equal?(o)
162
162
  self.class == o.class &&
163
+ repository == o.repository &&
163
164
  file == o.file &&
164
- artifact == o.artifact &&
165
165
  upload == o.upload &&
166
- repository == o.repository &&
166
+ artifact == o.artifact &&
167
167
  name == o.name &&
168
168
  version == o.version
169
169
  end
@@ -177,7 +177,7 @@ module PulpCookbookClient
177
177
  # Calculates hash code according to all attributes.
178
178
  # @return [Integer] Hash code
179
179
  def hash
180
- [file, artifact, upload, repository, name, version].hash
180
+ [repository, file, upload, artifact, name, version].hash
181
181
  end
182
182
 
183
183
  # Builds the object from hash
@@ -15,11 +15,11 @@ require 'date'
15
15
  module PulpCookbookClient
16
16
  # Serializer for the cookbook content.
17
17
  class CookbookCookbookPackageContentResponse
18
+ attr_accessor :pulp_href
19
+
18
20
  # Timestamp of creation.
19
21
  attr_accessor :pulp_created
20
22
 
21
- attr_accessor :pulp_href
22
-
23
23
  # Artifact file representing the physical content
24
24
  attr_accessor :artifact
25
25
 
@@ -38,8 +38,8 @@ module PulpCookbookClient
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'pulp_created' => :'pulp_created',
42
41
  :'pulp_href' => :'pulp_href',
42
+ :'pulp_created' => :'pulp_created',
43
43
  :'artifact' => :'artifact',
44
44
  :'name' => :'name',
45
45
  :'version' => :'version',
@@ -51,8 +51,8 @@ module PulpCookbookClient
51
51
  # Attribute type mapping.
52
52
  def self.openapi_types
53
53
  {
54
- :'pulp_created' => :'DateTime',
55
54
  :'pulp_href' => :'String',
55
+ :'pulp_created' => :'DateTime',
56
56
  :'artifact' => :'String',
57
57
  :'name' => :'String',
58
58
  :'version' => :'String',
@@ -82,14 +82,14 @@ module PulpCookbookClient
82
82
  h[k.to_sym] = v
83
83
  }
84
84
 
85
- if attributes.key?(:'pulp_created')
86
- self.pulp_created = attributes[:'pulp_created']
87
- end
88
-
89
85
  if attributes.key?(:'pulp_href')
90
86
  self.pulp_href = attributes[:'pulp_href']
91
87
  end
92
88
 
89
+ if attributes.key?(:'pulp_created')
90
+ self.pulp_created = attributes[:'pulp_created']
91
+ end
92
+
93
93
  if attributes.key?(:'artifact')
94
94
  self.artifact = attributes[:'artifact']
95
95
  end
@@ -134,8 +134,8 @@ module PulpCookbookClient
134
134
  def ==(o)
135
135
  return true if self.equal?(o)
136
136
  self.class == o.class &&
137
- pulp_created == o.pulp_created &&
138
137
  pulp_href == o.pulp_href &&
138
+ pulp_created == o.pulp_created &&
139
139
  artifact == o.artifact &&
140
140
  name == o.name &&
141
141
  version == o.version &&
@@ -152,7 +152,7 @@ module PulpCookbookClient
152
152
  # Calculates hash code according to all attributes.
153
153
  # @return [Integer] Hash code
154
154
  def hash
155
- [pulp_created, pulp_href, artifact, name, version, dependencies, content_id].hash
155
+ [pulp_href, pulp_created, artifact, name, version, dependencies, content_id].hash
156
156
  end
157
157
 
158
158
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpCookbookClient
14
- VERSION = '0.1.0b10.dev1668310365'
14
+ VERSION = '0.1.0b10.dev1668482712'
15
15
  end
@@ -37,10 +37,10 @@ describe 'ContentCookbooksApi' do
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param name name of the cookbook
39
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
40
41
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
41
- # @option opts [String] :artifact Artifact file representing the physical content
42
42
  # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
43
- # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
+ # @option opts [String] :artifact Artifact file representing the physical content
44
44
  # @option opts [String] :version version of the cookbook
45
45
  # @return [AsyncOperationResponse]
46
46
  describe 'create test' do
@@ -62,8 +62,8 @@ describe 'ContentCookbooksApi' do
62
62
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
63
63
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
64
64
  # @option opts [String] :version Filter results where version matches value
65
- # @option opts [String] :fields A list of fields to include in the response.
66
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
65
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
66
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
67
67
  # @return [PaginatedcookbookCookbookPackageContentResponseList]
68
68
  describe 'list test' do
69
69
  it 'should work' do
@@ -76,8 +76,8 @@ describe 'ContentCookbooksApi' do
76
76
  # Cookbook Content Endpoint. CookbookContent represents a single cookbook, which can be added and removed from repositories.
77
77
  # @param cookbook_cookbook_package_content_href
78
78
  # @param [Hash] opts the optional parameters
79
- # @option opts [String] :fields A list of fields to include in the response.
80
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
79
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
80
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
81
81
  # @return [CookbookCookbookPackageContentResponse]
82
82
  describe 'read test' do
83
83
  it 'should work' do
@@ -74,8 +74,8 @@ describe 'DistributionsCookbookApi' do
74
74
  # @option opts [Array<String>] :ordering Ordering
75
75
  # @option opts [String] :pulp_label_select Filter labels by search string
76
76
  # @option opts [String] :with_content Filter distributions based on the content served by them
77
- # @option opts [String] :fields A list of fields to include in the response.
78
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
77
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
78
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
79
79
  # @return [PaginatedcookbookCookbookDistributionResponseList]
80
80
  describe 'list test' do
81
81
  it 'should work' do
@@ -101,8 +101,8 @@ describe 'DistributionsCookbookApi' do
101
101
  # Cookbook Distreibution Endpoint. CookbookDistributions host Cookbook Publications which makes the metadata and the referenced Cookbook Content available to clients like berkshelf. Additionally, a CookbookDistribution with an associated CookbookPublication can be the target url of a Cookbook Remote , allowing another instance of Pulp to sync the content.
102
102
  # @param cookbook_cookbook_distribution_href
103
103
  # @param [Hash] opts the optional parameters
104
- # @option opts [String] :fields A list of fields to include in the response.
105
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
104
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
105
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
106
106
  # @return [CookbookCookbookDistributionResponse]
107
107
  describe 'read test' do
108
108
  it 'should work' do
@@ -73,8 +73,8 @@ describe 'PublicationsCookbookApi' do
73
73
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
74
74
  # @option opts [String] :repository Repository referenced by HREF
75
75
  # @option opts [String] :repository_version Repository Version referenced by HREF
76
- # @option opts [String] :fields A list of fields to include in the response.
77
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
76
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
77
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
78
78
  # @return [PaginatedcookbookCookbookPublicationResponseList]
79
79
  describe 'list test' do
80
80
  it 'should work' do
@@ -87,8 +87,8 @@ describe 'PublicationsCookbookApi' do
87
87
  # File Publication Endpoint. A CookbookPublication contains metadata about all the Cookbook Content in a particular Cookbook Repository Version. Once a CookbookPublication has been created, it can be hosted using the Cookbook Distribution API.
88
88
  # @param cookbook_cookbook_publication_href
89
89
  # @param [Hash] opts the optional parameters
90
- # @option opts [String] :fields A list of fields to include in the response.
91
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
90
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
91
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
92
92
  # @return [CookbookCookbookPublicationResponse]
93
93
  describe 'read test' do
94
94
  it 'should work' do
@@ -75,8 +75,8 @@ describe 'RemotesCookbookApi' do
75
75
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
76
76
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
77
77
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
78
- # @option opts [String] :fields A list of fields to include in the response.
79
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
78
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
79
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
80
80
  # @return [PaginatedcookbookCookbookRemoteResponseList]
81
81
  describe 'list test' do
82
82
  it 'should work' do
@@ -102,8 +102,8 @@ describe 'RemotesCookbookApi' do
102
102
  # Cookbook Remote Endpoint. CookbookRemote represents an external source of Cookbook Content. The target url of a CookbookRemote must point to a universe API endpont.
103
103
  # @param cookbook_cookbook_remote_href
104
104
  # @param [Hash] opts the optional parameters
105
- # @option opts [String] :fields A list of fields to include in the response.
106
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
105
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
106
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
107
107
  # @return [CookbookCookbookRemoteResponse]
108
108
  describe 'read test' do
109
109
  it 'should work' do
@@ -70,8 +70,8 @@ describe 'RepositoriesCookbookApi' do
70
70
  # @option opts [Array<String>] :ordering Ordering
71
71
  # @option opts [String] :pulp_label_select Filter labels by search string
72
72
  # @option opts [String] :remote Foreign Key referenced by HREF
73
- # @option opts [String] :fields A list of fields to include in the response.
74
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
73
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
74
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
75
75
  # @return [PaginatedcookbookCookbookRepositoryResponseList]
76
76
  describe 'list test' do
77
77
  it 'should work' do
@@ -110,8 +110,8 @@ describe 'RepositoriesCookbookApi' do
110
110
  # Cookbook Repository Endpoint. CookbookRepository represents a single cookbook repository, to which content can be synced, added, or removed.
111
111
  # @param cookbook_cookbook_repository_href
112
112
  # @param [Hash] opts the optional parameters
113
- # @option opts [String] :fields A list of fields to include in the response.
114
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
113
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
114
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
115
115
  # @return [CookbookCookbookRepositoryResponse]
116
116
  describe 'read test' do
117
117
  it 'should work' do
@@ -66,8 +66,8 @@ describe 'RepositoriesCookbookVersionsApi' do
66
66
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
67
67
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
68
68
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
69
- # @option opts [String] :fields A list of fields to include in the response.
70
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
69
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
70
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
71
71
  # @return [PaginatedRepositoryVersionResponseList]
72
72
  describe 'list test' do
73
73
  it 'should work' do
@@ -80,8 +80,8 @@ describe 'RepositoriesCookbookVersionsApi' do
80
80
  # Cookbook Repository Version Endpoint. CookbookRepositoryVersion represents a single cookbook repository version.
81
81
  # @param cookbook_cookbook_repository_version_href
82
82
  # @param [Hash] opts the optional parameters
83
- # @option opts [String] :fields A list of fields to include in the response.
84
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
83
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
84
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
85
85
  # @return [RepositoryVersionResponse]
86
86
  describe 'read test' do
87
87
  it 'should work' do
@@ -32,13 +32,13 @@ describe 'CookbookCookbookPackageContentResponse' do
32
32
  expect(@instance).to be_instance_of(PulpCookbookClient::CookbookCookbookPackageContentResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_created"' do
35
+ describe 'test attribute "pulp_href"' 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_href"' do
41
+ describe 'test attribute "pulp_created"' 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