vmware-vra 2.5.1 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/README.md +7 -0
- data/lib/vra/catalog.rb +4 -0
- data/lib/vra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46c1f1139cc3262cb936510213d4ed55932ff3f5
|
4
|
+
data.tar.gz: 93721afaaea8f983f84354539905fb49d0eec847
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69fdf73780e7c7550e9a407ca87c2629a64f1be419ee597af5f03bab5f4f88306c7dde6c2b1725442a3e027193735a2904cc8b3a31b499c51d2278dabaf03500
|
7
|
+
data.tar.gz: a92954fae6a63da0ee4cf1cce76a1934507e06edda6e9219f7e914aa431e49358fa9f2f999ae43fb34edd28b0cadf0a4a19474981e4e40c58461f98bebcf8972
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [2..5.2] (https://github.com/chef-partners/vmware-vra-gem/tree/2.5.2) (2018-01-04)
|
4
|
+
[Full Changelog](https://github.com/chef-partners/vmware-vra-gem/compare/v2.5.1...2.5.2)
|
5
|
+
|
6
|
+
**Enhanced:**
|
7
|
+
|
8
|
+
- Added a method to retrive catalog id from catalog name
|
9
|
+
|
3
10
|
## [2.5.1](https://github.com/chef-partners/vmware-vra-gem/tree/2.5.1) (2017-10-19)
|
4
11
|
[Full Changelog](https://github.com/chef-partners/vmware-vra-gem/compare/v2.5.0...2.5.1)
|
5
12
|
|
@@ -246,4 +253,4 @@
|
|
246
253
|
|
247
254
|
|
248
255
|
|
249
|
-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
256
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/README.md
CHANGED
@@ -69,6 +69,13 @@ catalog_request = vra.catalog.request('a9cd6148-6e0b-4a80-ac47-f5255c52b43d', cp
|
|
69
69
|
=> #<Vra::CatalogRequest:0x00000003477c20 ... >
|
70
70
|
```
|
71
71
|
|
72
|
+
To retrive catalog id from catalog name:
|
73
|
+
|
74
|
+
```
|
75
|
+
vra.catalog.fetch_catalog_items('my_catalog_name')
|
76
|
+
=> #<Vra::CatalogRequest:0x00000004477c20 ... >
|
77
|
+
```
|
78
|
+
|
72
79
|
vRA requires your sub-tenant (a.k.a. "business group") to be specified when requesting an item from the catalog. If the catalog item you are requesting is specifically created for a given business group, the gem will use that ID automatically without you needing to specify it.
|
73
80
|
|
74
81
|
However, if there is no sub-tenant ID available for us to use, you will receive an error when you submit:
|
data/lib/vra/catalog.rb
CHANGED
@@ -38,5 +38,9 @@ module Vra
|
|
38
38
|
def request(*args)
|
39
39
|
Vra::CatalogRequest.new(@client, *args)
|
40
40
|
end
|
41
|
+
|
42
|
+
def fetch_catalog_items(catalog_name)
|
43
|
+
client.http_get("/catalog-service/api/consumer/entitledCatalogItemViews?%24filter=name+eq+'#{catalog_name}'")
|
44
|
+
end
|
41
45
|
end
|
42
46
|
end
|
data/lib/vra/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmware-vra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Leff
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi-yajl
|