Class: Nodeum::TapesApi

Inherits:
Object
  • Object
show all
Defined in:
lib/nodeum_sdk/api/tapes_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ TapesApi

Returns a new instance of TapesApi.



19
20
21
# File 'lib/nodeum_sdk/api/tapes_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/nodeum_sdk/api/tapes_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#index_tape_stats(opts = {}) ⇒ TapeStatCollection

List all tape statistics. **API Key Scope**: tape_stats / index

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    The number of items to display for pagination.

  • :offset (Integer)

    The number of items to skip for pagination.

Returns:



28
29
30
31
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 28

def index_tape_stats(opts = {})
  data, _status_code, _headers = index_tape_stats_with_http_info(opts)
  data
end

#index_tape_stats_with_http_info(opts = {}) ⇒ Array<(TapeStatCollection, Integer, Hash)>

List all tape statistics. **API Key Scope**: tape_stats / index

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    The number of items to display for pagination.

  • :offset (Integer)

    The number of items to skip for pagination.

Returns:

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

    TapeStatCollection data, response status code and response headers



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/nodeum_sdk/api/tapes_api.rb', line 39

def index_tape_stats_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.index_tape_stats ...'
  end
  # resource path
  local_var_path = '/tape_stats'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].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] || 'TapeStatCollection' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#index_tape_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#index_tapes(opts = {}) ⇒ TapeCollection

Lists all tapes. **API Key Scope**: tapes / index

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    The number of items to display for pagination.

  • :offset (Integer)

    The number of items to skip for pagination.

  • :sort_by (Array<String>)

    Sort results by attribute. Can sort on multiple attributes, separated by &#x60;|&#x60;. Order direction can be suffixing the attribute by either &#x60;:asc&#x60; (default) or &#x60;:desc&#x60;.

  • :id (String)

    Filter on id

  • :tape_library_id (String)

    Filter on tape library id

  • :pool_id (String)

    Filter on a pool id

  • :barcode (String)

    Filter on barcode

  • :location (String)

    Filter on location

  • :type (String)

    Filter on type

  • :locked (String)

    Filter on locked

  • :scratch (String)

    Filter on scratch

  • :cleaning (String)

    Filter on cleaning

  • :write_protect (String)

    Filter on write protect

  • :mounted (String)

    Filter on mounted

  • :ejected (String)

    Filter on ejected

  • :known (String)

    Filter on known

  • :mount_count (String)

    Filter on mount count

  • :date_in (String)

    Filter on date in

  • :date_move (String)

    Filter on date move

  • :free (String)

    Filter on free

  • :max (String)

    Filter on max

  • :last_size_update (String)

    Filter on last size update

  • :last_maintenance (String)

    Filter on last maintenance

  • :last_repack (String)

    Filter on last repack

  • :repack_status (String)

    Filter on repack status

  • :hash (String)

    Filter on hash

  • :force_import_type (String)

    Filter on force import type

  • :need_to_check (String)

    Filter on need to check

Returns:



116
117
118
119
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 116

def index_tapes(opts = {})
  data, _status_code, _headers = index_tapes_with_http_info(opts)
  data
end

#index_tapes_by_pool(pool_id, opts = {}) ⇒ TapeCollection

Lists all tapes. **API Key Scope**: tapes / index

Parameters:

  • pool_id (String)

    Numeric ID, or name of pool.

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

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    The number of items to display for pagination.

  • :offset (Integer)

    The number of items to skip for pagination.

  • :sort_by (Array<String>)

    Sort results by attribute. Can sort on multiple attributes, separated by &#x60;|&#x60;. Order direction can be suffixing the attribute by either &#x60;:asc&#x60; (default) or &#x60;:desc&#x60;.

  • :id (String)

    Filter on id

  • :tape_library_id (String)

    Filter on tape library id

  • :barcode (String)

    Filter on barcode

  • :location (String)

    Filter on location

  • :type (String)

    Filter on type

  • :locked (String)

    Filter on locked

  • :scratch (String)

    Filter on scratch

  • :cleaning (String)

    Filter on cleaning

  • :write_protect (String)

    Filter on write protect

  • :mounted (String)

    Filter on mounted

  • :ejected (String)

    Filter on ejected

  • :known (String)

    Filter on known

  • :mount_count (String)

    Filter on mount count

  • :date_in (String)

    Filter on date in

  • :date_move (String)

    Filter on date move

  • :free (String)

    Filter on free

  • :max (String)

    Filter on max

  • :last_size_update (String)

    Filter on last size update

  • :last_maintenance (String)

    Filter on last maintenance

  • :last_repack (String)

    Filter on last repack

  • :repack_status (String)

    Filter on repack status

  • :hash (String)

    Filter on hash

  • :force_import_type (String)

    Filter on force import type

  • :need_to_check (String)

    Filter on need to check

Returns:



256
257
258
259
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 256

def index_tapes_by_pool(pool_id, opts = {})
  data, _status_code, _headers = index_tapes_by_pool_with_http_info(pool_id, opts)
  data
end

#index_tapes_by_pool_with_http_info(pool_id, opts = {}) ⇒ Array<(TapeCollection, Integer, Hash)>

Lists all tapes. **API Key Scope**: tapes / index

Parameters:

  • pool_id (String)

    Numeric ID, or name of pool.

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

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    The number of items to display for pagination.

  • :offset (Integer)

    The number of items to skip for pagination.

  • :sort_by (Array<String>)

    Sort results by attribute. Can sort on multiple attributes, separated by &#x60;|&#x60;. Order direction can be suffixing the attribute by either &#x60;:asc&#x60; (default) or &#x60;:desc&#x60;.

  • :id (String)

    Filter on id

  • :tape_library_id (String)

    Filter on tape library id

  • :barcode (String)

    Filter on barcode

  • :location (String)

    Filter on location

  • :type (String)

    Filter on type

  • :locked (String)

    Filter on locked

  • :scratch (String)

    Filter on scratch

  • :cleaning (String)

    Filter on cleaning

  • :write_protect (String)

    Filter on write protect

  • :mounted (String)

    Filter on mounted

  • :ejected (String)

    Filter on ejected

  • :known (String)

    Filter on known

  • :mount_count (String)

    Filter on mount count

  • :date_in (String)

    Filter on date in

  • :date_move (String)

    Filter on date move

  • :free (String)

    Filter on free

  • :max (String)

    Filter on max

  • :last_size_update (String)

    Filter on last size update

  • :last_maintenance (String)

    Filter on last maintenance

  • :last_repack (String)

    Filter on last repack

  • :repack_status (String)

    Filter on repack status

  • :hash (String)

    Filter on hash

  • :force_import_type (String)

    Filter on force import type

  • :need_to_check (String)

    Filter on need to check

Returns:

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

    TapeCollection data, response status code and response headers



293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
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
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 293

def index_tapes_by_pool_with_http_info(pool_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.index_tapes_by_pool ...'
  end
  # verify the required parameter 'pool_id' is set
  if @api_client.config.client_side_validation && pool_id.nil?
    fail ArgumentError, "Missing the required parameter 'pool_id' when calling TapesApi.index_tapes_by_pool"
  end
  # resource path
  local_var_path = '/pools/{pool_id}/tapes'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'sort_by'] = @api_client.build_collection_param(opts[:'sort_by'], :pipe) if !opts[:'sort_by'].nil?
  query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
  query_params[:'tape_library_id'] = opts[:'tape_library_id'] if !opts[:'tape_library_id'].nil?
  query_params[:'barcode'] = opts[:'barcode'] if !opts[:'barcode'].nil?
  query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
  query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
  query_params[:'locked'] = opts[:'locked'] if !opts[:'locked'].nil?
  query_params[:'scratch'] = opts[:'scratch'] if !opts[:'scratch'].nil?
  query_params[:'cleaning'] = opts[:'cleaning'] if !opts[:'cleaning'].nil?
  query_params[:'write_protect'] = opts[:'write_protect'] if !opts[:'write_protect'].nil?
  query_params[:'mounted'] = opts[:'mounted'] if !opts[:'mounted'].nil?
  query_params[:'ejected'] = opts[:'ejected'] if !opts[:'ejected'].nil?
  query_params[:'known'] = opts[:'known'] if !opts[:'known'].nil?
  query_params[:'mount_count'] = opts[:'mount_count'] if !opts[:'mount_count'].nil?
  query_params[:'date_in'] = opts[:'date_in'] if !opts[:'date_in'].nil?
  query_params[:'date_move'] = opts[:'date_move'] if !opts[:'date_move'].nil?
  query_params[:'free'] = opts[:'free'] if !opts[:'free'].nil?
  query_params[:'max'] = opts[:'max'] if !opts[:'max'].nil?
  query_params[:'last_size_update'] = opts[:'last_size_update'] if !opts[:'last_size_update'].nil?
  query_params[:'last_maintenance'] = opts[:'last_maintenance'] if !opts[:'last_maintenance'].nil?
  query_params[:'last_repack'] = opts[:'last_repack'] if !opts[:'last_repack'].nil?
  query_params[:'repack_status'] = opts[:'repack_status'] if !opts[:'repack_status'].nil?
  query_params[:'hash'] = opts[:'hash'] if !opts[:'hash'].nil?
  query_params[:'force_import_type'] = opts[:'force_import_type'] if !opts[:'force_import_type'].nil?
  query_params[:'need_to_check'] = opts[:'need_to_check'] if !opts[:'need_to_check'].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] || 'TapeCollection' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#index_tapes_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#index_tapes_by_tape_library(tape_library_id, opts = {}) ⇒ TapeCollection

Lists all tapes. **API Key Scope**: tapes / index

Parameters:

  • tape_library_id (String)

    Numeric ID, serial, or name of tape library.

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

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    The number of items to display for pagination.

  • :offset (Integer)

    The number of items to skip for pagination.

  • :sort_by (Array<String>)

    Sort results by attribute. Can sort on multiple attributes, separated by &#x60;|&#x60;. Order direction can be suffixing the attribute by either &#x60;:asc&#x60; (default) or &#x60;:desc&#x60;.

  • :id (String)

    Filter on id

  • :pool_id (String)

    Filter on a pool id

  • :barcode (String)

    Filter on barcode

  • :location (String)

    Filter on location

  • :type (String)

    Filter on type

  • :locked (String)

    Filter on locked

  • :scratch (String)

    Filter on scratch

  • :cleaning (String)

    Filter on cleaning

  • :write_protect (String)

    Filter on write protect

  • :mounted (String)

    Filter on mounted

  • :ejected (String)

    Filter on ejected

  • :known (String)

    Filter on known

  • :mount_count (String)

    Filter on mount count

  • :date_in (String)

    Filter on date in

  • :date_move (String)

    Filter on date move

  • :free (String)

    Filter on free

  • :max (String)

    Filter on max

  • :last_size_update (String)

    Filter on last size update

  • :last_maintenance (String)

    Filter on last maintenance

  • :last_repack (String)

    Filter on last repack

  • :repack_status (String)

    Filter on repack status

  • :hash (String)

    Filter on hash

  • :force_import_type (String)

    Filter on force import type

  • :need_to_check (String)

    Filter on need to check

Returns:



399
400
401
402
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 399

def index_tapes_by_tape_library(tape_library_id, opts = {})
  data, _status_code, _headers = index_tapes_by_tape_library_with_http_info(tape_library_id, opts)
  data
end

#index_tapes_by_tape_library_with_http_info(tape_library_id, opts = {}) ⇒ Array<(TapeCollection, Integer, Hash)>

Lists all tapes. **API Key Scope**: tapes / index

Parameters:

  • tape_library_id (String)

    Numeric ID, serial, or name of tape library.

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

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    The number of items to display for pagination.

  • :offset (Integer)

    The number of items to skip for pagination.

  • :sort_by (Array<String>)

    Sort results by attribute. Can sort on multiple attributes, separated by &#x60;|&#x60;. Order direction can be suffixing the attribute by either &#x60;:asc&#x60; (default) or &#x60;:desc&#x60;.

  • :id (String)

    Filter on id

  • :pool_id (String)

    Filter on a pool id

  • :barcode (String)

    Filter on barcode

  • :location (String)

    Filter on location

  • :type (String)

    Filter on type

  • :locked (String)

    Filter on locked

  • :scratch (String)

    Filter on scratch

  • :cleaning (String)

    Filter on cleaning

  • :write_protect (String)

    Filter on write protect

  • :mounted (String)

    Filter on mounted

  • :ejected (String)

    Filter on ejected

  • :known (String)

    Filter on known

  • :mount_count (String)

    Filter on mount count

  • :date_in (String)

    Filter on date in

  • :date_move (String)

    Filter on date move

  • :free (String)

    Filter on free

  • :max (String)

    Filter on max

  • :last_size_update (String)

    Filter on last size update

  • :last_maintenance (String)

    Filter on last maintenance

  • :last_repack (String)

    Filter on last repack

  • :repack_status (String)

    Filter on repack status

  • :hash (String)

    Filter on hash

  • :force_import_type (String)

    Filter on force import type

  • :need_to_check (String)

    Filter on need to check

Returns:

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

    TapeCollection data, response status code and response headers



436
437
438
439
440
441
442
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
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 436

def index_tapes_by_tape_library_with_http_info(tape_library_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.index_tapes_by_tape_library ...'
  end
  # verify the required parameter 'tape_library_id' is set
  if @api_client.config.client_side_validation && tape_library_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_library_id' when calling TapesApi.index_tapes_by_tape_library"
  end
  # resource path
  local_var_path = '/tape_libraries/{tape_library_id}/tapes'.sub('{' + 'tape_library_id' + '}', CGI.escape(tape_library_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'sort_by'] = @api_client.build_collection_param(opts[:'sort_by'], :pipe) if !opts[:'sort_by'].nil?
  query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
  query_params[:'pool_id'] = opts[:'pool_id'] if !opts[:'pool_id'].nil?
  query_params[:'barcode'] = opts[:'barcode'] if !opts[:'barcode'].nil?
  query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
  query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
  query_params[:'locked'] = opts[:'locked'] if !opts[:'locked'].nil?
  query_params[:'scratch'] = opts[:'scratch'] if !opts[:'scratch'].nil?
  query_params[:'cleaning'] = opts[:'cleaning'] if !opts[:'cleaning'].nil?
  query_params[:'write_protect'] = opts[:'write_protect'] if !opts[:'write_protect'].nil?
  query_params[:'mounted'] = opts[:'mounted'] if !opts[:'mounted'].nil?
  query_params[:'ejected'] = opts[:'ejected'] if !opts[:'ejected'].nil?
  query_params[:'known'] = opts[:'known'] if !opts[:'known'].nil?
  query_params[:'mount_count'] = opts[:'mount_count'] if !opts[:'mount_count'].nil?
  query_params[:'date_in'] = opts[:'date_in'] if !opts[:'date_in'].nil?
  query_params[:'date_move'] = opts[:'date_move'] if !opts[:'date_move'].nil?
  query_params[:'free'] = opts[:'free'] if !opts[:'free'].nil?
  query_params[:'max'] = opts[:'max'] if !opts[:'max'].nil?
  query_params[:'last_size_update'] = opts[:'last_size_update'] if !opts[:'last_size_update'].nil?
  query_params[:'last_maintenance'] = opts[:'last_maintenance'] if !opts[:'last_maintenance'].nil?
  query_params[:'last_repack'] = opts[:'last_repack'] if !opts[:'last_repack'].nil?
  query_params[:'repack_status'] = opts[:'repack_status'] if !opts[:'repack_status'].nil?
  query_params[:'hash'] = opts[:'hash'] if !opts[:'hash'].nil?
  query_params[:'force_import_type'] = opts[:'force_import_type'] if !opts[:'force_import_type'].nil?
  query_params[:'need_to_check'] = opts[:'need_to_check'] if !opts[:'need_to_check'].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] || 'TapeCollection' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#index_tapes_by_tape_library\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#index_tapes_with_http_info(opts = {}) ⇒ Array<(TapeCollection, Integer, Hash)>

Lists all tapes. **API Key Scope**: tapes / index

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    The number of items to display for pagination.

  • :offset (Integer)

    The number of items to skip for pagination.

  • :sort_by (Array<String>)

    Sort results by attribute. Can sort on multiple attributes, separated by &#x60;|&#x60;. Order direction can be suffixing the attribute by either &#x60;:asc&#x60; (default) or &#x60;:desc&#x60;.

  • :id (String)

    Filter on id

  • :tape_library_id (String)

    Filter on tape library id

  • :pool_id (String)

    Filter on a pool id

  • :barcode (String)

    Filter on barcode

  • :location (String)

    Filter on location

  • :type (String)

    Filter on type

  • :locked (String)

    Filter on locked

  • :scratch (String)

    Filter on scratch

  • :cleaning (String)

    Filter on cleaning

  • :write_protect (String)

    Filter on write protect

  • :mounted (String)

    Filter on mounted

  • :ejected (String)

    Filter on ejected

  • :known (String)

    Filter on known

  • :mount_count (String)

    Filter on mount count

  • :date_in (String)

    Filter on date in

  • :date_move (String)

    Filter on date move

  • :free (String)

    Filter on free

  • :max (String)

    Filter on max

  • :last_size_update (String)

    Filter on last size update

  • :last_maintenance (String)

    Filter on last maintenance

  • :last_repack (String)

    Filter on last repack

  • :repack_status (String)

    Filter on repack status

  • :hash (String)

    Filter on hash

  • :force_import_type (String)

    Filter on force import type

  • :need_to_check (String)

    Filter on need to check

Returns:

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

    TapeCollection data, response status code and response headers



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 153

def index_tapes_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.index_tapes ...'
  end
  # resource path
  local_var_path = '/tapes'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'sort_by'] = @api_client.build_collection_param(opts[:'sort_by'], :pipe) if !opts[:'sort_by'].nil?
  query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
  query_params[:'tape_library_id'] = opts[:'tape_library_id'] if !opts[:'tape_library_id'].nil?
  query_params[:'pool_id'] = opts[:'pool_id'] if !opts[:'pool_id'].nil?
  query_params[:'barcode'] = opts[:'barcode'] if !opts[:'barcode'].nil?
  query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
  query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
  query_params[:'locked'] = opts[:'locked'] if !opts[:'locked'].nil?
  query_params[:'scratch'] = opts[:'scratch'] if !opts[:'scratch'].nil?
  query_params[:'cleaning'] = opts[:'cleaning'] if !opts[:'cleaning'].nil?
  query_params[:'write_protect'] = opts[:'write_protect'] if !opts[:'write_protect'].nil?
  query_params[:'mounted'] = opts[:'mounted'] if !opts[:'mounted'].nil?
  query_params[:'ejected'] = opts[:'ejected'] if !opts[:'ejected'].nil?
  query_params[:'known'] = opts[:'known'] if !opts[:'known'].nil?
  query_params[:'mount_count'] = opts[:'mount_count'] if !opts[:'mount_count'].nil?
  query_params[:'date_in'] = opts[:'date_in'] if !opts[:'date_in'].nil?
  query_params[:'date_move'] = opts[:'date_move'] if !opts[:'date_move'].nil?
  query_params[:'free'] = opts[:'free'] if !opts[:'free'].nil?
  query_params[:'max'] = opts[:'max'] if !opts[:'max'].nil?
  query_params[:'last_size_update'] = opts[:'last_size_update'] if !opts[:'last_size_update'].nil?
  query_params[:'last_maintenance'] = opts[:'last_maintenance'] if !opts[:'last_maintenance'].nil?
  query_params[:'last_repack'] = opts[:'last_repack'] if !opts[:'last_repack'].nil?
  query_params[:'repack_status'] = opts[:'repack_status'] if !opts[:'repack_status'].nil?
  query_params[:'hash'] = opts[:'hash'] if !opts[:'hash'].nil?
  query_params[:'force_import_type'] = opts[:'force_import_type'] if !opts[:'force_import_type'].nil?
  query_params[:'need_to_check'] = opts[:'need_to_check'] if !opts[:'need_to_check'].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] || 'TapeCollection' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#index_tapes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#mount_status_tape(tape_id, opts = {}) ⇒ MountStatus

Get mount status of Tape. **API Key Scope**: tapes / mount_status

Parameters:

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:



515
516
517
518
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 515

def mount_status_tape(tape_id, opts = {})
  data, _status_code, _headers = mount_status_tape_with_http_info(tape_id, opts)
  data
end

#mount_status_tape_by_pool(pool_id, tape_id, opts = {}) ⇒ MountStatus

Get mount status of Tape. **API Key Scope**: tapes / mount_status

Parameters:

  • pool_id (String)

    Numeric ID, or name of pool.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:



578
579
580
581
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 578

def mount_status_tape_by_pool(pool_id, tape_id, opts = {})
  data, _status_code, _headers = mount_status_tape_by_pool_with_http_info(pool_id, tape_id, opts)
  data
end

#mount_status_tape_by_pool_with_http_info(pool_id, tape_id, opts = {}) ⇒ Array<(MountStatus, Integer, Hash)>

Get mount status of Tape. **API Key Scope**: tapes / mount_status

Parameters:

  • pool_id (String)

    Numeric ID, or name of pool.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:

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

    MountStatus data, response status code and response headers



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
627
628
629
630
631
632
633
634
635
636
637
638
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 589

def mount_status_tape_by_pool_with_http_info(pool_id, tape_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.mount_status_tape_by_pool ...'
  end
  # verify the required parameter 'pool_id' is set
  if @api_client.config.client_side_validation && pool_id.nil?
    fail ArgumentError, "Missing the required parameter 'pool_id' when calling TapesApi.mount_status_tape_by_pool"
  end
  # verify the required parameter 'tape_id' is set
  if @api_client.config.client_side_validation && tape_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_id' when calling TapesApi.mount_status_tape_by_pool"
  end
  # resource path
  local_var_path = '/pools/{pool_id}/tapes/{tape_id}/mount'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'tape_id' + '}', CGI.escape(tape_id.to_s))

  # 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] || 'MountStatus' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#mount_status_tape_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#mount_status_tape_by_tape_library(tape_library_id, tape_id, opts = {}) ⇒ MountStatus

Get mount status of Tape. **API Key Scope**: tapes / mount_status

Parameters:

  • tape_library_id (String)

    Numeric ID, serial, or name of tape library.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:



646
647
648
649
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 646

def mount_status_tape_by_tape_library(tape_library_id, tape_id, opts = {})
  data, _status_code, _headers = mount_status_tape_by_tape_library_with_http_info(tape_library_id, tape_id, opts)
  data
end

#mount_status_tape_by_tape_library_with_http_info(tape_library_id, tape_id, opts = {}) ⇒ Array<(MountStatus, Integer, Hash)>

Get mount status of Tape. **API Key Scope**: tapes / mount_status

Parameters:

  • tape_library_id (String)

    Numeric ID, serial, or name of tape library.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:

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

    MountStatus data, response status code and response headers



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
695
696
697
698
699
700
701
702
703
704
705
706
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 657

def mount_status_tape_by_tape_library_with_http_info(tape_library_id, tape_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.mount_status_tape_by_tape_library ...'
  end
  # verify the required parameter 'tape_library_id' is set
  if @api_client.config.client_side_validation && tape_library_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_library_id' when calling TapesApi.mount_status_tape_by_tape_library"
  end
  # verify the required parameter 'tape_id' is set
  if @api_client.config.client_side_validation && tape_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_id' when calling TapesApi.mount_status_tape_by_tape_library"
  end
  # resource path
  local_var_path = '/tape_libraries/{tape_library_id}/tapes/{tape_id}/mount'.sub('{' + 'tape_library_id' + '}', CGI.escape(tape_library_id.to_s)).sub('{' + 'tape_id' + '}', CGI.escape(tape_id.to_s))

  # 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] || 'MountStatus' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#mount_status_tape_by_tape_library\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#mount_status_tape_with_http_info(tape_id, opts = {}) ⇒ Array<(MountStatus, Integer, Hash)>

Get mount status of Tape. **API Key Scope**: tapes / mount_status

Parameters:

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:

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

    MountStatus data, response status code and response headers



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
559
560
561
562
563
564
565
566
567
568
569
570
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 525

def mount_status_tape_with_http_info(tape_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.mount_status_tape ...'
  end
  # verify the required parameter 'tape_id' is set
  if @api_client.config.client_side_validation && tape_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_id' when calling TapesApi.mount_status_tape"
  end
  # resource path
  local_var_path = '/tapes/{tape_id}/mount'.sub('{' + 'tape_id' + '}', CGI.escape(tape_id.to_s))

  # 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] || 'MountStatus' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#mount_status_tape\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#show_tape(tape_id, opts = {}) ⇒ Tape

Displays a specific tape. **API Key Scope**: tapes / show

Parameters:

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:



713
714
715
716
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 713

def show_tape(tape_id, opts = {})
  data, _status_code, _headers = show_tape_with_http_info(tape_id, opts)
  data
end

#show_tape_by_pool(pool_id, tape_id, opts = {}) ⇒ Tape

Displays a specific tape. **API Key Scope**: tapes / show

Parameters:

  • pool_id (String)

    Numeric ID, or name of pool.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:



776
777
778
779
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 776

def show_tape_by_pool(pool_id, tape_id, opts = {})
  data, _status_code, _headers = show_tape_by_pool_with_http_info(pool_id, tape_id, opts)
  data
end

#show_tape_by_pool_with_http_info(pool_id, tape_id, opts = {}) ⇒ Array<(Tape, Integer, Hash)>

Displays a specific tape. **API Key Scope**: tapes / show

Parameters:

  • pool_id (String)

    Numeric ID, or name of pool.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:

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

    Tape data, response status code and response headers



787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 787

def show_tape_by_pool_with_http_info(pool_id, tape_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.show_tape_by_pool ...'
  end
  # verify the required parameter 'pool_id' is set
  if @api_client.config.client_side_validation && pool_id.nil?
    fail ArgumentError, "Missing the required parameter 'pool_id' when calling TapesApi.show_tape_by_pool"
  end
  # verify the required parameter 'tape_id' is set
  if @api_client.config.client_side_validation && tape_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_id' when calling TapesApi.show_tape_by_pool"
  end
  # resource path
  local_var_path = '/pools/{pool_id}/tapes/{tape_id}'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'tape_id' + '}', CGI.escape(tape_id.to_s))

  # 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] || 'Tape' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#show_tape_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#show_tape_by_tape_library(tape_library_id, tape_id, opts = {}) ⇒ Tape

Displays a specific tape. **API Key Scope**: tapes / show

Parameters:

  • tape_library_id (String)

    Numeric ID, serial, or name of tape library.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:



844
845
846
847
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 844

def show_tape_by_tape_library(tape_library_id, tape_id, opts = {})
  data, _status_code, _headers = show_tape_by_tape_library_with_http_info(tape_library_id, tape_id, opts)
  data
end

#show_tape_by_tape_library_with_http_info(tape_library_id, tape_id, opts = {}) ⇒ Array<(Tape, Integer, Hash)>

Displays a specific tape. **API Key Scope**: tapes / show

Parameters:

  • tape_library_id (String)

    Numeric ID, serial, or name of tape library.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:

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

    Tape data, response status code and response headers



855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 855

def show_tape_by_tape_library_with_http_info(tape_library_id, tape_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.show_tape_by_tape_library ...'
  end
  # verify the required parameter 'tape_library_id' is set
  if @api_client.config.client_side_validation && tape_library_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_library_id' when calling TapesApi.show_tape_by_tape_library"
  end
  # verify the required parameter 'tape_id' is set
  if @api_client.config.client_side_validation && tape_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_id' when calling TapesApi.show_tape_by_tape_library"
  end
  # resource path
  local_var_path = '/tape_libraries/{tape_library_id}/tapes/{tape_id}'.sub('{' + 'tape_library_id' + '}', CGI.escape(tape_library_id.to_s)).sub('{' + 'tape_id' + '}', CGI.escape(tape_id.to_s))

  # 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] || 'Tape' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#show_tape_by_tape_library\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#show_tape_stat(tape_id, opts = {}) ⇒ TapeStat

Display statistic for a specific tape. **API Key Scope**: tape_stats / show

Parameters:

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:



911
912
913
914
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 911

def show_tape_stat(tape_id, opts = {})
  data, _status_code, _headers = show_tape_stat_with_http_info(tape_id, opts)
  data
end

#show_tape_stat_by_pool(pool_id, tape_id, opts = {}) ⇒ TapeStat

Display statistic for a specific tape. **API Key Scope**: tape_stats / show

Parameters:

  • pool_id (String)

    Numeric ID, or name of pool.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:



974
975
976
977
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 974

def show_tape_stat_by_pool(pool_id, tape_id, opts = {})
  data, _status_code, _headers = show_tape_stat_by_pool_with_http_info(pool_id, tape_id, opts)
  data
end

#show_tape_stat_by_pool_with_http_info(pool_id, tape_id, opts = {}) ⇒ Array<(TapeStat, Integer, Hash)>

Display statistic for a specific tape. **API Key Scope**: tape_stats / show

Parameters:

  • pool_id (String)

    Numeric ID, or name of pool.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:

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

    TapeStat data, response status code and response headers



985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 985

def show_tape_stat_by_pool_with_http_info(pool_id, tape_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.show_tape_stat_by_pool ...'
  end
  # verify the required parameter 'pool_id' is set
  if @api_client.config.client_side_validation && pool_id.nil?
    fail ArgumentError, "Missing the required parameter 'pool_id' when calling TapesApi.show_tape_stat_by_pool"
  end
  # verify the required parameter 'tape_id' is set
  if @api_client.config.client_side_validation && tape_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_id' when calling TapesApi.show_tape_stat_by_pool"
  end
  # resource path
  local_var_path = '/pools/{pool_id}/tapes/{tape_id}/tape_stat'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'tape_id' + '}', CGI.escape(tape_id.to_s))

  # 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] || 'TapeStat' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#show_tape_stat_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#show_tape_stat_by_tape_library(tape_library_id, tape_id, opts = {}) ⇒ TapeStat

Display statistic for a specific tape. **API Key Scope**: tape_stats / show

Parameters:

  • tape_library_id (String)

    Numeric ID, serial, or name of tape library.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:



1042
1043
1044
1045
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 1042

def show_tape_stat_by_tape_library(tape_library_id, tape_id, opts = {})
  data, _status_code, _headers = show_tape_stat_by_tape_library_with_http_info(tape_library_id, tape_id, opts)
  data
end

#show_tape_stat_by_tape_library_with_http_info(tape_library_id, tape_id, opts = {}) ⇒ Array<(TapeStat, Integer, Hash)>

Display statistic for a specific tape. **API Key Scope**: tape_stats / show

Parameters:

  • tape_library_id (String)

    Numeric ID, serial, or name of tape library.

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:

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

    TapeStat data, response status code and response headers



1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 1053

def show_tape_stat_by_tape_library_with_http_info(tape_library_id, tape_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.show_tape_stat_by_tape_library ...'
  end
  # verify the required parameter 'tape_library_id' is set
  if @api_client.config.client_side_validation && tape_library_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_library_id' when calling TapesApi.show_tape_stat_by_tape_library"
  end
  # verify the required parameter 'tape_id' is set
  if @api_client.config.client_side_validation && tape_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_id' when calling TapesApi.show_tape_stat_by_tape_library"
  end
  # resource path
  local_var_path = '/tape_libraries/{tape_library_id}/tapes/{tape_id}/tape_stat'.sub('{' + 'tape_library_id' + '}', CGI.escape(tape_library_id.to_s)).sub('{' + 'tape_id' + '}', CGI.escape(tape_id.to_s))

  # 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] || 'TapeStat' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#show_tape_stat_by_tape_library\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#show_tape_stat_with_http_info(tape_id, opts = {}) ⇒ Array<(TapeStat, Integer, Hash)>

Display statistic for a specific tape. **API Key Scope**: tape_stats / show

Parameters:

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:

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

    TapeStat data, response status code and response headers



921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 921

def show_tape_stat_with_http_info(tape_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.show_tape_stat ...'
  end
  # verify the required parameter 'tape_id' is set
  if @api_client.config.client_side_validation && tape_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_id' when calling TapesApi.show_tape_stat"
  end
  # resource path
  local_var_path = '/tapes/{tape_id}/tape_stat'.sub('{' + 'tape_id' + '}', CGI.escape(tape_id.to_s))

  # 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] || 'TapeStat' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#show_tape_stat\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#show_tape_with_http_info(tape_id, opts = {}) ⇒ Array<(Tape, Integer, Hash)>

Displays a specific tape. **API Key Scope**: tapes / show

Parameters:

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:

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

    Tape data, response status code and response headers



723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 723

def show_tape_with_http_info(tape_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.show_tape ...'
  end
  # verify the required parameter 'tape_id' is set
  if @api_client.config.client_side_validation && tape_id.nil?
    fail ArgumentError, "Missing the required parameter 'tape_id' when calling TapesApi.show_tape"
  end
  # resource path
  local_var_path = '/tapes/{tape_id}'.sub('{' + 'tape_id' + '}', CGI.escape(tape_id.to_s))

  # 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] || 'Tape' 

  # auth_names
  auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']

  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: TapesApi#show_tape\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end