Sha256: 4e5e50e75009e47d5b0ee6b415f893f8582bff18d75c0575ca1971c1fae6ae6b

Contents?: true

Size: 1.08 KB

Versions: 14

Compression:

Stored size: 1.08 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)
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        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

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-1.24.1 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.24.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.23.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.22.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.21.1 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.21.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.20.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.19.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.18.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.17.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.16.1 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.16.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.15.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb
fog-google-1.14.0 lib/fog/compute/google/requests/insert_instance_group_manager.rb