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

#destroy_tape(tape_id, opts = {}) ⇒ nil

Destroys a specific tape. Only when it’s an orphan. **API Key Scope**: tapes / destroy

Parameters:

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:

  • (nil)


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

def destroy_tape(tape_id, opts = {})
  destroy_tape_with_http_info(tape_id, opts)
  nil
end

#destroy_tape_with_http_info(tape_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Destroys a specific tape. Only when it&#39;s an orphan. **API Key Scope**: tapes / destroy

Parameters:

  • tape_id (String)

    Numeric ID, or barcode of tape.

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

    the optional parameters

Returns:

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

    nil, 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
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 37

def destroy_tape_with_http_info(tape_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TapesApi.destroy_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.destroy_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] || {}

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

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

  # return_type
  return_type = opts[:return_type] 

  # 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(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TapesApi#destroy_tape\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#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:



88
89
90
91
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 88

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



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
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 99

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:



176
177
178
179
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 176

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:



316
317
318
319
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 316

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



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
423
424
425
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 353

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:



459
460
461
462
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 459

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



496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
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
559
560
561
562
563
564
565
566
567
568
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 496

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



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
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 213

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:



575
576
577
578
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 575

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:



638
639
640
641
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 638

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



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
695
696
697
698
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 649

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:



706
707
708
709
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 706

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



717
718
719
720
721
722
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
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 717

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



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
627
628
629
630
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 585

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:



773
774
775
776
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 773

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:



836
837
838
839
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 836

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



847
848
849
850
851
852
853
854
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
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 847

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:



904
905
906
907
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 904

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



915
916
917
918
919
920
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
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 915

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:



971
972
973
974
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 971

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:



1034
1035
1036
1037
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 1034

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



1045
1046
1047
1048
1049
1050
1051
1052
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
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 1045

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:



1102
1103
1104
1105
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 1102

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



1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 1113

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



981
982
983
984
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
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 981

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



783
784
785
786
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
# File 'lib/nodeum_sdk/api/tapes_api.rb', line 783

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