Class: Opsmgr::Api::Version20::Endpoints

Inherits:
Object
  • Object
show all
Defined in:
lib/opsmgr/api/version20/endpoints.rb

Constant Summary collapse

VERSION =
'2.0'.freeze

Instance Method Summary collapse

Instance Method Details

#add_product_pathObject



43
44
45
# File 'lib/opsmgr/api/version20/endpoints.rb', line 43

def add_product_path
  '/api/installation_settings/products'
end

#configure_user_pathObject



27
28
29
# File 'lib/opsmgr/api/version20/endpoints.rb', line 27

def configure_user_path
  '/api/users'
end

#export_installation_pathObject



71
72
73
# File 'lib/opsmgr/api/version20/endpoints.rb', line 71

def export_installation_path
  '/api/installation_asset_collection'
end

#import_installation_pathObject



75
76
77
# File 'lib/opsmgr/api/version20/endpoints.rb', line 75

def import_installation_path
  '/api/installation_asset_collection'
end

#install_post_pathObject



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



35
36
37
# File 'lib/opsmgr/api/version20/endpoints.rb', line 35

def installation_log_path(id)
  "/api/installation/#{id}/logs"
end

#installation_pathObject



23
24
25
# File 'lib/opsmgr/api/version20/endpoints.rb', line 23

def installation_path
  '/api/installation'
end

#installation_settings_get_pathObject



15
16
17
# File 'lib/opsmgr/api/version20/endpoints.rb', line 15

def installation_settings_get_path
  '/api/installation_settings'
end

#installation_settings_post_pathObject



11
12
13
# File 'lib/opsmgr/api/version20/endpoints.rb', line 11

def installation_settings_post_path
  '/api/installation_settings'
end

#installed_products_pathObject



63
64
65
# File 'lib/opsmgr/api/version20/endpoints.rb', line 63

def installed_products_path
  '/api/installation_settings/products'
end

#list_components_pathObject



55
56
57
# File 'lib/opsmgr/api/version20/endpoints.rb', line 55

def list_components_path
  '/api/components'
end

#list_products_pathObject



59
60
61
# File 'lib/opsmgr/api/version20/endpoints.rb', line 59

def list_products_path
  '/api/products'
end

#mark_for_deletion_path(product_guid) ⇒ Object



79
80
81
# File 'lib/opsmgr/api/version20/endpoints.rb', line 79

def mark_for_deletion_path(product_guid)
  "/api/installation_settings/products/#{product_guid}"
end

#product_manifest_path(product_guid) ⇒ Object



67
68
69
# File 'lib/opsmgr/api/version20/endpoints.rb', line 67

def product_manifest_path(product_guid)
  "/api/manifests/#{product_guid}"
end

#show_installation_status(id) ⇒ Object



31
32
33
# File 'lib/opsmgr/api/version20/endpoints.rb', line 31

def show_installation_status(id)
  "/api/installation/#{id}"
end

#upgrade_product_path(product_guid) ⇒ Object



47
48
49
# File 'lib/opsmgr/api/version20/endpoints.rb', line 47

def upgrade_product_path(product_guid)
  "/api/installation_settings/products/#{product_guid}"
end

#upload_product_form_keyObject



51
52
53
# File 'lib/opsmgr/api/version20/endpoints.rb', line 51

def upload_product_form_key
  'product'
end

#upload_product_pathObject



39
40
41
# File 'lib/opsmgr/api/version20/endpoints.rb', line 39

def upload_product_path
  '/api/products'
end

#versionObject



7
8
9
# File 'lib/opsmgr/api/version20/endpoints.rb', line 7

def version
  VERSION
end