nodeum_sdk 1.87.0 → 1.88.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1311742cbe9bf6e17d41c3725d33f79ad1afcbc20fe405be8a33f49387c37b1
4
- data.tar.gz: 9ac8bb932217b2562245cd2913eb824c991a1644c07271d929778447078ea2d9
3
+ metadata.gz: 75ab8d0118e55ac0b970102a5663b734d425410723bf17a70d78e1d724c578b9
4
+ data.tar.gz: ed9d998a876cc863288c46c80961cbbe9361fecf6d43b7cdb98e23ffab1e85a0
5
5
  SHA512:
6
- metadata.gz: 3102be8df8e574e11617547acabbde1627baa83ecc9554cb1407c1da2bd94804e192aedd65ba0674c9c90804d963c9d2a469c11f3e08d7be7f1ee09e82be14a1
7
- data.tar.gz: f29691ecc85a4fa946d2c2fcbb9acf475d81966faf4db28a7979d18432792ff7e99964afc7e077347494b2caeb41f92b7cb030b0951b1ed106a64f2306e68894
6
+ metadata.gz: 3a52283a5fadd347e4e7da4a004b309e64904f51238ba50fc4e16390d2ade1bb1f83fc8a7c082b5b01e4bd76847157be8831476a1981f49183f3e2b36674cc6b
7
+ data.tar.gz: 22f4f4d424d7f34c2778397fc80f0cdedf8fe82865127770243833fe274e4bf3e46f0f5b6b1cf62adb7df2d6668bee22dcc2d0a0ccf31c3c1d39188bb0107788
data/README.md CHANGED
@@ -52,7 +52,7 @@ Some operators can be added to the value as a prefix:
52
52
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
53
53
 
54
54
  - API version: 2.1.0
55
- - Package version: 1.87.0
55
+ - Package version: 1.88.0
56
56
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
57
57
  For more information, please visit [https://www.nodeum.io/](https://www.nodeum.io/)
58
58
 
@@ -69,16 +69,16 @@ gem build nodeum_sdk.gemspec
69
69
  Then either install the gem locally:
70
70
 
71
71
  ```shell
72
- gem install ./nodeum_sdk-1.87.0.gem
72
+ gem install ./nodeum_sdk-1.88.0.gem
73
73
  ```
74
74
 
75
- (for development, run `gem install --dev ./nodeum_sdk-1.87.0.gem` to install the development dependencies)
75
+ (for development, run `gem install --dev ./nodeum_sdk-1.88.0.gem` to install the development dependencies)
76
76
 
77
77
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
78
78
 
79
79
  Finally add this to the Gemfile:
80
80
 
81
- gem 'nodeum_sdk', '~> 1.87.0'
81
+ gem 'nodeum_sdk', '~> 1.88.0'
82
82
 
83
83
  ### Install from Git
84
84
 
@@ -282,6 +282,7 @@ Class | Method | HTTP request | Description
282
282
  *Nodeum::TapeLibrariesApi* | [**index_tape_library_devices**](docs/TapeLibrariesApi.md#index_tape_library_devices) | **GET** /tape_libraries/-/devices | Lists tape libraries devices.
283
283
  *Nodeum::TapeLibrariesApi* | [**show_tape_library**](docs/TapeLibrariesApi.md#show_tape_library) | **GET** /tape_libraries/{tape_library_id} | Displays a specific tape library.
284
284
  *Nodeum::TapeLibrariesApi* | [**update_tape_library**](docs/TapeLibrariesApi.md#update_tape_library) | **PUT** /tape_libraries/{tape_library_id} | Updates a specific tape library.
285
+ *Nodeum::TapesApi* | [**destroy_tape**](docs/TapesApi.md#destroy_tape) | **DELETE** /tapes/{tape_id} | Destroys a specific tape. Only when it's an orphan.
285
286
  *Nodeum::TapesApi* | [**index_tape_stats**](docs/TapesApi.md#index_tape_stats) | **GET** /tape_stats | List all tape statistics.
286
287
  *Nodeum::TapesApi* | [**index_tapes**](docs/TapesApi.md#index_tapes) | **GET** /tapes | Lists all tapes.
287
288
  *Nodeum::TapesApi* | [**index_tapes_by_pool**](docs/TapesApi.md#index_tapes_by_pool) | **GET** /pools/{pool_id}/tapes | Lists all tapes.
@@ -16,6 +16,9 @@ Name | Type | Description | Notes
16
16
  **access_date** | **String** | | [optional] [readonly]
17
17
  **uid** | **Integer** | | [optional] [readonly]
18
18
  **gid** | **Integer** | | [optional] [readonly]
19
+ **in_cache** | **Integer** | | [optional] [readonly]
20
+ **offline** | **Integer** | | [optional] [readonly]
21
+ **extern** | **Integer** | | [optional] [readonly]
19
22
 
20
23
  ## Code Sample
21
24
 
@@ -33,7 +36,10 @@ instance = Nodeum::NodeumFile.new(id: 105,
33
36
  modification_date: 2018-12-10T15:29:23.000Z,
34
37
  access_date: 2018-12-10T15:27:51.000Z,
35
38
  uid: 1000,
36
- gid: 1000)
39
+ gid: 1000,
40
+ in_cache: 1,
41
+ offline: 1,
42
+ extern: 1)
37
43
  ```
38
44
 
39
45
 
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **type** | **String** | | [optional]
11
11
  **content** | **String** | | [optional]
12
12
  **primary_id** | **Integer** | | [optional] [readonly]
13
+ **storage_id** | **Integer** | For pool of tapes, used to link to a tape library id | [optional]
13
14
 
14
15
  ## Code Sample
15
16
 
@@ -21,7 +22,8 @@ instance = Nodeum::Pool.new(id: 6,
21
22
  comment: ,
22
23
  type: offline_archive,
23
24
  content: null,
24
- primary_id: 100)
25
+ primary_id: 100,
26
+ storage_id: 2)
25
27
  ```
26
28
 
27
29
 
@@ -4,6 +4,7 @@ All URIs are relative to *http://localhost/api/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**destroy_tape**](TapesApi.md#destroy_tape) | **DELETE** /tapes/{tape_id} | Destroys a specific tape. Only when it's an orphan.
7
8
  [**index_tape_stats**](TapesApi.md#index_tape_stats) | **GET** /tape_stats | List all tape statistics.
8
9
  [**index_tapes**](TapesApi.md#index_tapes) | **GET** /tapes | Lists all tapes.
9
10
  [**index_tapes_by_pool**](TapesApi.md#index_tapes_by_pool) | **GET** /pools/{pool_id}/tapes | Lists all tapes.
@@ -20,6 +21,63 @@ Method | HTTP request | Description
20
21
 
21
22
 
22
23
 
24
+ ## destroy_tape
25
+
26
+ > destroy_tape(tape_id)
27
+
28
+ Destroys a specific tape. Only when it's an orphan.
29
+
30
+ **API Key Scope**: tapes / destroy
31
+
32
+ ### Example
33
+
34
+ ```ruby
35
+ # load the gem
36
+ require 'nodeum_sdk'
37
+ # setup authorization
38
+ Nodeum.configure do |config|
39
+ # Configure HTTP basic authorization: BasicAuth
40
+ config.username = 'YOUR USERNAME'
41
+ config.password = 'YOUR PASSWORD'
42
+
43
+ # Configure API key authorization: BearerAuth
44
+ config.api_key['Authorization'] = 'YOUR API KEY'
45
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
46
+ #config.api_key_prefix['Authorization'] = 'Bearer'
47
+ end
48
+
49
+ api_instance = Nodeum::TapesApi.new
50
+ tape_id = 'tape_id_example' # String | Numeric ID, or barcode of tape.
51
+
52
+ begin
53
+ #Destroys a specific tape. Only when it's an orphan.
54
+ api_instance.destroy_tape(tape_id)
55
+ rescue Nodeum::ApiError => e
56
+ puts "Exception when calling TapesApi->destroy_tape: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+
63
+ Name | Type | Description | Notes
64
+ ------------- | ------------- | ------------- | -------------
65
+ **tape_id** | **String**| Numeric ID, or barcode of tape. |
66
+
67
+ ### Return type
68
+
69
+ nil (empty response body)
70
+
71
+ ### Authorization
72
+
73
+ [BasicAuth](../README.md#BasicAuth), [BearerAuth](../README.md#BearerAuth)
74
+
75
+ ### HTTP request headers
76
+
77
+ - **Content-Type**: Not defined
78
+ - **Accept**: Not defined
79
+
80
+
23
81
  ## index_tape_stats
24
82
 
25
83
  > TapeStatCollection index_tape_stats(opts)
@@ -19,6 +19,66 @@ module Nodeum
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Destroys a specific tape. Only when it's an orphan.
23
+ # **API Key Scope**: tapes / destroy
24
+ # @param tape_id [String] Numeric ID, or barcode of tape.
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [nil]
27
+ def destroy_tape(tape_id, opts = {})
28
+ destroy_tape_with_http_info(tape_id, opts)
29
+ nil
30
+ end
31
+
32
+ # Destroys a specific tape. Only when it's an orphan.
33
+ # **API Key Scope**: tapes / destroy
34
+ # @param tape_id [String] Numeric ID, or barcode of tape.
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
+ def destroy_tape_with_http_info(tape_id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: TapesApi.destroy_tape ...'
40
+ end
41
+ # verify the required parameter 'tape_id' is set
42
+ if @api_client.config.client_side_validation && tape_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'tape_id' when calling TapesApi.destroy_tape"
44
+ end
45
+ # resource path
46
+ local_var_path = '/tapes/{tape_id}'.sub('{' + 'tape_id' + '}', CGI.escape(tape_id.to_s))
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:body]
59
+
60
+ # return_type
61
+ return_type = opts[:return_type]
62
+
63
+ # auth_names
64
+ auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
65
+
66
+ new_options = opts.merge(
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => return_type
73
+ )
74
+
75
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
76
+ if @api_client.config.debugging
77
+ @api_client.config.logger.debug "API called: TapesApi#destroy_tape\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ end
79
+ return data, status_code, headers
80
+ end
81
+
22
82
  # List all tape statistics.
23
83
  # **API Key Scope**: tape_stats / index
24
84
  # @param [Hash] opts the optional parameters
@@ -38,6 +38,12 @@ module Nodeum
38
38
 
39
39
  attr_accessor :gid
40
40
 
41
+ attr_accessor :in_cache
42
+
43
+ attr_accessor :offline
44
+
45
+ attr_accessor :extern
46
+
41
47
  class EnumAttributeValidator
42
48
  attr_reader :datatype
43
49
  attr_reader :allowable_values
@@ -74,7 +80,10 @@ module Nodeum
74
80
  :'modification_date' => :'modification_date',
75
81
  :'access_date' => :'access_date',
76
82
  :'uid' => :'uid',
77
- :'gid' => :'gid'
83
+ :'gid' => :'gid',
84
+ :'in_cache' => :'in_cache',
85
+ :'offline' => :'offline',
86
+ :'extern' => :'extern'
78
87
  }
79
88
  end
80
89
 
@@ -92,7 +101,10 @@ module Nodeum
92
101
  :'modification_date' => :'String',
93
102
  :'access_date' => :'String',
94
103
  :'uid' => :'Integer',
95
- :'gid' => :'Integer'
104
+ :'gid' => :'Integer',
105
+ :'in_cache' => :'Integer',
106
+ :'offline' => :'Integer',
107
+ :'extern' => :'Integer'
96
108
  }
97
109
  end
98
110
 
@@ -164,6 +176,18 @@ module Nodeum
164
176
  if attributes.key?(:'gid')
165
177
  self.gid = attributes[:'gid']
166
178
  end
179
+
180
+ if attributes.key?(:'in_cache')
181
+ self.in_cache = attributes[:'in_cache']
182
+ end
183
+
184
+ if attributes.key?(:'offline')
185
+ self.offline = attributes[:'offline']
186
+ end
187
+
188
+ if attributes.key?(:'extern')
189
+ self.extern = attributes[:'extern']
190
+ end
167
191
  end
168
192
 
169
193
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -207,7 +231,10 @@ module Nodeum
207
231
  modification_date == o.modification_date &&
208
232
  access_date == o.access_date &&
209
233
  uid == o.uid &&
210
- gid == o.gid
234
+ gid == o.gid &&
235
+ in_cache == o.in_cache &&
236
+ offline == o.offline &&
237
+ extern == o.extern
211
238
  end
212
239
 
213
240
  # @see the `==` method
@@ -219,7 +246,7 @@ module Nodeum
219
246
  # Calculates hash code according to all attributes.
220
247
  # @return [Integer] Hash code
221
248
  def hash
222
- [id, name, parent, primary_id, type, permission, size, change_date, modification_date, access_date, uid, gid].hash
249
+ [id, name, parent, primary_id, type, permission, size, change_date, modification_date, access_date, uid, gid, in_cache, offline, extern].hash
223
250
  end
224
251
 
225
252
  # Builds the object from hash
@@ -26,6 +26,9 @@ module Nodeum
26
26
 
27
27
  attr_accessor :primary_id
28
28
 
29
+ # For pool of tapes, used to link to a tape library id
30
+ attr_accessor :storage_id
31
+
29
32
  class EnumAttributeValidator
30
33
  attr_reader :datatype
31
34
  attr_reader :allowable_values
@@ -56,7 +59,8 @@ module Nodeum
56
59
  :'comment' => :'comment',
57
60
  :'type' => :'type',
58
61
  :'content' => :'content',
59
- :'primary_id' => :'primary_id'
62
+ :'primary_id' => :'primary_id',
63
+ :'storage_id' => :'storage_id'
60
64
  }
61
65
  end
62
66
 
@@ -68,7 +72,8 @@ module Nodeum
68
72
  :'comment' => :'String',
69
73
  :'type' => :'String',
70
74
  :'content' => :'String',
71
- :'primary_id' => :'Integer'
75
+ :'primary_id' => :'Integer',
76
+ :'storage_id' => :'Integer'
72
77
  }
73
78
  end
74
79
 
@@ -116,6 +121,10 @@ module Nodeum
116
121
  if attributes.key?(:'primary_id')
117
122
  self.primary_id = attributes[:'primary_id']
118
123
  end
124
+
125
+ if attributes.key?(:'storage_id')
126
+ self.storage_id = attributes[:'storage_id']
127
+ end
119
128
  end
120
129
 
121
130
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -165,7 +174,8 @@ module Nodeum
165
174
  comment == o.comment &&
166
175
  type == o.type &&
167
176
  content == o.content &&
168
- primary_id == o.primary_id
177
+ primary_id == o.primary_id &&
178
+ storage_id == o.storage_id
169
179
  end
170
180
 
171
181
  # @see the `==` method
@@ -177,7 +187,7 @@ module Nodeum
177
187
  # Calculates hash code according to all attributes.
178
188
  # @return [Integer] Hash code
179
189
  def hash
180
- [id, name, comment, type, content, primary_id].hash
190
+ [id, name, comment, type, content, primary_id, storage_id].hash
181
191
  end
182
192
 
183
193
  # Builds the object from hash
@@ -242,7 +242,7 @@ module Nodeum
242
242
  def valid?
243
243
  workflow_type_validator = EnumAttributeValidator.new('String', ["active_archive", "offline_archive", "data_exchange", "data_migration", "maintenance", "data_enrichment"])
244
244
  return false unless workflow_type_validator.valid?(@workflow_type)
245
- workflow_action_validator = EnumAttributeValidator.new('String', ["copy", "move", "scan", "rehydratation", "format", "check_consistency", "duplication", "cache_cleaning", "ejection", "get_index", "full_backup", "incremental_backup"])
245
+ workflow_action_validator = EnumAttributeValidator.new('String', ["copy", "move", "erase", "scan", "rehydratation", "format", "check_consistency", "duplication", "cache_cleaning", "ejection", "get_index", "full_backup", "incremental_backup"])
246
246
  return false unless workflow_action_validator.valid?(@workflow_action)
247
247
  source_type_validator = EnumAttributeValidator.new('String', ["container", "primary_nas", "secondary_nas", "primary_cloud", "secondary_cloud", "secondary_tape"])
248
248
  return false unless source_type_validator.valid?(@source_type)
@@ -270,7 +270,7 @@ module Nodeum
270
270
  # Custom attribute writer method checking allowed values (enum).
271
271
  # @param [Object] workflow_action Object to be assigned
272
272
  def workflow_action=(workflow_action)
273
- validator = EnumAttributeValidator.new('String', ["copy", "move", "scan", "rehydratation", "format", "check_consistency", "duplication", "cache_cleaning", "ejection", "get_index", "full_backup", "incremental_backup"])
273
+ validator = EnumAttributeValidator.new('String', ["copy", "move", "erase", "scan", "rehydratation", "format", "check_consistency", "duplication", "cache_cleaning", "ejection", "get_index", "full_backup", "incremental_backup"])
274
274
  unless validator.valid?(workflow_action)
275
275
  fail ArgumentError, "invalid value for \"workflow_action\", must be one of #{validator.allowable_values}."
276
276
  end
@@ -226,7 +226,7 @@ module Nodeum
226
226
  def valid?
227
227
  workflow_type_validator = EnumAttributeValidator.new('String', ["active_archive", "offline_archive", "data_exchange", "data_migration", "maintenance", "data_enrichment"])
228
228
  return false unless workflow_type_validator.valid?(@workflow_type)
229
- workflow_action_validator = EnumAttributeValidator.new('String', ["copy", "move", "scan", "rehydratation", "format", "check_consistency", "duplication", "cache_cleaning", "ejection", "get_index", "full_backup", "incremental_backup"])
229
+ workflow_action_validator = EnumAttributeValidator.new('String', ["copy", "move", "erase", "scan", "rehydratation", "format", "check_consistency", "duplication", "cache_cleaning", "ejection", "get_index", "full_backup", "incremental_backup"])
230
230
  return false unless workflow_action_validator.valid?(@workflow_action)
231
231
  source_type_validator = EnumAttributeValidator.new('String', ["container", "primary_nas", "secondary_nas", "primary_cloud", "secondary_cloud", "secondary_tape"])
232
232
  return false unless source_type_validator.valid?(@source_type)
@@ -250,7 +250,7 @@ module Nodeum
250
250
  # Custom attribute writer method checking allowed values (enum).
251
251
  # @param [Object] workflow_action Object to be assigned
252
252
  def workflow_action=(workflow_action)
253
- validator = EnumAttributeValidator.new('String', ["copy", "move", "scan", "rehydratation", "format", "check_consistency", "duplication", "cache_cleaning", "ejection", "get_index", "full_backup", "incremental_backup"])
253
+ validator = EnumAttributeValidator.new('String', ["copy", "move", "erase", "scan", "rehydratation", "format", "check_consistency", "duplication", "cache_cleaning", "ejection", "get_index", "full_backup", "incremental_backup"])
254
254
  unless validator.valid?(workflow_action)
255
255
  fail ArgumentError, "invalid value for \"workflow_action\", must be one of #{validator.allowable_values}."
256
256
  end
@@ -104,7 +104,7 @@ module Nodeum
104
104
  # Check to see if the all the properties in the model are valid
105
105
  # @return true if the model is valid
106
106
  def valid?
107
- type_validator = EnumAttributeValidator.new('String', ["file_checksum", "reset_file_date", "reset_folder_date", "rename_to", "execution_task_id", "selected_drive", "parallel_processing", "task_id", "full_report", "processing_order", "rehydration_usage_threshold", "rehydration_deleted_files_threshold", "learning_type", "learning_threshold", "tape_to_scratch", "eject_tape_after", "barcodes", "overwrite", "task_template"])
107
+ type_validator = EnumAttributeValidator.new('String', ["file_checksum", "reset_file_date", "reset_folder_date", "rename_to", "execution_task_id", "selected_drive", "parallel_processing", "task_id", "full_report", "processing_order", "rehydration_usage_threshold", "rehydration_deleted_files_threshold", "learning_type", "learning_threshold", "tape_to_scratch", "eject_tape_after", "barcodes", "overwrite", "soft_erase", "task_template"])
108
108
  return false unless type_validator.valid?(@type)
109
109
  true
110
110
  end
@@ -112,7 +112,7 @@ module Nodeum
112
112
  # Custom attribute writer method checking allowed values (enum).
113
113
  # @param [Object] type Object to be assigned
114
114
  def type=(type)
115
- validator = EnumAttributeValidator.new('String', ["file_checksum", "reset_file_date", "reset_folder_date", "rename_to", "execution_task_id", "selected_drive", "parallel_processing", "task_id", "full_report", "processing_order", "rehydration_usage_threshold", "rehydration_deleted_files_threshold", "learning_type", "learning_threshold", "tape_to_scratch", "eject_tape_after", "barcodes", "overwrite", "task_template"])
115
+ validator = EnumAttributeValidator.new('String', ["file_checksum", "reset_file_date", "reset_folder_date", "rename_to", "execution_task_id", "selected_drive", "parallel_processing", "task_id", "full_report", "processing_order", "rehydration_usage_threshold", "rehydration_deleted_files_threshold", "learning_type", "learning_threshold", "tape_to_scratch", "eject_tape_after", "barcodes", "overwrite", "soft_erase", "task_template"])
116
116
  unless validator.valid?(type)
117
117
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
118
118
  end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.0
11
11
  =end
12
12
 
13
13
  module Nodeum
14
- VERSION = '1.87.0'
14
+ VERSION = '1.88.0'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nodeum_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.87.0
4
+ version: 1.88.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-10 00:00:00.000000000 Z
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus