Class: VagrantPlugins::Vrealize::CatalogRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-vrealize/vra_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(vra, catalog_item_id) ⇒ CatalogRequest

Returns a new instance of CatalogRequest.



83
84
85
86
# File 'lib/vagrant-vrealize/vra_client.rb', line 83

def initialize(vra, catalog_item_id)
  @vra = vra
  @catalog_item_id = catalog_item_id
end

Instance Method Details

#request(params, &blk) ⇒ Object



88
89
90
91
92
93
# File 'lib/vagrant-vrealize/vra_client.rb', line 88

def request(params, &blk)
  new_item_request = @vra.request(@catalog_item_id, params) { |cat_req|
    yield cat_req if blk
  }
  SubmittedItemRequest.new(@vra, new_item_request)
end