morpheus-cli 5.3.0.1 → 5.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/README.md +1 -3
- data/lib/morpheus/api/account_groups_interface.rb +0 -6
- data/lib/morpheus/api/accounts_interface.rb +1 -7
- data/lib/morpheus/api/api_client.rb +155 -119
- data/lib/morpheus/api/appliance_settings_interface.rb +6 -9
- data/lib/morpheus/api/approvals_interface.rb +5 -8
- data/lib/morpheus/api/apps_interface.rb +0 -7
- data/lib/morpheus/api/archive_buckets_interface.rb +9 -16
- data/lib/morpheus/api/archive_files_interface.rb +0 -6
- data/lib/morpheus/api/auth_interface.rb +4 -4
- data/lib/morpheus/api/backup_settings_interface.rb +5 -8
- data/lib/morpheus/api/blueprints_interface.rb +1 -7
- data/lib/morpheus/api/budgets_interface.rb +0 -6
- data/lib/morpheus/api/certificate_types_interface.rb +14 -0
- data/lib/morpheus/api/certificates_interface.rb +9 -0
- data/lib/morpheus/api/cloud_datastores_interface.rb +0 -6
- data/lib/morpheus/api/cloud_folders_interface.rb +1 -7
- data/lib/morpheus/api/cloud_policies_interface.rb +0 -6
- data/lib/morpheus/api/cloud_resource_pools_interface.rb +0 -6
- data/lib/morpheus/api/clouds_interface.rb +0 -6
- data/lib/morpheus/api/clusters_interface.rb +39 -42
- data/lib/morpheus/api/containers_interface.rb +0 -6
- data/lib/morpheus/api/custom_instance_types_interface.rb +0 -6
- data/lib/morpheus/api/cypher_interface.rb +0 -6
- data/lib/morpheus/api/datastores_interface.rb +4 -7
- data/lib/morpheus/api/deploy_interface.rb +1 -6
- data/lib/morpheus/api/environments_interface.rb +0 -6
- data/lib/morpheus/api/execute_schedules_interface.rb +0 -6
- data/lib/morpheus/api/execution_request_interface.rb +0 -6
- data/lib/morpheus/api/file_copy_request_interface.rb +2 -9
- data/lib/morpheus/api/group_policies_interface.rb +0 -6
- data/lib/morpheus/api/groups_interface.rb +0 -7
- data/lib/morpheus/api/guidance_interface.rb +9 -12
- data/lib/morpheus/api/health_interface.rb +0 -6
- data/lib/morpheus/api/image_builder_boot_scripts_interface.rb +0 -6
- data/lib/morpheus/api/image_builder_image_builds_interface.rb +0 -6
- data/lib/morpheus/api/image_builder_interface.rb +3 -9
- data/lib/morpheus/api/image_builder_preseed_scripts_interface.rb +0 -6
- data/lib/morpheus/api/instance_types_interface.rb +0 -7
- data/lib/morpheus/api/instances_interface.rb +8 -19
- data/lib/morpheus/api/integration_types_interface.rb +14 -0
- data/lib/morpheus/api/integrations_interface.rb +36 -21
- data/lib/morpheus/api/invoice_line_items_interface.rb +4 -9
- data/lib/morpheus/api/jobs_interface.rb +11 -14
- data/lib/morpheus/api/key_pairs_interface.rb +0 -6
- data/lib/morpheus/api/library_cluster_layouts_interface.rb +0 -6
- data/lib/morpheus/api/library_container_scripts_interface.rb +0 -6
- data/lib/morpheus/api/library_container_templates_interface.rb +0 -6
- data/lib/morpheus/api/library_container_types_interface.rb +0 -6
- data/lib/morpheus/api/library_container_upgrades_interface.rb +0 -6
- data/lib/morpheus/api/library_instance_types_interface.rb +0 -6
- data/lib/morpheus/api/library_layouts_interface.rb +0 -6
- data/lib/morpheus/api/library_spec_template_types_interface.rb +0 -6
- data/lib/morpheus/api/library_spec_templates_interface.rb +0 -6
- data/lib/morpheus/api/license_interface.rb +0 -6
- data/lib/morpheus/api/load_balancers_interface.rb +0 -6
- data/lib/morpheus/api/log_settings_interface.rb +9 -12
- data/lib/morpheus/api/logs_interface.rb +0 -6
- data/lib/morpheus/api/monitoring_alerts_interface.rb +0 -6
- data/lib/morpheus/api/monitoring_apps_interface.rb +0 -6
- data/lib/morpheus/api/monitoring_checks_interface.rb +0 -6
- data/lib/morpheus/api/monitoring_contacts_interface.rb +0 -6
- data/lib/morpheus/api/monitoring_groups_interface.rb +0 -6
- data/lib/morpheus/api/monitoring_incidents_interface.rb +0 -6
- data/lib/morpheus/api/monitoring_interface.rb +6 -12
- data/lib/morpheus/api/network_domain_records_interface.rb +0 -6
- data/lib/morpheus/api/network_domains_interface.rb +0 -6
- data/lib/morpheus/api/network_groups_interface.rb +0 -6
- data/lib/morpheus/api/network_pool_ips_interface.rb +0 -6
- data/lib/morpheus/api/network_pool_servers_interface.rb +0 -6
- data/lib/morpheus/api/network_pools_interface.rb +0 -6
- data/lib/morpheus/api/network_proxies_interface.rb +0 -6
- data/lib/morpheus/api/network_routers_interface.rb +0 -6
- data/lib/morpheus/api/network_security_servers_interface.rb +6 -9
- data/lib/morpheus/api/network_services_interface.rb +14 -14
- data/lib/morpheus/api/network_subnets_interface.rb +0 -6
- data/lib/morpheus/api/network_types_interface.rb +1 -7
- data/lib/morpheus/api/networks_interface.rb +0 -6
- data/lib/morpheus/api/option_type_lists_interface.rb +18 -12
- data/lib/morpheus/api/option_types_interface.rb +0 -6
- data/lib/morpheus/api/options_interface.rb +0 -6
- data/lib/morpheus/api/packages_interface.rb +0 -6
- data/lib/morpheus/api/policies_interface.rb +1 -8
- data/lib/morpheus/api/power_schedules_interface.rb +0 -6
- data/lib/morpheus/api/price_sets_interface.rb +8 -11
- data/lib/morpheus/api/prices_interface.rb +12 -15
- data/lib/morpheus/api/processes_interface.rb +0 -6
- data/lib/morpheus/api/provision_types_interface.rb +0 -6
- data/lib/morpheus/api/provisioning_license_types_interface.rb +0 -6
- data/lib/morpheus/api/provisioning_licenses_interface.rb +0 -6
- data/lib/morpheus/api/provisioning_settings_interface.rb +6 -9
- data/lib/morpheus/api/read_interface.rb +23 -0
- data/lib/morpheus/api/reports_interface.rb +0 -6
- data/lib/morpheus/api/rest_interface.rb +12 -10
- data/lib/morpheus/api/roles_interface.rb +7 -6
- data/lib/morpheus/api/security_group_rules_interface.rb +0 -7
- data/lib/morpheus/api/security_groups_interface.rb +0 -6
- data/lib/morpheus/api/server_types_interface.rb +0 -6
- data/lib/morpheus/api/servers_interface.rb +7 -6
- data/lib/morpheus/api/service_plans_interface.rb +11 -14
- data/lib/morpheus/api/storage_providers_interface.rb +9 -16
- data/lib/morpheus/api/subnet_types_interface.rb +1 -7
- data/lib/morpheus/api/subnets_interface.rb +0 -6
- data/lib/morpheus/api/task_sets_interface.rb +0 -6
- data/lib/morpheus/api/tasks_interface.rb +0 -6
- data/lib/morpheus/api/user_groups_interface.rb +0 -6
- data/lib/morpheus/api/user_settings_interface.rb +38 -18
- data/lib/morpheus/api/user_sources_interface.rb +0 -6
- data/lib/morpheus/api/users_interface.rb +0 -6
- data/lib/morpheus/api/vdi_allocations_interface.rb +9 -0
- data/lib/morpheus/api/vdi_apps_interface.rb +9 -0
- data/lib/morpheus/api/vdi_gateways_interface.rb +9 -0
- data/lib/morpheus/api/vdi_interface.rb +28 -0
- data/lib/morpheus/api/vdi_pools_interface.rb +19 -0
- data/lib/morpheus/api/virtual_images_interface.rb +0 -6
- data/lib/morpheus/api/whitelabel_settings_interface.rb +8 -11
- data/lib/morpheus/api/wiki_interface.rb +0 -6
- data/lib/morpheus/cli.rb +9 -2
- data/lib/morpheus/cli/access_token_command.rb +1 -1
- data/lib/morpheus/cli/account_groups_command.rb +4 -4
- data/lib/morpheus/cli/apps.rb +68 -84
- data/lib/morpheus/cli/archives_command.rb +5 -5
- data/lib/morpheus/cli/blueprints_command.rb +5 -5
- data/lib/morpheus/cli/boot_scripts_command.rb +1 -1
- data/lib/morpheus/cli/catalog_item_types_command.rb +13 -13
- data/lib/morpheus/cli/certificates_command.rb +575 -0
- data/lib/morpheus/cli/change_password_command.rb +4 -4
- data/lib/morpheus/cli/cli_command.rb +63 -7
- data/lib/morpheus/cli/clouds.rb +3 -2
- data/lib/morpheus/cli/clusters.rb +3 -3
- data/lib/morpheus/cli/commands/standard/man_command.rb +4 -5
- data/lib/morpheus/cli/credentials.rb +4 -11
- data/lib/morpheus/cli/environments_command.rb +1 -1
- data/lib/morpheus/cli/execute_schedules_command.rb +3 -3
- data/lib/morpheus/cli/hosts.rb +253 -232
- data/lib/morpheus/cli/image_builder_command.rb +6 -6
- data/lib/morpheus/cli/instance_types.rb +1 -1
- data/lib/morpheus/cli/instances.rb +196 -186
- data/lib/morpheus/cli/integrations_command.rb +1155 -42
- data/lib/morpheus/cli/invoices_command.rb +75 -67
- data/lib/morpheus/cli/key_pairs.rb +2 -2
- data/lib/morpheus/cli/library_cluster_layouts_command.rb +2 -3
- data/lib/morpheus/cli/library_container_scripts_command.rb +4 -5
- data/lib/morpheus/cli/library_container_templates_command.rb +5 -1
- data/lib/morpheus/cli/library_container_types_command.rb +8 -9
- data/lib/morpheus/cli/library_instance_types_command.rb +6 -7
- data/lib/morpheus/cli/library_layouts_command.rb +9 -5
- data/lib/morpheus/cli/library_option_lists_command.rb +72 -20
- data/lib/morpheus/cli/library_option_types_command.rb +8 -4
- data/lib/morpheus/cli/library_spec_templates_command.rb +3 -4
- data/lib/morpheus/cli/library_upgrades_command.rb +6 -6
- data/lib/morpheus/cli/license.rb +2 -2
- data/lib/morpheus/cli/load_balancers.rb +1 -1
- data/lib/morpheus/cli/login.rb +10 -1
- data/lib/morpheus/cli/mixins/option_source_helper.rb +15 -16
- data/lib/morpheus/cli/mixins/print_helper.rb +33 -18
- data/lib/morpheus/cli/mixins/provisioning_helper.rb +4 -4
- data/lib/morpheus/cli/mixins/vdi_helper.rb +246 -0
- data/lib/morpheus/cli/network_domains_command.rb +2 -2
- data/lib/morpheus/cli/network_routers_command.rb +22 -9
- data/lib/morpheus/cli/networks_command.rb +2 -2
- data/lib/morpheus/cli/option_types.rb +39 -34
- data/lib/morpheus/cli/policies_command.rb +0 -1
- data/lib/morpheus/cli/power_schedules_command.rb +3 -3
- data/lib/morpheus/cli/preseed_scripts_command.rb +1 -1
- data/lib/morpheus/cli/remote.rb +2 -2
- data/lib/morpheus/cli/reports_command.rb +5 -2
- data/lib/morpheus/cli/roles.rb +224 -64
- data/lib/morpheus/cli/security_group_rules.rb +1 -1
- data/lib/morpheus/cli/setup.rb +0 -1
- data/lib/morpheus/cli/subnets_command.rb +11 -2
- data/lib/morpheus/cli/tenants_command.rb +3 -3
- data/lib/morpheus/cli/user_groups_command.rb +3 -3
- data/lib/morpheus/cli/user_settings_command.rb +268 -57
- data/lib/morpheus/cli/user_sources_command.rb +3 -3
- data/lib/morpheus/cli/users.rb +3 -3
- data/lib/morpheus/cli/vdi_allocations_command.rb +159 -0
- data/lib/morpheus/cli/vdi_apps_command.rb +317 -0
- data/lib/morpheus/cli/vdi_command.rb +359 -0
- data/lib/morpheus/cli/vdi_gateways_command.rb +290 -0
- data/lib/morpheus/cli/vdi_pools_command.rb +571 -0
- data/lib/morpheus/cli/version.rb +1 -1
- data/lib/morpheus/cli/virtual_images.rb +1 -1
- data/lib/morpheus/cli/whoami.rb +0 -15
- data/lib/morpheus/cli/wiki_command.rb +1 -1
- data/lib/morpheus/rest_client.rb +30 -0
- data/lib/morpheus/terminal.rb +15 -7
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e776b0e0602c4de27079e0796d270009b0d3a592d571a41721ac936c7537b94e
|
4
|
+
data.tar.gz: 10f231de3b75dc6a16d5433af35a1cbde2931d1871bf2106040ee49a0812091c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 893fd73648238a2a360273fef6a44654b0011075401743f6be61ba5f32c487f8bc5c5936f440cbcbb6be99ce05888ef99e453545e7f435e834a54ade3062851a
|
7
|
+
data.tar.gz: c558b3e31997546f382b44339183431e6d855be77b82e6c85be623c32dcf3333ae0a34c725b19fb317e308d8ec3ca2963de9f51ceba5b3bd658c7ad013ae9d67
|
data/Dockerfile
CHANGED
data/README.md
CHANGED
@@ -23,8 +23,6 @@ And then execute:
|
|
23
23
|
|
24
24
|
$ bundle install
|
25
25
|
|
26
|
-
|
27
|
-
|
28
26
|
## Usage
|
29
27
|
|
30
28
|
### morpheus command
|
@@ -32,7 +30,7 @@ And then execute:
|
|
32
30
|
This gem installs the [morpheus](https://github.com/gomorpheus/morpheus-cli/wiki/CLI-Manual) binary for running commands in your terminal shell.
|
33
31
|
|
34
32
|
```sh
|
35
|
-
morpheus remote add
|
33
|
+
morpheus remote add
|
36
34
|
morpheus instances list
|
37
35
|
```
|
38
36
|
|
@@ -1,12 +1,6 @@
|
|
1
1
|
require 'morpheus/api/api_client'
|
2
2
|
|
3
3
|
class Morpheus::AccountGroupsInterface < Morpheus::APIClient
|
4
|
-
def initialize(access_token, refresh_token,expires_at = nil, base_url=nil)
|
5
|
-
@access_token = access_token
|
6
|
-
@refresh_token = refresh_token
|
7
|
-
@base_url = base_url
|
8
|
-
@expires_at = expires_at
|
9
|
-
end
|
10
4
|
|
11
5
|
def get(account_id, id, params={})
|
12
6
|
raise "#{self.class}.get() passed a blank id!" if id.to_s == ''
|
@@ -1,13 +1,7 @@
|
|
1
1
|
require 'morpheus/api/api_client'
|
2
2
|
|
3
3
|
class Morpheus::AccountsInterface < Morpheus::APIClient
|
4
|
-
|
5
|
-
@access_token = access_token
|
6
|
-
@refresh_token = refresh_token
|
7
|
-
@base_url = base_url
|
8
|
-
@expires_at = expires_at
|
9
|
-
end
|
10
|
-
|
4
|
+
|
11
5
|
def get(id)
|
12
6
|
raise "#{self.class}.get() passed a blank id!" if id.to_s == ''
|
13
7
|
url = "#{@base_url}/api/accounts/#{id}"
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'json'
|
2
2
|
require 'uri'
|
3
|
+
require 'cgi'
|
3
4
|
require 'rest-client'
|
4
5
|
|
5
6
|
class Morpheus::APIClient
|
@@ -80,7 +81,7 @@ class Morpheus::APIClient
|
|
80
81
|
end
|
81
82
|
|
82
83
|
# set default seconds for interface to timeout after
|
83
|
-
# or let it use system default? none, it should not timeout by default..
|
84
|
+
# or let it use system default? none, it should not timeout by default..
|
84
85
|
# I think execute() may use 30 seconds for get by default.
|
85
86
|
# and it should remove timeout when method is post, put, or delete
|
86
87
|
def default_timeout
|
@@ -104,7 +105,7 @@ class Morpheus::APIClient
|
|
104
105
|
# set common global @options for use with all requests
|
105
106
|
# meant for inline use just like dry(), set_options(dry_run:true) can be used in place of dry()
|
106
107
|
# @param opts [Hash] globally supported options like :dry_run, :json, :curl, :headers, :timeout, etc
|
107
|
-
# Example:
|
108
|
+
# Example:
|
108
109
|
# Prints curl -XGET .../whoami -H "Bearer" instead of actually request
|
109
110
|
# APIClient.new(token).whoami.setopts(curl:true).get({})
|
110
111
|
# @return self (APIClient)
|
@@ -146,6 +147,7 @@ class Morpheus::APIClient
|
|
146
147
|
# :headers - Extra headers to add. This expects a Hash like {'Content-Type' => 'application/json'}.
|
147
148
|
# :timeout - A custom timeout in seconds for api requests. The default is 30. todo: separate timeout options
|
148
149
|
def execute(opts, options={})
|
150
|
+
# Morpheus::Logging::DarkPrinter.puts "Morpheus::RestClient.execute(#{opts})" if Morpheus::Logging.debug?
|
149
151
|
# ok, always prepend @base_url, let the caller specify it exactly or leave it off.
|
150
152
|
# this allows the Interface definition be lazy and not specify the base_url in every call to execute()
|
151
153
|
# it will be used though...
|
@@ -168,13 +170,13 @@ class Morpheus::APIClient
|
|
168
170
|
# convert to lowercase Symbol like :get, :post, :put, or :delete
|
169
171
|
opts[:method] = opts[:method].to_s.downcase.to_sym
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
# could validate method here...
|
173
175
|
|
174
176
|
# apply default headers
|
175
177
|
opts[:headers] ||= {}
|
176
178
|
|
177
|
-
is_multipart = (opts[:payload].is_a?(Hash) && opts[:payload][:multipart])
|
179
|
+
is_multipart = (opts[:payload].is_a?(Hash) && opts[:payload][:multipart] == true)
|
178
180
|
|
179
181
|
# Authorization: apply our access token
|
180
182
|
if authorization_required?
|
@@ -187,15 +189,20 @@ class Morpheus::APIClient
|
|
187
189
|
end
|
188
190
|
end
|
189
191
|
|
190
|
-
# Content-Type
|
191
|
-
|
192
|
-
|
193
|
-
|
192
|
+
# POST and PUT requests default Content-Type is application/json
|
193
|
+
# set Content-Type or pass :form_data => true if you want application/x-www-form-urlencoded
|
194
|
+
# or use opts[:payload][:multipart] = true if you need multipart/form-data
|
195
|
+
if opts[:method] == :post || opts[:method] == :put
|
196
|
+
if opts[:headers]['Content-Type'].nil? && opts[:payload] && is_multipart != true && opts[:form_data] != true
|
197
|
+
opts[:headers]['Content-Type'] = (default_content_type || 'application/json')
|
198
|
+
end
|
194
199
|
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
200
|
+
# Auto encode payload as JSON, just to be nice
|
201
|
+
if opts[:headers]['Content-Type'] == 'application/json' && !opts[:payload].is_a?(String)
|
202
|
+
opts[:payload] = opts[:payload].to_json
|
203
|
+
end
|
204
|
+
|
205
|
+
end
|
199
206
|
|
200
207
|
# always use custom timeout eg. from --timeout option
|
201
208
|
# or use default_timeout for GET requests only.
|
@@ -254,7 +261,7 @@ class Morpheus::APIClient
|
|
254
261
|
# end
|
255
262
|
|
256
263
|
# Morpheus::Logging::DarkPrinter.puts "Morpheus::RestClient.execute(#{opts})" if Morpheus::Logging.debug?
|
257
|
-
# instead, using ::RestClient.log = STDOUT
|
264
|
+
# instead, using ::RestClient.log = STDOUT
|
258
265
|
response = Morpheus::RestClient.execute(opts)
|
259
266
|
if opts[:parse_json] != false && options[:parse_json] != false
|
260
267
|
return JSON.parse(response.to_s)
|
@@ -317,11 +324,12 @@ class Morpheus::APIClient
|
|
317
324
|
|
318
325
|
def common_interface_options
|
319
326
|
{
|
320
|
-
url:
|
321
|
-
access_token:
|
322
|
-
refresh_token: @refresh_token,
|
323
|
-
expires_at:
|
324
|
-
client_id:
|
327
|
+
url: @base_url,
|
328
|
+
access_token: @access_token,
|
329
|
+
refresh_token: @refresh_token,
|
330
|
+
expires_at: @expires_at,
|
331
|
+
client_id: @client_id,
|
332
|
+
verify_ssl: @verify_ssl
|
325
333
|
}
|
326
334
|
end
|
327
335
|
|
@@ -336,10 +344,10 @@ class Morpheus::APIClient
|
|
336
344
|
def setup
|
337
345
|
Morpheus::SetupInterface.new(common_interface_options).setopts(@options)
|
338
346
|
end
|
339
|
-
|
347
|
+
|
340
348
|
def auth
|
341
349
|
# Morpheus::AuthInterface.new(common_interface_options).setopts(@options)
|
342
|
-
Morpheus::AuthInterface.new({url: @base_url, client_id: @client_id}).setopts(@options)
|
350
|
+
Morpheus::AuthInterface.new({url: @base_url, client_id: @client_id, verify_ssl: @verify_ssl}).setopts(@options)
|
343
351
|
end
|
344
352
|
|
345
353
|
def forgot
|
@@ -367,385 +375,393 @@ class Morpheus::APIClient
|
|
367
375
|
end
|
368
376
|
|
369
377
|
def options
|
370
|
-
Morpheus::OptionsInterface.new(
|
378
|
+
Morpheus::OptionsInterface.new(common_interface_options).setopts(@options)
|
371
379
|
end
|
372
380
|
|
373
381
|
def groups
|
374
|
-
Morpheus::GroupsInterface.new(
|
382
|
+
Morpheus::GroupsInterface.new(common_interface_options).setopts(@options)
|
375
383
|
end
|
376
384
|
|
377
385
|
def account_groups
|
378
|
-
Morpheus::AccountGroupsInterface.new(
|
386
|
+
Morpheus::AccountGroupsInterface.new(common_interface_options).setopts(@options)
|
379
387
|
end
|
380
388
|
|
381
389
|
def clouds
|
382
|
-
Morpheus::CloudsInterface.new(
|
390
|
+
Morpheus::CloudsInterface.new(common_interface_options).setopts(@options)
|
383
391
|
end
|
384
392
|
|
385
393
|
def cloud_datastores
|
386
|
-
Morpheus::CloudDatastoresInterface.new(
|
394
|
+
Morpheus::CloudDatastoresInterface.new(common_interface_options).setopts(@options)
|
387
395
|
end
|
388
396
|
|
389
397
|
def cloud_resource_pools
|
390
|
-
Morpheus::CloudResourcePoolsInterface.new(
|
398
|
+
Morpheus::CloudResourcePoolsInterface.new(common_interface_options).setopts(@options)
|
391
399
|
end
|
392
400
|
|
393
401
|
def cloud_folders
|
394
|
-
Morpheus::CloudFoldersInterface.new(
|
402
|
+
Morpheus::CloudFoldersInterface.new(common_interface_options).setopts(@options)
|
395
403
|
end
|
396
404
|
|
397
405
|
def datastores
|
398
|
-
Morpheus::DatastoresInterface.new(
|
406
|
+
Morpheus::DatastoresInterface.new(common_interface_options).setopts(@options)
|
399
407
|
end
|
400
408
|
|
401
409
|
def servers
|
402
|
-
Morpheus::ServersInterface.new(
|
410
|
+
Morpheus::ServersInterface.new(common_interface_options).setopts(@options)
|
403
411
|
end
|
404
412
|
|
405
413
|
def instances
|
406
|
-
Morpheus::InstancesInterface.new(
|
414
|
+
Morpheus::InstancesInterface.new(common_interface_options).setopts(@options)
|
407
415
|
end
|
408
416
|
|
409
417
|
def appliance_settings
|
410
|
-
Morpheus::ApplianceSettingsInterface.new(
|
418
|
+
Morpheus::ApplianceSettingsInterface.new(common_interface_options).setopts(@options)
|
411
419
|
end
|
412
420
|
|
413
421
|
def provisioning_settings
|
414
|
-
Morpheus::ProvisioningSettingsInterface.new(
|
422
|
+
Morpheus::ProvisioningSettingsInterface.new(common_interface_options).setopts(@options)
|
415
423
|
end
|
416
424
|
|
417
425
|
def provisioning_licenses
|
418
|
-
Morpheus::ProvisioningLicensesInterface.new(
|
426
|
+
Morpheus::ProvisioningLicensesInterface.new(common_interface_options).setopts(@options)
|
419
427
|
end
|
420
428
|
|
421
429
|
def provisioning_license_types
|
422
|
-
Morpheus::ProvisioningLicenseTypesInterface.new(
|
430
|
+
Morpheus::ProvisioningLicenseTypesInterface.new(common_interface_options).setopts(@options)
|
423
431
|
end
|
424
432
|
|
425
433
|
def containers
|
426
|
-
Morpheus::ContainersInterface.new(
|
434
|
+
Morpheus::ContainersInterface.new(common_interface_options).setopts(@options)
|
427
435
|
end
|
428
436
|
|
429
437
|
def instance_types
|
430
|
-
Morpheus::InstanceTypesInterface.new(
|
438
|
+
Morpheus::InstanceTypesInterface.new(common_interface_options).setopts(@options)
|
431
439
|
end
|
432
440
|
|
433
441
|
def integrations
|
434
|
-
Morpheus::IntegrationsInterface.new(
|
442
|
+
Morpheus::IntegrationsInterface.new(common_interface_options).setopts(@options)
|
443
|
+
end
|
444
|
+
|
445
|
+
def integration_types
|
446
|
+
Morpheus::IntegrationTypesInterface.new(common_interface_options).setopts(@options)
|
435
447
|
end
|
436
448
|
|
437
449
|
def jobs
|
438
|
-
Morpheus::JobsInterface.new(
|
450
|
+
Morpheus::JobsInterface.new(common_interface_options).setopts(@options)
|
439
451
|
end
|
440
452
|
|
441
453
|
def server_types
|
442
|
-
Morpheus::ServerTypesInterface.new(
|
454
|
+
Morpheus::ServerTypesInterface.new(common_interface_options).setopts(@options)
|
443
455
|
end
|
444
456
|
|
445
457
|
def provision_types
|
446
|
-
Morpheus::ProvisionTypesInterface.new(
|
458
|
+
Morpheus::ProvisionTypesInterface.new(common_interface_options).setopts(@options)
|
447
459
|
end
|
448
460
|
|
449
461
|
def service_plans
|
450
|
-
Morpheus::ServicePlansInterface.new(
|
462
|
+
Morpheus::ServicePlansInterface.new(common_interface_options).setopts(@options)
|
451
463
|
end
|
452
464
|
|
453
465
|
def price_sets
|
454
|
-
Morpheus::PriceSetsInterface.new(
|
466
|
+
Morpheus::PriceSetsInterface.new(common_interface_options).setopts(@options)
|
455
467
|
end
|
456
468
|
|
457
469
|
def prices
|
458
|
-
Morpheus::PricesInterface.new(
|
470
|
+
Morpheus::PricesInterface.new(common_interface_options).setopts(@options)
|
459
471
|
end
|
460
472
|
|
461
473
|
def load_balancers
|
462
|
-
Morpheus::LoadBalancersInterface.new(
|
474
|
+
Morpheus::LoadBalancersInterface.new(common_interface_options).setopts(@options)
|
463
475
|
end
|
464
476
|
|
465
477
|
def tasks
|
466
|
-
Morpheus::TasksInterface.new(
|
478
|
+
Morpheus::TasksInterface.new(common_interface_options).setopts(@options)
|
467
479
|
end
|
468
480
|
|
469
481
|
def task_sets
|
470
|
-
Morpheus::TaskSetsInterface.new(
|
482
|
+
Morpheus::TaskSetsInterface.new(common_interface_options).setopts(@options)
|
471
483
|
end
|
472
484
|
|
473
485
|
def virtual_images
|
474
|
-
Morpheus::VirtualImagesInterface.new(
|
486
|
+
Morpheus::VirtualImagesInterface.new(common_interface_options).setopts(@options)
|
475
487
|
end
|
476
488
|
|
477
489
|
def apps
|
478
|
-
Morpheus::AppsInterface.new(
|
490
|
+
Morpheus::AppsInterface.new(common_interface_options).setopts(@options)
|
479
491
|
end
|
480
492
|
|
481
493
|
def blueprints
|
482
|
-
Morpheus::BlueprintsInterface.new(
|
494
|
+
Morpheus::BlueprintsInterface.new(common_interface_options).setopts(@options)
|
483
495
|
end
|
484
496
|
|
485
497
|
def deploy
|
486
|
-
Morpheus::DeployInterface.new(
|
498
|
+
Morpheus::DeployInterface.new(common_interface_options).setopts(@options)
|
487
499
|
end
|
488
500
|
|
489
501
|
def deployments
|
490
|
-
Morpheus::DeploymentsInterface.new(
|
502
|
+
Morpheus::DeploymentsInterface.new(common_interface_options).setopts(@options)
|
491
503
|
end
|
492
504
|
|
493
505
|
def security_groups
|
494
|
-
Morpheus::SecurityGroupsInterface.new(
|
506
|
+
Morpheus::SecurityGroupsInterface.new(common_interface_options).setopts(@options)
|
495
507
|
end
|
496
508
|
|
497
509
|
def security_group_rules
|
498
|
-
Morpheus::SecurityGroupRulesInterface.new(
|
510
|
+
Morpheus::SecurityGroupRulesInterface.new(common_interface_options).setopts(@options)
|
499
511
|
end
|
500
512
|
|
501
513
|
def clusters
|
502
|
-
Morpheus::ClustersInterface.new(
|
514
|
+
Morpheus::ClustersInterface.new(common_interface_options).setopts(@options)
|
503
515
|
end
|
504
516
|
|
505
517
|
def accounts
|
506
|
-
Morpheus::AccountsInterface.new(
|
518
|
+
Morpheus::AccountsInterface.new(common_interface_options).setopts(@options)
|
507
519
|
end
|
508
520
|
|
509
521
|
def approvals
|
510
|
-
Morpheus::ApprovalsInterface.new(
|
522
|
+
Morpheus::ApprovalsInterface.new(common_interface_options).setopts(@options)
|
511
523
|
end
|
512
524
|
|
513
525
|
def users
|
514
|
-
Morpheus::UsersInterface.new(
|
526
|
+
Morpheus::UsersInterface.new(common_interface_options).setopts(@options)
|
515
527
|
end
|
516
528
|
|
517
529
|
def user_groups
|
518
|
-
Morpheus::UserGroupsInterface.new(
|
530
|
+
Morpheus::UserGroupsInterface.new(common_interface_options).setopts(@options)
|
519
531
|
end
|
520
532
|
|
521
533
|
def user_sources
|
522
|
-
Morpheus::UserSourcesInterface.new(
|
534
|
+
Morpheus::UserSourcesInterface.new(common_interface_options).setopts(@options)
|
523
535
|
end
|
524
536
|
|
525
537
|
def logs
|
526
|
-
Morpheus::LogsInterface.new(
|
538
|
+
Morpheus::LogsInterface.new(common_interface_options).setopts(@options)
|
527
539
|
end
|
528
540
|
|
529
541
|
def roles
|
530
|
-
Morpheus::RolesInterface.new(
|
542
|
+
Morpheus::RolesInterface.new(common_interface_options).setopts(@options)
|
531
543
|
end
|
532
544
|
|
533
545
|
def key_pairs
|
534
|
-
Morpheus::KeyPairsInterface.new(
|
546
|
+
Morpheus::KeyPairsInterface.new(common_interface_options).setopts(@options)
|
535
547
|
end
|
536
548
|
|
537
|
-
def
|
538
|
-
Morpheus::
|
549
|
+
def certificates
|
550
|
+
Morpheus::CertificatesInterface.new(common_interface_options).setopts(@options)
|
551
|
+
end
|
552
|
+
|
553
|
+
def certificate_types
|
554
|
+
Morpheus::CertificateTypesInterface.new(common_interface_options).setopts(@options)
|
539
555
|
end
|
540
556
|
|
541
|
-
def
|
542
|
-
Morpheus::
|
557
|
+
def license
|
558
|
+
Morpheus::LicenseInterface.new(common_interface_options).setopts(@options)
|
543
559
|
end
|
544
560
|
|
545
561
|
def option_types
|
546
|
-
Morpheus::OptionTypesInterface.new(
|
562
|
+
Morpheus::OptionTypesInterface.new(common_interface_options).setopts(@options)
|
547
563
|
end
|
548
564
|
|
549
565
|
def option_type_lists
|
550
|
-
Morpheus::OptionTypeListsInterface.new(
|
566
|
+
Morpheus::OptionTypeListsInterface.new(common_interface_options).setopts(@options)
|
551
567
|
end
|
552
568
|
|
553
569
|
def power_schedules
|
554
|
-
Morpheus::PowerSchedulesInterface.new(
|
570
|
+
Morpheus::PowerSchedulesInterface.new(common_interface_options).setopts(@options)
|
555
571
|
end
|
556
572
|
|
557
573
|
def execute_schedules
|
558
|
-
Morpheus::ExecuteSchedulesInterface.new(
|
574
|
+
Morpheus::ExecuteSchedulesInterface.new(common_interface_options).setopts(@options)
|
559
575
|
end
|
560
576
|
|
561
577
|
def monitoring
|
562
|
-
Morpheus::MonitoringInterface.new(
|
578
|
+
Morpheus::MonitoringInterface.new(common_interface_options).setopts(@options)
|
563
579
|
end
|
564
580
|
|
565
581
|
# def checks
|
566
|
-
# # Morpheus::MonitoringChecksInterface.new(
|
582
|
+
# # Morpheus::MonitoringChecksInterface.new(common_interface_options).setopts(@options)
|
567
583
|
# monitoring.checks
|
568
584
|
# end
|
569
585
|
|
570
586
|
# def incidents
|
571
|
-
# # Morpheus::MonitoringIncidentsInterface.new(
|
587
|
+
# # Morpheus::MonitoringIncidentsInterface.new(common_interface_options).setopts(@options)
|
572
588
|
# monitoring.incidents
|
573
589
|
# end
|
574
590
|
|
575
591
|
def policies
|
576
|
-
Morpheus::PoliciesInterface.new(
|
592
|
+
Morpheus::PoliciesInterface.new(common_interface_options).setopts(@options)
|
577
593
|
end
|
578
594
|
|
579
595
|
def group_policies
|
580
|
-
Morpheus::GroupPoliciesInterface.new(
|
596
|
+
Morpheus::GroupPoliciesInterface.new(common_interface_options).setopts(@options)
|
581
597
|
end
|
582
598
|
|
583
599
|
def cloud_policies
|
584
|
-
Morpheus::CloudPoliciesInterface.new(
|
600
|
+
Morpheus::CloudPoliciesInterface.new(common_interface_options).setopts(@options)
|
585
601
|
end
|
586
602
|
|
587
603
|
def networks
|
588
|
-
Morpheus::NetworksInterface.new(
|
604
|
+
Morpheus::NetworksInterface.new(common_interface_options).setopts(@options)
|
589
605
|
end
|
590
606
|
|
591
607
|
def network_types
|
592
|
-
Morpheus::NetworkTypesInterface.new(
|
608
|
+
Morpheus::NetworkTypesInterface.new(common_interface_options).setopts(@options)
|
593
609
|
end
|
594
610
|
|
595
611
|
def subnets
|
596
|
-
Morpheus::SubnetsInterface.new(
|
612
|
+
Morpheus::SubnetsInterface.new(common_interface_options).setopts(@options)
|
597
613
|
end
|
598
614
|
|
599
615
|
def subnet_types
|
600
|
-
Morpheus::SubnetTypesInterface.new(
|
616
|
+
Morpheus::SubnetTypesInterface.new(common_interface_options).setopts(@options)
|
601
617
|
end
|
602
618
|
|
603
619
|
def network_groups
|
604
|
-
Morpheus::NetworkGroupsInterface.new(
|
620
|
+
Morpheus::NetworkGroupsInterface.new(common_interface_options).setopts(@options)
|
605
621
|
end
|
606
622
|
|
607
623
|
def network_pools
|
608
|
-
Morpheus::NetworkPoolsInterface.new(
|
624
|
+
Morpheus::NetworkPoolsInterface.new(common_interface_options).setopts(@options)
|
609
625
|
end
|
610
626
|
|
611
627
|
def network_pool_ips
|
612
|
-
Morpheus::NetworkPoolIpsInterface.new(
|
628
|
+
Morpheus::NetworkPoolIpsInterface.new(common_interface_options).setopts(@options)
|
613
629
|
end
|
614
630
|
|
615
631
|
def network_routers
|
616
|
-
Morpheus::NetworkRoutersInterface.new(
|
632
|
+
Morpheus::NetworkRoutersInterface.new(common_interface_options).setopts(@options)
|
617
633
|
end
|
618
634
|
|
619
635
|
def network_services
|
620
|
-
Morpheus::NetworkServicesInterface.new(
|
636
|
+
Morpheus::NetworkServicesInterface.new(common_interface_options).setopts(@options)
|
621
637
|
end
|
622
638
|
|
623
639
|
def network_security_servers
|
624
|
-
Morpheus::NetworkSecurityServersInterface.new(
|
640
|
+
Morpheus::NetworkSecurityServersInterface.new(common_interface_options).setopts(@options)
|
625
641
|
end
|
626
642
|
|
627
643
|
def network_pool_servers
|
628
|
-
Morpheus::NetworkPoolServersInterface.new(
|
644
|
+
Morpheus::NetworkPoolServersInterface.new(common_interface_options).setopts(@options)
|
629
645
|
end
|
630
646
|
|
631
647
|
def network_domains
|
632
|
-
Morpheus::NetworkDomainsInterface.new(
|
648
|
+
Morpheus::NetworkDomainsInterface.new(common_interface_options).setopts(@options)
|
633
649
|
end
|
634
650
|
|
635
651
|
def network_domain_records
|
636
|
-
Morpheus::NetworkDomainRecordsInterface.new(
|
652
|
+
Morpheus::NetworkDomainRecordsInterface.new(common_interface_options).setopts(@options)
|
637
653
|
end
|
638
654
|
|
639
655
|
def network_proxies
|
640
|
-
Morpheus::NetworkProxiesInterface.new(
|
656
|
+
Morpheus::NetworkProxiesInterface.new(common_interface_options).setopts(@options)
|
641
657
|
end
|
642
658
|
|
643
659
|
def archive_buckets
|
644
|
-
Morpheus::ArchiveBucketsInterface.new(
|
660
|
+
Morpheus::ArchiveBucketsInterface.new(common_interface_options).setopts(@options)
|
645
661
|
end
|
646
662
|
|
647
663
|
def archive_files
|
648
|
-
Morpheus::ArchiveFilesInterface.new(
|
664
|
+
Morpheus::ArchiveFilesInterface.new(common_interface_options).setopts(@options)
|
649
665
|
end
|
650
666
|
|
651
667
|
def image_builder
|
652
|
-
Morpheus::ImageBuilderInterface.new(
|
668
|
+
Morpheus::ImageBuilderInterface.new(common_interface_options).setopts(@options)
|
653
669
|
end
|
654
670
|
|
655
671
|
def storage_providers
|
656
|
-
Morpheus::StorageProvidersInterface.new(
|
672
|
+
Morpheus::StorageProvidersInterface.new(common_interface_options).setopts(@options)
|
657
673
|
end
|
658
674
|
|
659
675
|
def library_instance_types
|
660
|
-
Morpheus::LibraryInstanceTypesInterface.new(
|
676
|
+
Morpheus::LibraryInstanceTypesInterface.new(common_interface_options).setopts(@options)
|
661
677
|
end
|
662
678
|
|
663
679
|
def library_layouts
|
664
|
-
Morpheus::LibraryLayoutsInterface.new(
|
680
|
+
Morpheus::LibraryLayoutsInterface.new(common_interface_options).setopts(@options)
|
665
681
|
end
|
666
682
|
|
667
683
|
def library_container_upgrades
|
668
|
-
Morpheus::LibraryContainerUpgradesInterface.new(
|
684
|
+
Morpheus::LibraryContainerUpgradesInterface.new(common_interface_options).setopts(@options)
|
669
685
|
end
|
670
686
|
|
671
687
|
def library_container_types
|
672
|
-
Morpheus::LibraryContainerTypesInterface.new(
|
688
|
+
Morpheus::LibraryContainerTypesInterface.new(common_interface_options).setopts(@options)
|
673
689
|
end
|
674
690
|
|
675
691
|
def library_container_scripts
|
676
|
-
Morpheus::LibraryContainerScriptsInterface.new(
|
692
|
+
Morpheus::LibraryContainerScriptsInterface.new(common_interface_options).setopts(@options)
|
677
693
|
end
|
678
694
|
|
679
695
|
def library_container_templates
|
680
|
-
Morpheus::LibraryContainerTemplatesInterface.new(
|
696
|
+
Morpheus::LibraryContainerTemplatesInterface.new(common_interface_options).setopts(@options)
|
681
697
|
end
|
682
698
|
|
683
699
|
def library_cluster_layouts
|
684
|
-
Morpheus::LibraryClusterLayoutsInterface.new(
|
700
|
+
Morpheus::LibraryClusterLayoutsInterface.new(common_interface_options).setopts(@options)
|
685
701
|
end
|
686
702
|
|
687
703
|
def library_spec_templates
|
688
|
-
Morpheus::LibrarySpecTemplatesInterface.new(
|
704
|
+
Morpheus::LibrarySpecTemplatesInterface.new(common_interface_options).setopts(@options)
|
689
705
|
end
|
690
706
|
|
691
707
|
def library_spec_template_types
|
692
|
-
Morpheus::LibrarySpecTemplateTypesInterface.new(
|
708
|
+
Morpheus::LibrarySpecTemplateTypesInterface.new(common_interface_options).setopts(@options)
|
693
709
|
end
|
694
710
|
|
695
711
|
def packages
|
696
|
-
Morpheus::PackagesInterface.new(
|
712
|
+
Morpheus::PackagesInterface.new(common_interface_options).setopts(@options)
|
697
713
|
end
|
698
714
|
|
699
715
|
def cypher
|
700
|
-
Morpheus::CypherInterface.new(
|
716
|
+
Morpheus::CypherInterface.new(common_interface_options).setopts(@options)
|
701
717
|
end
|
702
718
|
|
703
719
|
def old_cypher
|
704
|
-
Morpheus::OldCypherInterface.new(
|
720
|
+
Morpheus::OldCypherInterface.new(common_interface_options).setopts(@options)
|
705
721
|
end
|
706
722
|
|
707
723
|
def execution_request
|
708
|
-
Morpheus::ExecutionRequestInterface.new(
|
724
|
+
Morpheus::ExecutionRequestInterface.new(common_interface_options).setopts(@options)
|
709
725
|
end
|
710
726
|
|
711
727
|
def file_copy_request
|
712
|
-
Morpheus::FileCopyRequestInterface.new(
|
728
|
+
Morpheus::FileCopyRequestInterface.new(common_interface_options).setopts(@options)
|
713
729
|
end
|
714
730
|
|
715
731
|
def processes
|
716
|
-
Morpheus::ProcessesInterface.new(
|
732
|
+
Morpheus::ProcessesInterface.new(common_interface_options).setopts(@options)
|
717
733
|
end
|
718
734
|
|
719
735
|
def reports
|
720
|
-
Morpheus::ReportsInterface.new(
|
736
|
+
Morpheus::ReportsInterface.new(common_interface_options).setopts(@options)
|
721
737
|
end
|
722
738
|
|
723
739
|
def environments
|
724
|
-
Morpheus::EnvironmentsInterface.new(
|
740
|
+
Morpheus::EnvironmentsInterface.new(common_interface_options).setopts(@options)
|
725
741
|
end
|
726
742
|
|
727
743
|
def backup_settings
|
728
|
-
Morpheus::BackupSettingsInterface.new(
|
744
|
+
Morpheus::BackupSettingsInterface.new(common_interface_options).setopts(@options)
|
729
745
|
end
|
730
746
|
|
731
747
|
def log_settings
|
732
|
-
Morpheus::LogSettingsInterface.new(
|
748
|
+
Morpheus::LogSettingsInterface.new(common_interface_options).setopts(@options)
|
733
749
|
end
|
734
750
|
|
735
751
|
def whitelabel_settings
|
736
|
-
Morpheus::WhitelabelSettingsInterface.new(
|
752
|
+
Morpheus::WhitelabelSettingsInterface.new(common_interface_options).setopts(@options)
|
737
753
|
end
|
738
754
|
|
739
755
|
def wiki
|
740
|
-
Morpheus::WikiInterface.new(
|
756
|
+
Morpheus::WikiInterface.new(common_interface_options).setopts(@options)
|
741
757
|
end
|
742
758
|
|
743
759
|
def budgets
|
744
|
-
Morpheus::BudgetsInterface.new(
|
760
|
+
Morpheus::BudgetsInterface.new(common_interface_options).setopts(@options)
|
745
761
|
end
|
746
762
|
|
747
763
|
def health
|
748
|
-
Morpheus::HealthInterface.new(
|
764
|
+
Morpheus::HealthInterface.new(common_interface_options).setopts(@options)
|
749
765
|
end
|
750
766
|
|
751
767
|
def invoices
|
@@ -757,7 +773,7 @@ class Morpheus::APIClient
|
|
757
773
|
end
|
758
774
|
|
759
775
|
def guidance
|
760
|
-
Morpheus::GuidanceInterface.new(
|
776
|
+
Morpheus::GuidanceInterface.new(common_interface_options).setopts(@options)
|
761
777
|
end
|
762
778
|
|
763
779
|
def projects
|
@@ -787,7 +803,27 @@ class Morpheus::APIClient
|
|
787
803
|
def billing
|
788
804
|
Morpheus::BillingInterface.new(common_interface_options).setopts(@options)
|
789
805
|
end
|
790
|
-
|
806
|
+
|
807
|
+
def vdi
|
808
|
+
Morpheus::VdiInterface.new(common_interface_options).setopts(@options)
|
809
|
+
end
|
810
|
+
|
811
|
+
def vdi_pools
|
812
|
+
Morpheus::VdiPoolsInterface.new(common_interface_options).setopts(@options)
|
813
|
+
end
|
814
|
+
|
815
|
+
def vdi_allocations
|
816
|
+
Morpheus::VdiAllocationsInterface.new(common_interface_options).setopts(@options)
|
817
|
+
end
|
818
|
+
|
819
|
+
def vdi_apps
|
820
|
+
Morpheus::VdiAppsInterface.new(common_interface_options).setopts(@options)
|
821
|
+
end
|
822
|
+
|
823
|
+
def vdi_gateways
|
824
|
+
Morpheus::VdiGatewaysInterface.new(common_interface_options).setopts(@options)
|
825
|
+
end
|
826
|
+
|
791
827
|
# add new interfaces here
|
792
828
|
|
793
829
|
protected
|