Sha256: e92ce3bdb7d6091965aea6fa276354213a52319b520f0058d4b7b70512e355dd

Contents?: true

Size: 1.05 KB

Versions: 9

Compression:

Stored size: 1.05 KB

Contents

module Fog
  module Compute
    class Google
      class Mock
        def insert_instance_group_manager(_name, _zone, _instance_template, _base_instance_name,
                                          _target_size, _target_pools, _named_ports, _description)
          Fog::Mock.not_implemented
        end
      end

      class Real
        def insert_instance_group_manager(name, zone, instance_template, base_instance_name,
                                          target_size, target_pools, named_ports, description)
          instance_group_manager = ::Google::Apis::ComputeV1::InstanceGroupManager.new(
            :description => description,
            :name => name,
            :instance_template => instance_template.self_link,
            :base_instance_name => base_instance_name,
            :target_size => target_size,
            :named_ports => named_ports || [],
            :target_pools => target_pools || [],
          )

          @compute.insert_instance_group_manager(@project, zone, instance_group_manager)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-google-1.9.1 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.9.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.8.2 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.8.1 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.8.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.7.1 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.7.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.6.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.5.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb