xclarity_client 0.6.3 → 0.6.4

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
  SHA1:
3
- metadata.gz: 925a13b7e8f9b9f52254d8bc8e223f66575d906f
4
- data.tar.gz: 49143f5132f618303c665035b8e07e1f48bd627a
3
+ metadata.gz: d635bea57d869451ba76b10e0d81712fda6e429b
4
+ data.tar.gz: 4387236943efa27f6460a7c1b5855e6effc9b188
5
5
  SHA512:
6
- metadata.gz: ea345864b94e0a2abac7a61c9074c2fc8cfc7cad540b51bf711d3523813108232e7ca014c160c710067e9f8a2cd9f18f1c40b0fb06ae830b53c8b46a0ed3b454
7
- data.tar.gz: ed2ac8bcef67945b1dcb403b8eeab2dc8712366768950c06449fe13acb5a71621ecfe26d02b7b9a402109e0e141b302fb8a55b2afed309af02a3ec49998fa0a8
6
+ metadata.gz: 29bc67ba63626984eb9c43f980526857f3c0ffae04e04bad2e9b20d548f31d7633000fbb95b0cdca0dc5a23c88ece22ef78c2243f807bbccaf9d4e8ad6fbc446
7
+ data.tar.gz: 9e752a0fb9c1fe2edbf8160ac57f7522810ddd3a99fbdcf061f394ba3370fb7c7de2866509634ad8e9aeebcd8aef5f3b0a82d6400b64e6b517b14382aff9ed49
data/docs/apib/event.apib CHANGED
@@ -14,7 +14,6 @@ FORMAT: 1A
14
14
  Range: "0-1"
15
15
 
16
16
  + Response 200 (application/json)
17
- [ { "eventDate": "2016-12-21T17:13:58Z", "systemTypeText": "Management", "chassisText": "Not Available", "timeStamp": "2016-12-21T17:13:58Z", "location": "", "args": [ "EAAC33576492E511B46A70E28412CA06" ], "originatorUUID": "", "systemName": "Management Server", "bayText": "Not Available", "mtm": "", "userid": "", "fruSerialNumberText": "Not Available", "eventSourceText": "Management", "senderUUID": "", "serialnum": "", "sourceLogID": "", "action": 100, "parameters": {}, "localLogSequence": "", "localLogID": "", "sourceID": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", "systemTypeModelText": "Not Available", "commonEventID": "FQXHMTS0012X", "flags": "", "userIDIndex": 0, "failSNs": "", "severityText": "Warning", "severity": 300, "serviceabilityText": "User", "failFRUs": "", "msg": "Endpoint EAAC33576492E511B46A70E28412CA06 could not be accessed because credentials were refused.", "componentID": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", "eventClass": 800, "eventID": "FQXHMTS0009G", "sourceLogSequence": 0, "systemSerialNumberText": "Not Available", "cn": "242679", "service": 300, "typeText": "System", "msgID": "", "systemFruNumberText": "Not Available", "systemText": "Management Server" }, { "eventDate": "2016-12-21T17:13:58Z", "systemTypeText": "Management", "chassisText": "Not Available", "timeStamp": "2016-12-21T17:13:58Z", "location": "", "args": [ "EAAC33576492E511B46A70E28412CA06", "03.76.208", "TB5TS381" ], "originatorUUID": "", "systemName": "Management Server", "bayText": "Not Available", "mtm": "", "userid": "", "fruSerialNumberText": "Not Available", "eventSourceText": "Management", "senderUUID": "", "serialnum": "", "sourceLogID": "", "action": 100, "parameters": {}, "localLogSequence": "", "localLogID": "", "sourceID": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", "systemTypeModelText": "Not Available", "commonEventID": "FQXHMTS0012X", "flags": "", "userIDIndex": 0, "failSNs": "", "severityText": "Warning", "severity": 300, "serviceabilityText": "User", "failFRUs": "", "msg": "Inventory data could not be retrieved from the endpoint EAAC33576492E511B46A70E28412CA06. BIOS: 03.76.208, BMC: TB5TS381", "componentID": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", "eventClass": 800, "eventID": "FQXHMTS0003G", "sourceLogSequence": 0, "systemSerialNumberText": "Not Available", "cn": "242678", "service": 300, "typeText": "System", "msgID": "", "systemFruNumberText": "Not Available", "systemText": "Management Server" }, { "eventDate": "2016-12-21T17:13:58Z", "systemTypeText": "Management", "chassisText": "Not Available", "timeStamp": "2016-12-21T17:13:58Z", "location": "", "args": [ "EAAC33576492E511B46A70E28412CA06" ], "originatorUUID": "", "systemName": "Management Server", "bayText": "Not Available", "mtm": "", "userid": "", "fruSerialNumberText": "Not Available", "eventSourceText": "Management", "senderUUID": "", "serialnum": "", "sourceLogID": "", "action": 100, "parameters": {}, "localLogSequence": "", "localLogID": "", "sourceID": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", "systemTypeModelText": "Not Available", "commonEventID": "FQXHMTS0012X", "flags": "", "userIDIndex": 0, "failSNs": "", "severityText": "Warning", "severity": 300, "serviceabilityText": "User", "failFRUs": "", "msg": "Endpoint EAAC33576492E511B46A70E28412CA06 could not be accessed because credentials were refused.", "componentID": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", "eventClass": 800, "eventID": "FQXHMTS0009G", "sourceLogSequence": 0, "systemSerialNumberText": "Not Available", "cn": "242677", "service": 300, "typeText": "System", "msgID": "", "systemFruNumberText": "Not Available", "systemText": "Management Server" } ]
18
17
  + Header
19
18
  Content-Range: "0-1/9999"
20
19
 
@@ -2,7 +2,7 @@ FORMAT: 1A
2
2
 
3
3
  # Storages
4
4
 
5
- # GET /storages
5
+ # GET /storage
6
6
 
7
7
  + Response 200 (application/json)
8
8
  {
@@ -483,7 +483,7 @@ FORMAT: 1A
483
483
  + Response 409
484
484
  + Response 500
485
485
 
486
- # GET /storages/1B33D6D13F267A614567A897DC784F00?includeAttributes=name,type,accessState,driveBays,enclosureCount,canisterSlots,room
486
+ # GET /storage/1B33D6D13F267A614567A897DC784F00?includeAttributes=name,type,accessState,driveBays,enclosureCount,canisterSlots,room
487
487
 
488
488
  + Response 200 (application/json)
489
489
  {
@@ -506,7 +506,7 @@ FORMAT: 1A
506
506
  + Response 409
507
507
  + Response 500
508
508
 
509
- # GET /storages/1B33D6D13F267A614567A897DC784F00?excludeAttributes=type,room
509
+ # GET /storage/1B33D6D13F267A614567A897DC784F00?excludeAttributes=type,room
510
510
 
511
511
  + Response 200 (application/json)
512
512
  {
@@ -6,14 +6,15 @@ module XClarityClient
6
6
  # speed, security and high availability
7
7
  #
8
8
  class Storage < Endpoints::XclarityEndpoint
9
- BASE_URI = '/storages'.freeze
9
+ BASE_URI = '/storage'.freeze
10
10
  LIST_NAME = 'storageList'.freeze
11
11
 
12
12
  attr_accessor :uuid, :name, :type, :accessState, :cmmHealthState,
13
- :enclosures, :overallHealthState, :driveBays,
14
- :enclosureCount, :canisterSlots, :productName,
15
- :machineType, :model, :serialNumber, :contact,
16
- :description, :location, :room, :rack,
17
- :lowestRackUnit, :mgmtProcIPaddress
13
+ :enclosures, :canisters, :overallHealthState, :driveBays,
14
+ :enclosureCount, :canisterSlots, :parent,
15
+ :productName, :machineType, :model,
16
+ :serialNumber, :contact, :description,
17
+ :location, :room, :rack, :lowestRackUnit,
18
+ :mgmtProcIPaddress
18
19
  end
19
20
  end
@@ -85,9 +85,8 @@ module XClarityClient
85
85
  end
86
86
 
87
87
  def do_request_with_opts(uri, opts)
88
- allowed_query_keys = %w(type sort)
89
- query = opts.select { |key| allowed_query_keys.include?(key) }
90
- headers = opts['headers'] || Hash.new(0)
88
+ query = opts.reject { |key| 'headers'.eql?(key) }
89
+ headers = opts['headers'] || {}
91
90
 
92
91
  @connection.do_get(uri, :query => query, :headers => headers)
93
92
  end
@@ -1,3 +1,3 @@
1
1
  module XClarityClient
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xclarity_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manasa Rao
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-09-04 00:00:00.000000000 Z
12
+ date: 2018-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler