Class: PulpContainerClient::RepositoriesContainerVersionsApi

Inherits:
Object
  • Object
show all
Defined in:
lib/pulp_container_client/api/repositories_container_versions_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ RepositoriesContainerVersionsApi

Returns a new instance of RepositoriesContainerVersionsApi.



19
20
21
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#delete(container_container_push_repository_version_href, opts = {}) ⇒ AsyncOperationResponse

Delete a repository version Trigger an asynchronous task to delete a repository version.

Parameters:

  • container_container_push_repository_version_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



27
28
29
30
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 27

def delete(container_container_push_repository_version_href, opts = {})
  data, _status_code, _headers = delete_with_http_info(container_container_push_repository_version_href, opts)
  data
end

#delete_0(container_container_repository_version_href, opts = {}) ⇒ AsyncOperationResponse

Delete a repository version Trigger an asynchronous task to delete a repository version.

Parameters:

  • container_container_repository_version_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



89
90
91
92
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 89

def delete_0(container_container_repository_version_href, opts = {})
  data, _status_code, _headers = delete_0_with_http_info(container_container_repository_version_href, opts)
  data
end

#delete_0_with_http_info(container_container_repository_version_href, opts = {}) ⇒ Array<(AsyncOperationResponse, Integer, Hash)>

Delete a repository version Trigger an asynchronous task to delete a repository version.

Parameters:

  • container_container_repository_version_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(AsyncOperationResponse, Integer, Hash)>)

    AsyncOperationResponse data, response status code and response headers



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 99

def delete_0_with_http_info(container_container_repository_version_href, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.delete_0 ...'
  end
  # verify the required parameter 'container_container_repository_version_href' is set
  if @api_client.config.client_side_validation && container_container_repository_version_href.nil?
    fail ArgumentError, "Missing the required parameter 'container_container_repository_version_href' when calling RepositoriesContainerVersionsApi.delete_0"
  end
  # resource path
  local_var_path = '{container_container_repository_version_href}'.sub('{' + 'container_container_repository_version_href' + '}', CGI.escape(container_container_repository_version_href.to_s).gsub('%2F', '/'))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'AsyncOperationResponse' 

  # auth_names
  auth_names = opts[:auth_names] || ['basicAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#delete_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_with_http_info(container_container_push_repository_version_href, opts = {}) ⇒ Array<(AsyncOperationResponse, Integer, Hash)>

Delete a repository version Trigger an asynchronous task to delete a repository version.

Parameters:

  • container_container_push_repository_version_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(AsyncOperationResponse, Integer, Hash)>)

    AsyncOperationResponse data, response status code and response headers



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 37

def delete_with_http_info(container_container_push_repository_version_href, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.delete ...'
  end
  # verify the required parameter 'container_container_push_repository_version_href' is set
  if @api_client.config.client_side_validation && container_container_push_repository_version_href.nil?
    fail ArgumentError, "Missing the required parameter 'container_container_push_repository_version_href' when calling RepositoriesContainerVersionsApi.delete"
  end
  # resource path
  local_var_path = '{container_container_push_repository_version_href}'.sub('{' + 'container_container_push_repository_version_href' + '}', CGI.escape(container_container_push_repository_version_href.to_s).gsub('%2F', '/'))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'AsyncOperationResponse' 

  # auth_names
  auth_names = opts[:auth_names] || ['basicAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list(container_container_push_repository_href, opts = {}) ⇒ PaginatedRepositoryVersionResponseList

List repository versions ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.

Parameters:

  • container_container_push_repository_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :content (String)

    Content Unit referenced by HREF

  • :content__in (String)

    Content Unit referenced by HREF

  • :limit (Integer)

    Number of results to return per page.

  • :number (Integer)
  • :number__gt (Integer)

    Filter results where number is greater than value

  • :number__gte (Integer)

    Filter results where number is greater than or equal to value

  • :number__lt (Integer)

    Filter results where number is less than value

  • :number__lte (Integer)

    Filter results where number is less than or equal to value

  • :number__range (Array<Integer>)

    Filter results where number is between two comma separated values

  • :offset (Integer)

    The initial index from which to return the results.

  • :ordering (String)

    Which field to use when ordering the results.

  • :pulp_created (DateTime)

    ISO 8601 formatted dates are supported

  • :pulp_created__gt (DateTime)

    Filter results where pulp_created is greater than value

  • :pulp_created__gte (DateTime)

    Filter results where pulp_created is greater than or equal to value

  • :pulp_created__lt (DateTime)

    Filter results where pulp_created is less than value

  • :pulp_created__lte (DateTime)

    Filter results where pulp_created is less than or equal to value

  • :pulp_created__range (Array<DateTime>)

    Filter results where pulp_created is between two comma separated values

  • :fields (String)

    A list of fields to include in the response.

  • :exclude_fields (String)

    A list of fields to exclude from the response.

Returns:



170
171
172
173
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 170

def list(container_container_push_repository_href, opts = {})
  data, _status_code, _headers = list_with_http_info(container_container_push_repository_href, opts)
  data
end

#list_0(container_container_repository_href, opts = {}) ⇒ PaginatedRepositoryVersionResponseList

List repository versions ContainerRepositoryVersion represents a single container repository version.

Parameters:

  • container_container_repository_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :content (String)

    Content Unit referenced by HREF

  • :content__in (String)

    Content Unit referenced by HREF

  • :limit (Integer)

    Number of results to return per page.

  • :number (Integer)
  • :number__gt (Integer)

    Filter results where number is greater than value

  • :number__gte (Integer)

    Filter results where number is greater than or equal to value

  • :number__lt (Integer)

    Filter results where number is less than value

  • :number__lte (Integer)

    Filter results where number is less than or equal to value

  • :number__range (Array<Integer>)

    Filter results where number is between two comma separated values

  • :offset (Integer)

    The initial index from which to return the results.

  • :ordering (String)

    Which field to use when ordering the results.

  • :pulp_created (DateTime)

    ISO 8601 formatted dates are supported

  • :pulp_created__gt (DateTime)

    Filter results where pulp_created is greater than value

  • :pulp_created__gte (DateTime)

    Filter results where pulp_created is greater than or equal to value

  • :pulp_created__lt (DateTime)

    Filter results where pulp_created is less than value

  • :pulp_created__lte (DateTime)

    Filter results where pulp_created is less than or equal to value

  • :pulp_created__range (Array<DateTime>)

    Filter results where pulp_created is between two comma separated values

  • :fields (String)

    A list of fields to include in the response.

  • :exclude_fields (String)

    A list of fields to exclude from the response.

Returns:



309
310
311
312
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 309

def list_0(container_container_repository_href, opts = {})
  data, _status_code, _headers = list_0_with_http_info(container_container_repository_href, opts)
  data
end

#list_0_with_http_info(container_container_repository_href, opts = {}) ⇒ Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>

List repository versions ContainerRepositoryVersion represents a single container repository version.

Parameters:

  • container_container_repository_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :content (String)

    Content Unit referenced by HREF

  • :content__in (String)

    Content Unit referenced by HREF

  • :limit (Integer)

    Number of results to return per page.

  • :number (Integer)
  • :number__gt (Integer)

    Filter results where number is greater than value

  • :number__gte (Integer)

    Filter results where number is greater than or equal to value

  • :number__lt (Integer)

    Filter results where number is less than value

  • :number__lte (Integer)

    Filter results where number is less than or equal to value

  • :number__range (Array<Integer>)

    Filter results where number is between two comma separated values

  • :offset (Integer)

    The initial index from which to return the results.

  • :ordering (String)

    Which field to use when ordering the results.

  • :pulp_created (DateTime)

    ISO 8601 formatted dates are supported

  • :pulp_created__gt (DateTime)

    Filter results where pulp_created is greater than value

  • :pulp_created__gte (DateTime)

    Filter results where pulp_created is greater than or equal to value

  • :pulp_created__lt (DateTime)

    Filter results where pulp_created is less than value

  • :pulp_created__lte (DateTime)

    Filter results where pulp_created is less than or equal to value

  • :pulp_created__range (Array<DateTime>)

    Filter results where pulp_created is between two comma separated values

  • :fields (String)

    A list of fields to include in the response.

  • :exclude_fields (String)

    A list of fields to exclude from the response.

Returns:



338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 338

def list_0_with_http_info(container_container_repository_href, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.list_0 ...'
  end
  # verify the required parameter 'container_container_repository_href' is set
  if @api_client.config.client_side_validation && container_container_repository_href.nil?
    fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerVersionsApi.list_0"
  end
  if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
    fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
  end

  if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
    fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
  end

  if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
    fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
  end

  if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
    fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
  end

  if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
    fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
  end

  # resource path
  local_var_path = '{container_container_repository_href}versions/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
  query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
  query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
  query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
  query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
  query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
  query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'PaginatedRepositoryVersionResponseList' 

  # auth_names
  auth_names = opts[:auth_names] || ['basicAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#list_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_with_http_info(container_container_push_repository_href, opts = {}) ⇒ Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>

List repository versions ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.

Parameters:

  • container_container_push_repository_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :content (String)

    Content Unit referenced by HREF

  • :content__in (String)

    Content Unit referenced by HREF

  • :limit (Integer)

    Number of results to return per page.

  • :number (Integer)
  • :number__gt (Integer)

    Filter results where number is greater than value

  • :number__gte (Integer)

    Filter results where number is greater than or equal to value

  • :number__lt (Integer)

    Filter results where number is less than value

  • :number__lte (Integer)

    Filter results where number is less than or equal to value

  • :number__range (Array<Integer>)

    Filter results where number is between two comma separated values

  • :offset (Integer)

    The initial index from which to return the results.

  • :ordering (String)

    Which field to use when ordering the results.

  • :pulp_created (DateTime)

    ISO 8601 formatted dates are supported

  • :pulp_created__gt (DateTime)

    Filter results where pulp_created is greater than value

  • :pulp_created__gte (DateTime)

    Filter results where pulp_created is greater than or equal to value

  • :pulp_created__lt (DateTime)

    Filter results where pulp_created is less than value

  • :pulp_created__lte (DateTime)

    Filter results where pulp_created is less than or equal to value

  • :pulp_created__range (Array<DateTime>)

    Filter results where pulp_created is between two comma separated values

  • :fields (String)

    A list of fields to include in the response.

  • :exclude_fields (String)

    A list of fields to exclude from the response.

Returns:



199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 199

def list_with_http_info(container_container_push_repository_href, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.list ...'
  end
  # verify the required parameter 'container_container_push_repository_href' is set
  if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
    fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerVersionsApi.list"
  end
  if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
    fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
  end

  if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
    fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
  end

  if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
    fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
  end

  if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
    fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
  end

  if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
    fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
  end

  # resource path
  local_var_path = '{container_container_push_repository_href}versions/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
  query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
  query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
  query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
  query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
  query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
  query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'PaginatedRepositoryVersionResponseList' 

  # auth_names
  auth_names = opts[:auth_names] || ['basicAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#read(container_container_push_repository_version_href, opts = {}) ⇒ RepositoryVersionResponse

Inspect a repository version ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.

Parameters:

  • container_container_push_repository_version_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :fields (String)

    A list of fields to include in the response.

  • :exclude_fields (String)

    A list of fields to exclude from the response.

Returns:



431
432
433
434
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 431

def read(container_container_push_repository_version_href, opts = {})
  data, _status_code, _headers = read_with_http_info(container_container_push_repository_version_href, opts)
  data
end

#read_0(container_container_repository_version_href, opts = {}) ⇒ RepositoryVersionResponse

Inspect a repository version ContainerRepositoryVersion represents a single container repository version.

Parameters:

  • container_container_repository_version_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :fields (String)

    A list of fields to include in the response.

  • :exclude_fields (String)

    A list of fields to exclude from the response.

Returns:



499
500
501
502
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 499

def read_0(container_container_repository_version_href, opts = {})
  data, _status_code, _headers = read_0_with_http_info(container_container_repository_version_href, opts)
  data
end

#read_0_with_http_info(container_container_repository_version_href, opts = {}) ⇒ Array<(RepositoryVersionResponse, Integer, Hash)>

Inspect a repository version ContainerRepositoryVersion represents a single container repository version.

Parameters:

  • container_container_repository_version_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :fields (String)

    A list of fields to include in the response.

  • :exclude_fields (String)

    A list of fields to exclude from the response.

Returns:

  • (Array<(RepositoryVersionResponse, Integer, Hash)>)

    RepositoryVersionResponse data, response status code and response headers



511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 511

def read_0_with_http_info(container_container_repository_version_href, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.read_0 ...'
  end
  # verify the required parameter 'container_container_repository_version_href' is set
  if @api_client.config.client_side_validation && container_container_repository_version_href.nil?
    fail ArgumentError, "Missing the required parameter 'container_container_repository_version_href' when calling RepositoriesContainerVersionsApi.read_0"
  end
  # resource path
  local_var_path = '{container_container_repository_version_href}'.sub('{' + 'container_container_repository_version_href' + '}', CGI.escape(container_container_repository_version_href.to_s).gsub('%2F', '/'))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'RepositoryVersionResponse' 

  # auth_names
  auth_names = opts[:auth_names] || ['basicAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#read_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#read_with_http_info(container_container_push_repository_version_href, opts = {}) ⇒ Array<(RepositoryVersionResponse, Integer, Hash)>

Inspect a repository version ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.

Parameters:

  • container_container_push_repository_version_href (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :fields (String)

    A list of fields to include in the response.

  • :exclude_fields (String)

    A list of fields to exclude from the response.

Returns:

  • (Array<(RepositoryVersionResponse, Integer, Hash)>)

    RepositoryVersionResponse data, response status code and response headers



443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 443

def read_with_http_info(container_container_push_repository_version_href, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.read ...'
  end
  # verify the required parameter 'container_container_push_repository_version_href' is set
  if @api_client.config.client_side_validation && container_container_push_repository_version_href.nil?
    fail ArgumentError, "Missing the required parameter 'container_container_push_repository_version_href' when calling RepositoriesContainerVersionsApi.read"
  end
  # resource path
  local_var_path = '{container_container_push_repository_version_href}'.sub('{' + 'container_container_push_repository_version_href' + '}', CGI.escape(container_container_push_repository_version_href.to_s).gsub('%2F', '/'))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'RepositoryVersionResponse' 

  # auth_names
  auth_names = opts[:auth_names] || ['basicAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repair(container_container_push_repository_version_href, repository_version, opts = {}) ⇒ AsyncOperationResponse

Trigger an asynchronous task to repair a repository version.

Parameters:

  • container_container_push_repository_version_href (String)
  • repository_version (RepositoryVersion)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



565
566
567
568
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 565

def repair(container_container_push_repository_version_href, repository_version, opts = {})
  data, _status_code, _headers = repair_with_http_info(container_container_push_repository_version_href, repository_version, opts)
  data
end

#repair_0(container_container_repository_version_href, repository_version, opts = {}) ⇒ AsyncOperationResponse

Trigger an asynchronous task to repair a repository version.

Parameters:

  • container_container_repository_version_href (String)
  • repository_version (RepositoryVersion)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



633
634
635
636
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 633

def repair_0(container_container_repository_version_href, repository_version, opts = {})
  data, _status_code, _headers = repair_0_with_http_info(container_container_repository_version_href, repository_version, opts)
  data
end

#repair_0_with_http_info(container_container_repository_version_href, repository_version, opts = {}) ⇒ Array<(AsyncOperationResponse, Integer, Hash)>

Trigger an asynchronous task to repair a repository version.

Parameters:

  • container_container_repository_version_href (String)
  • repository_version (RepositoryVersion)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(AsyncOperationResponse, Integer, Hash)>)

    AsyncOperationResponse data, response status code and response headers



643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 643

def repair_0_with_http_info(container_container_repository_version_href, repository_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.repair_0 ...'
  end
  # verify the required parameter 'container_container_repository_version_href' is set
  if @api_client.config.client_side_validation && container_container_repository_version_href.nil?
    fail ArgumentError, "Missing the required parameter 'container_container_repository_version_href' when calling RepositoriesContainerVersionsApi.repair_0"
  end
  # verify the required parameter 'repository_version' is set
  if @api_client.config.client_side_validation && repository_version.nil?
    fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesContainerVersionsApi.repair_0"
  end
  # resource path
  local_var_path = '{container_container_repository_version_href}repair/'.sub('{' + 'container_container_repository_version_href' + '}', CGI.escape(container_container_repository_version_href.to_s).gsub('%2F', '/'))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(repository_version) 

  # return_type
  return_type = opts[:return_type] || 'AsyncOperationResponse' 

  # auth_names
  auth_names = opts[:auth_names] || ['basicAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#repair_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repair_with_http_info(container_container_push_repository_version_href, repository_version, opts = {}) ⇒ Array<(AsyncOperationResponse, Integer, Hash)>

Trigger an asynchronous task to repair a repository version.

Parameters:

  • container_container_push_repository_version_href (String)
  • repository_version (RepositoryVersion)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(AsyncOperationResponse, Integer, Hash)>)

    AsyncOperationResponse data, response status code and response headers



575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
# File 'lib/pulp_container_client/api/repositories_container_versions_api.rb', line 575

def repair_with_http_info(container_container_push_repository_version_href, repository_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.repair ...'
  end
  # verify the required parameter 'container_container_push_repository_version_href' is set
  if @api_client.config.client_side_validation && container_container_push_repository_version_href.nil?
    fail ArgumentError, "Missing the required parameter 'container_container_push_repository_version_href' when calling RepositoriesContainerVersionsApi.repair"
  end
  # verify the required parameter 'repository_version' is set
  if @api_client.config.client_side_validation && repository_version.nil?
    fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesContainerVersionsApi.repair"
  end
  # resource path
  local_var_path = '{container_container_push_repository_version_href}repair/'.sub('{' + 'container_container_push_repository_version_href' + '}', CGI.escape(container_container_push_repository_version_href.to_s).gsub('%2F', '/'))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(repository_version) 

  # return_type
  return_type = opts[:return_type] || 'AsyncOperationResponse' 

  # auth_names
  auth_names = opts[:auth_names] || ['basicAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end