Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmartt committed Feb 23, 2017
1 parent eb28d8d commit d0eb7a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,12 @@ client = OneviewSDK::Client.new
You can create the i3s client with environment variables in the following ways:
```ruby
require 'oneview-sdk'
# Uses this way when you set ONEVIEWSDK_USER and ONEVIEWSDK_PASSWORD to create Oneview client
# Note: Both options require the I3S_URL environment variable to be set.
# This way uses the ONEVIEWSDK_URL, ONEVIEWSDK_USER and ONEVIEWSDK_PASSWORD environment variables to generate a token:
client = OneviewSDK::Client.new
i3s_client = client.new_i3s_client # Returns an instance of i3s client
# or uses this way when you set ONEVIEWSDK_TOKEN
i3s_client = client.new_i3s_client

# This way uses the ONEVIEWSDK_TOKEN environment variable directly:
i3s_client = OneviewSDK::ImageStreamer::Client.new
```

Expand Down Expand Up @@ -176,7 +178,7 @@ OneviewSDK.api_version = 300
OneviewSDK.api_version # 300
OneviewSDK.api_version_updated? # true

# The API200 module has only 1 variant, but API300 has 2 (C7000 & Synergy):
# The API200 module has no variants, but API300 has 2 (C7000 & Synergy):
OneviewSDK::API300::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
OneviewSDK::API300::DEFAULT_VARIANT # 'C7000'
OneviewSDK::API300.variant # 'C7000'
Expand Down

0 comments on commit d0eb7a1

Please sign in to comment.