Sha256: 0a89376af3faa382f80361ec9abab6ef600043665eb8f76d4ec5675fdfbedb27
Contents?: true
Size: 945 Bytes
Versions: 9
Compression:
Stored size: 945 Bytes
Contents
module Fog module Compute class Google class Mock def recreate_instances(_instance_group_manager, _instances) Fog::Mock.not_implemented end end class Real def recreate_instances(instance_group_manager, instances) request = ::Google::Apis::ComputeV1::InstanceGroupManagersAbandonInstancesRequest.new( :instances => instances.map{ |i| i.class == String ? i : i.self_link } ) if instance_group_manager.zone zone = instance_group_manager.zone.split("/")[-1] @compute.recreate_instance_group_manager_instances(@project, zone, instance_group_manager.name, request) else region = instance_group_manager.region.split("/")[-1] @compute.recreate_region_instance_group_manager_instances(@project, region, instance_group_manager.name, request) end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems