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



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

def add_product_path
  '/api/installation_settings/products'
end

#api_setup_pathObject



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

def api_setup_path
  '/api/setup'
end

#api_user_pathObject



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_pathObject



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

def export_installation_path
  '/api/installation_asset_collection'
end

#import_installation_pathObject



83
84
85
# File 'lib/opsmgr/api/version20/endpoints.rb', line 83

def import_installation_path
  '/api/installation_asset_collection'
end

#import_stemcell_pathObject



91
92
93
# File 'lib/opsmgr/api/version20/endpoints.rb', line 91

def import_stemcell_path
  '/api/stemcells'
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



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

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



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

def installed_products_path
  '/api/installation_settings/products'
end

#list_components_pathObject



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

def list_components_path
  '/api/components'
end

#list_products_pathObject



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

def list_products_path
  '/api/products'
end

#login_ensure_availabilityObject



107
108
109
# File 'lib/opsmgr/api/version20/endpoints.rb', line 107

def 
  '/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_pathObject



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_userObject



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_keyObject



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

def upload_product_form_key
  'product'
end

#upload_product_pathObject



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

def upload_product_path
  '/api/products'
end

#versionObject



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

def version
  VERSION
end