lib/app42/command/config.rb in app42-0.6.1 vs lib/app42/command/config.rb in app42-0.6.2

- old
+ new

@@ -18,10 +18,17 @@ def get_vm_type build_get_request params, 'info', 'subscription' end # + # return subscription + # + def subscription + build_get_request params, 'info', 'subscriptiontype' + end + + # # return list of iaas_providers # def get_iaas_provider build_get_request params, 'info', 'iaasproviders' end @@ -39,13 +46,52 @@ def get_setup_type_fm_server build_get_request params, 'info', 'setuptype' end # + # return list of instance configuration + # + def get_instance_config_type iaas, vm_type + query_params = params + query_params.store('vmType', vm_type) + query_params.store('iaas', iaas) + build_get_request query_params, 'info', 'instanceconfig' + end + + # + # return list of instance configuration + # + def get_instance_config_for_upgrade_or_downgrade iaas, vm_type, setup_name, type + query_params = params + query_params.store('vmType', vm_type) + query_params.store('iaas', iaas) + query_params.store('setupName', setup_name) + build_get_request query_params, 'info', "instanceconfig/#{type}" + end + + # + # return setup details + # + def get_setup_details setup_name + query_params = params + query_params.store('setupName', setup_name) + build_get_request query_params, 'info', 'setupdetails' + end + + # # return list of flavour # def get_flavour_type_fm_server build_get_request params, 'info', 'flavour' + end + + # + # return list of flavour + # + def get_flavour_type_fm_server_for_upgrade_or_downgrade setup_name, type + query_params = params + query_params.store('setupName', setup_name) + build_get_request query_params, 'info', "flavour/#{type}" end # # return list of templates # \ No newline at end of file