Class: Opsmgr::Api::Version20::Endpoints
- Inherits:
-
Object
- Object
- Opsmgr::Api::Version20::Endpoints
- Defined in:
- lib/opsmgr/api/version20/endpoints.rb
Constant Summary collapse
- VERSION =
'2.0'.freeze
Instance Method Summary collapse
- #add_product_path ⇒ Object
- #api_setup_path ⇒ Object
- #api_user_path ⇒ Object
- #download_staged_manifest(product_guid) ⇒ Object
- #export_installation_path ⇒ Object
- #import_installation_path ⇒ Object
- #import_stemcell_path ⇒ Object
- #install_post_path ⇒ Object
- #installation_log_path(id) ⇒ Object
- #installation_path ⇒ Object
- #installation_settings_get_path ⇒ Object
- #installation_settings_post_path ⇒ Object
- #installed_products_path ⇒ Object
- #list_components_path ⇒ Object
- #list_products_path ⇒ Object
- #login_ensure_availability ⇒ Object
- #mark_for_deletion_path(product_guid) ⇒ Object
- #product_manifest_path(product_guid) ⇒ Object
- #root_ca_certificate_path ⇒ Object
- #show_installation_status(id) ⇒ Object
- #uaa_create_user ⇒ Object
- #uaa_get_user_by_username_path(username) ⇒ Object
- #upgrade_product_path(product_guid) ⇒ Object
- #upload_product_form_key ⇒ Object
- #upload_product_path ⇒ Object
- #version ⇒ Object
Instance Method Details
#add_product_path ⇒ Object
47 48 49 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 47 def add_product_path '/api/installation_settings/products' end |
#api_setup_path ⇒ Object
31 32 33 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 31 def api_setup_path '/api/setup' end |
#api_user_path ⇒ Object
27 28 29 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 27 def api_user_path '/api/user' end |
#download_staged_manifest(product_guid) ⇒ Object
75 76 77 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 75 def download_staged_manifest(product_guid) "/api/v0/staged/products/#{product_guid}/manifest" end |
#export_installation_path ⇒ Object
79 80 81 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 79 def export_installation_path '/api/installation_asset_collection' end |
#import_installation_path ⇒ Object
83 84 85 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 83 def import_installation_path '/api/installation_asset_collection' end |
#import_stemcell_path ⇒ Object
91 92 93 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 91 def import_stemcell_path '/api/stemcells' end |
#install_post_path ⇒ Object
19 20 21 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 19 def install_post_path '/api/installation?ignore_warnings=1' end |
#installation_log_path(id) ⇒ Object
39 40 41 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 39 def installation_log_path(id) "/api/installation/#{id}/logs" end |
#installation_path ⇒ Object
23 24 25 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 23 def installation_path '/api/installation' end |
#installation_settings_get_path ⇒ Object
15 16 17 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 15 def installation_settings_get_path '/api/installation_settings' end |
#installation_settings_post_path ⇒ Object
11 12 13 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 11 def installation_settings_post_path '/api/installation_settings' end |
#installed_products_path ⇒ Object
67 68 69 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 67 def installed_products_path '/api/installation_settings/products' end |
#list_components_path ⇒ Object
59 60 61 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 59 def list_components_path '/api/components' end |
#list_products_path ⇒ Object
63 64 65 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 63 def list_products_path '/api/products' end |
#login_ensure_availability ⇒ Object
107 108 109 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 107 def login_ensure_availability '/login/ensure_availability' end |
#mark_for_deletion_path(product_guid) ⇒ Object
87 88 89 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 87 def mark_for_deletion_path(product_guid) "/api/installation_settings/products/#{product_guid}" end |
#product_manifest_path(product_guid) ⇒ Object
71 72 73 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 71 def product_manifest_path(product_guid) "/api/manifests/#{product_guid}" end |
#root_ca_certificate_path ⇒ Object
95 96 97 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 95 def root_ca_certificate_path '/api/v0/security/root_ca_certificate' end |
#show_installation_status(id) ⇒ Object
35 36 37 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 35 def show_installation_status(id) "/api/installation/#{id}" end |
#uaa_create_user ⇒ Object
103 104 105 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 103 def uaa_create_user '/uaa/Users' end |
#uaa_get_user_by_username_path(username) ⇒ Object
99 100 101 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 99 def uaa_get_user_by_username_path(username) "/uaa/Users?attributes=id&filter=userName%20eq%20'#{username}'" end |
#upgrade_product_path(product_guid) ⇒ Object
51 52 53 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 51 def upgrade_product_path(product_guid) "/api/installation_settings/products/#{product_guid}" end |
#upload_product_form_key ⇒ Object
55 56 57 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 55 def upload_product_form_key 'product' end |
#upload_product_path ⇒ Object
43 44 45 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 43 def upload_product_path '/api/products' end |
#version ⇒ Object
7 8 9 |
# File 'lib/opsmgr/api/version20/endpoints.rb', line 7 def version VERSION end |