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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a2666973ad988e51940fd5fc5b5b88187fbe5a7
4
- data.tar.gz: 7d255eaa08be39699f3abf709cc666201d0f9efa
3
+ metadata.gz: 46c1f1139cc3262cb936510213d4ed55932ff3f5
4
+ data.tar.gz: 93721afaaea8f983f84354539905fb49d0eec847
5
5
  SHA512:
6
- metadata.gz: c7ef574e421ec00928e6030ead0dcbfa14411eb4af2e6bece942a2382f4f5bf6cf176443c23f9db4b136e2cfec909fe977df0341d7cf7c35815c23a95fb4c788
7
- data.tar.gz: 1fb7b83e916e0e1ef5b880c85edb692ffda5f8aa69f10eb252c446a4752e85cbef1629b5d3b00b43797534bba093c6b2c45448916ca3c2336e77bf93289fb3de
6
+ metadata.gz: 69fdf73780e7c7550e9a407ca87c2629a64f1be419ee597af5f03bab5f4f88306c7dde6c2b1725442a3e027193735a2904cc8b3a31b499c51d2278dabaf03500
7
+ data.tar.gz: a92954fae6a63da0ee4cf1cce76a1934507e06edda6e9219f7e914aa431e49358fa9f2f999ae43fb34edd28b0cadf0a4a19474981e4e40c58461f98bebcf8972
@@ -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:
@@ -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
@@ -18,5 +18,5 @@
18
18
  #
19
19
 
20
20
  module Vra
21
- VERSION = "2.5.1"
21
+ VERSION = "2.5.2"
22
22
  end
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.1
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: 2017-10-19 00:00:00.000000000 Z
12
+ date: 2018-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi-yajl