Sha256: 5b4150f1a28ab00eadee88de37d9ed75882bdf57832ea6a39b00f9346ccfb817
Contents?: true
Size: 894 Bytes
Versions: 21
Compression:
Stored size: 894 Bytes
Contents
module Fog module Compute class Google class Mock def set_server_scheduling(_identity, _zone, _on_host_maintenance, _automatic_restart, _preemptible) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: 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
21 entries across 21 versions & 2 rubygems