morpheus-cli 3.3.2.6.2 → 3.3.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/morpheus/api/api_client.rb +4 -0
  3. data/lib/morpheus/api/cloud_datastores_interface.rb +47 -0
  4. data/lib/morpheus/api/virtual_images_interface.rb +2 -2
  5. data/lib/morpheus/cli.rb +1 -0
  6. data/lib/morpheus/cli/app_templates.rb +5 -15
  7. data/lib/morpheus/cli/cli_command.rb +5 -1
  8. data/lib/morpheus/cli/cloud_datastores_command.rb +399 -0
  9. data/lib/morpheus/cli/containers_command.rb +2 -8
  10. data/lib/morpheus/cli/hosts.rb +10 -21
  11. data/lib/morpheus/cli/instance_types.rb +4 -10
  12. data/lib/morpheus/cli/instances.rb +14 -34
  13. data/lib/morpheus/cli/library_container_scripts_command.rb +5 -12
  14. data/lib/morpheus/cli/library_container_templates_command.rb +4 -10
  15. data/lib/morpheus/cli/library_container_types_command.rb +4 -10
  16. data/lib/morpheus/cli/library_instance_types_command.rb +4 -10
  17. data/lib/morpheus/cli/library_layouts_command.rb +4 -10
  18. data/lib/morpheus/cli/library_option_types_command.rb +2 -5
  19. data/lib/morpheus/cli/library_upgrades_command.rb +4 -10
  20. data/lib/morpheus/cli/load_balancers.rb +4 -16
  21. data/lib/morpheus/cli/monitoring_apps_command.rb +5 -14
  22. data/lib/morpheus/cli/monitoring_checks_command.rb +13 -33
  23. data/lib/morpheus/cli/monitoring_contacts_command.rb +10 -11
  24. data/lib/morpheus/cli/monitoring_groups_command.rb +19 -38
  25. data/lib/morpheus/cli/monitoring_incidents_command.rb +37 -66
  26. data/lib/morpheus/cli/network_domains_command.rb +7 -16
  27. data/lib/morpheus/cli/network_groups_command.rb +6 -16
  28. data/lib/morpheus/cli/network_pool_servers_command.rb +6 -16
  29. data/lib/morpheus/cli/network_pools_command.rb +6 -16
  30. data/lib/morpheus/cli/network_proxies_command.rb +6 -16
  31. data/lib/morpheus/cli/network_services_command.rb +4 -11
  32. data/lib/morpheus/cli/networks_command.rb +6 -16
  33. data/lib/morpheus/cli/packages_command.rb +148 -13
  34. data/lib/morpheus/cli/policies_command.rb +6 -16
  35. data/lib/morpheus/cli/power_scheduling_command.rb +6 -24
  36. data/lib/morpheus/cli/recent_activity_command.rb +19 -19
  37. data/lib/morpheus/cli/remote.rb +7 -8
  38. data/lib/morpheus/cli/storage_providers_command.rb +6 -16
  39. data/lib/morpheus/cli/tasks.rb +4 -12
  40. data/lib/morpheus/cli/user_groups_command.rb +7 -25
  41. data/lib/morpheus/cli/user_sources_command.rb +9 -21
  42. data/lib/morpheus/cli/users.rb +6 -17
  43. data/lib/morpheus/cli/version.rb +1 -1
  44. data/lib/morpheus/cli/workflows.rb +4 -12
  45. metadata +4 -2
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "3.3.2.6.2"
4
+ VERSION = "3.3.2.7"
5
5
  end
6
6
  end
@@ -46,19 +46,13 @@ class Morpheus::Cli::Workflows
46
46
  task_sets = json_response['taskSets']
47
47
  # print result and return output
48
48
  if options[:json]
49
- if options[:include_fields]
50
- json_response = {"taskSets" => filter_data(json_response["taskSets"], options[:include_fields]) }
51
- end
52
- puts as_json(json_response, options)
49
+ puts as_json(json_response, options, "taskSets")
53
50
  return 0
54
51
  elsif options[:csv]
55
52
  puts records_as_csv(json_response['taskSets'], options)
56
53
  return 0
57
54
  elsif options[:yaml]
58
- if options[:include_fields]
59
- json_response = {"taskSets" => filter_data(json_response["taskSets"], options[:include_fields]) }
60
- end
61
- puts as_yaml(json_response, options)
55
+ puts as_yaml(json_response, options, "taskSets")
62
56
  return 0
63
57
  else
64
58
  task_sets = json_response['taskSets']
@@ -160,12 +154,10 @@ class Morpheus::Cli::Workflows
160
154
  end
161
155
  workflow = json_response['taskSet']
162
156
  if options[:json]
163
- json_response = {"taskSet" => filter_data(json_response["taskSet"], options[:include_fields]) } if options[:include_fields]
164
- puts as_json(json_response, options)
157
+ puts as_json(json_response, options, "taskSet")
165
158
  return 0
166
159
  elsif options[:yaml]
167
- json_response = {"taskSet" => filter_data(json_response["taskSet"], options[:include_fields]) } if options[:include_fields]
168
- puts as_yaml(json_response, options)
160
+ puts as_yaml(json_response, options, "taskSet")
169
161
  return 0
170
162
  elsif options[:csv]
171
163
  puts records_as_csv([json_response['taskSet']], options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morpheus-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2.6.2
4
+ version: 3.3.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-06-06 00:00:00.000000000 Z
14
+ date: 2018-06-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -149,6 +149,7 @@ files:
149
149
  - lib/morpheus/api/archive_buckets_interface.rb
150
150
  - lib/morpheus/api/archive_files_interface.rb
151
151
  - lib/morpheus/api/auth_interface.rb
152
+ - lib/morpheus/api/cloud_datastores_interface.rb
152
153
  - lib/morpheus/api/cloud_policies_interface.rb
153
154
  - lib/morpheus/api/clouds_interface.rb
154
155
  - lib/morpheus/api/containers_interface.rb
@@ -216,6 +217,7 @@ files:
216
217
  - lib/morpheus/cli/boot_scripts_command.rb
217
218
  - lib/morpheus/cli/cli_command.rb
218
219
  - lib/morpheus/cli/cli_registry.rb
220
+ - lib/morpheus/cli/cloud_datastores_command.rb
219
221
  - lib/morpheus/cli/clouds.rb
220
222
  - lib/morpheus/cli/coloring_command.rb
221
223
  - lib/morpheus/cli/command_error.rb