Sha256: 94758a1899224c50001192fb3a48e0e515ffa67c9be5560d48b695de071fcba9
Contents?: true
Size: 842 Bytes
Versions: 20
Compression:
Stored size: 842 Bytes
Contents
module Fog module Compute class Google class Mock def set_server_scheduling(_identity, _zone, _on_host_maintenance, _automatic_restart, _preemptible) Fog::Mock.not_implemented end end class Real def set_server_scheduling(identity, zone, on_host_maintenance: nil, automatic_restart: nil, preemptible: nil) scheduling = ::Google::Apis::ComputeV1::Scheduling.new scheduling.on_host_maintenance = on_host_maintenance unless on_host_maintenance.nil? scheduling.automatic_restart = automatic_restart unless automatic_restart.nil? scheduling.preemptible = preemptible unless preemptible.nil? zone = zone.split("/")[-1] @compute.set_instance_scheduling(@project, zone, identity, scheduling) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems