Sha256: 661ff1e3b4284d1951181fba1272932cb1770ff41fc657eb1af0b45544c04e07
Contents?: true
Size: 1.69 KB
Versions: 1
Compression:
Stored size: 1.69 KB
Contents
module Fog module OracleCloud class Database class Real def list_patches(db_name) response = request( :expects => 200, :method => 'GET', :path => "/paas/api/v1.1/instancemgmt/#{@identity_domain}/services/dbaas/instances/#{db_name}/patches/available" ) response end end class Mock def list_patches(db_name) response = Excon::Response.new # Fake a patch response.body = { 'availablePatches' => [{ "patchId"=>"23054246-SE", "patchNumber"=>"Patch_12.1.0.2.160719_SE", "patchCategory"=>"DB", "patchSeverity"=>"Normal", "includesConfigUpgrade"=>false, "patchDescription"=>"DB 12.1.0.2.160719 Jul 2016 PSU Standard Edition image", "patchReleaseUrl"=>"https://support.oracle.com/epmos/faces/PatchDetail?patchId=23054246", "serviceType"=>"DBaaS", "serviceVersion"=>"12.1.0.2", "releaseDate"=>"2016-07-16T01:40:00.000+0000", "entryDate"=>"2016-10-07T20:57:33.121+0000", "entryUserId"=>"OCLOUD9_SM_PLATFORM_APPID", "patchType"=>"PSU", "requiresRestart"=> true, "serviceTypeVersions"=>"ANY", "isDeleted"=> false, "isCustomerVisible"=> false, "isAutoApply"=> false, "induceDownTime"=> false, "displayName"=>"12.1.0.2.160719", "releaseVersion"=>"12.1.0.2.160719", "serviceEditions"=>"SE", }] } response end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-oraclecloud-0.1.17 | lib/fog/oraclecloud/requests/database/list_patches.rb |