-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the tenant attribute to domain (#102)
- Loading branch information
Showing
14 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,10 +47,10 @@ require 'vra' | |
=> true | ||
``` | ||
|
||
Then, set up your client object. You will need to know your tenant ID from your vRA administrator. | ||
Then, set up your client object. You will need to know your domain from your vRA administrator. | ||
|
||
```shell | ||
client = Vra::Client.new(username: '[email protected]', password: 'mypassword', tenant: 'mytenant', base_url: 'https://vra.corp.local', verify_ssl: true) | ||
client = Vra::Client.new(username: '[email protected]', password: 'mypassword', domain: 'domain.corp.local', base_url: 'https://vra.corp.local', verify_ssl: true) | ||
=> #<Vra::Client:0x000000034c0df8 ... > | ||
``` | ||
|
||
|
@@ -234,7 +234,7 @@ deployment.requests | |
vRA paginates API requests where lists of items are returned. By default, this gem will ask vRA to provide items in groups of 20. However, as reported in [Issue 10](https://github.com/chef-partners/vmware-vra-gem/issues/10), it appears vRA may have a pagination bug. You can change the default page size from 20 to a value of your choice by passing in a `page_size` option when setting up the client: | ||
```ruby | ||
vra = Vra::Client.new(username: '[email protected]', password: 'mypassword', tenant: 'mytenant', base_url: 'https://vra.corp.local', verify_ssl: true, page_size: 100) | ||
vra = Vra::Client.new(username: '[email protected]', password: 'mypassword', domain: 'domain.corp.local', base_url: 'https://vra.corp.local', verify_ssl: true, page_size: 100) | ||
``` | ||
... or setting `page_size` on the client object after you've created it: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
Vra::Client.new( | ||
username: "[email protected]", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local" | ||
) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
Vra::Client.new( | ||
username: "[email protected]", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local" | ||
) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
Vra::Client.new( | ||
username: "[email protected]", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local" | ||
) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
Vra::Client.new( | ||
username: "[email protected]", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local" | ||
) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
{ | ||
username: "[email protected]", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local", | ||
} | ||
end | ||
|
@@ -136,7 +136,7 @@ | |
{ | ||
username: "[email protected]", | ||
password: "password", | ||
domain: "tenant", | ||
domain: "domain", | ||
}.to_json | ||
end | ||
|
||
|
@@ -414,7 +414,7 @@ | |
let(:unverified_client) do | ||
Vra::Client.new(username: "[email protected]", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local", | ||
verify_ssl: false) | ||
end | ||
|
@@ -503,7 +503,7 @@ | |
let(:client) do | ||
described_class.new( | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local" | ||
) | ||
end | ||
|
@@ -517,7 +517,7 @@ | |
let(:client) do | ||
described_class.new( | ||
username: "username", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local" | ||
) | ||
end | ||
|
@@ -527,7 +527,7 @@ | |
end | ||
end | ||
|
||
context "when tenant is missing" do | ||
context "when domain is missing" do | ||
let(:client) do | ||
described_class.new( | ||
username: "username", | ||
|
@@ -546,7 +546,7 @@ | |
described_class.new( | ||
username: "username", | ||
password: "password", | ||
tenant: "tenant" | ||
domain: "domain" | ||
) | ||
end | ||
|
||
|
@@ -560,7 +560,7 @@ | |
described_class.new( | ||
username: "username", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "something-that-is-not-a-HTTP-URI" | ||
) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
Vra::Client.new( | ||
username: "[email protected]", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local" | ||
) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
Vra::Client.new( | ||
username: "[email protected]", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local" | ||
) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
Vra::Client.new( | ||
username: "[email protected]", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local" | ||
) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
Vra::Client.new( | ||
username: "[email protected]", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local" | ||
) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
Vra::Client.new( | ||
username: "[email protected]", | ||
password: "password", | ||
tenant: "tenant", | ||
domain: "domain", | ||
base_url: "https://vra.corp.local" | ||
) | ||
end | ||
|