Sha256: 5c5961756a32b488a46ac404bdc0bce1f84e68998d6782241b9c6936d97ba750

Contents?: true

Size: 999 Bytes

Versions: 7

Compression:

Stored size: 999 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def insert_address(_address_name, _region_name, _options = {})
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end

      class Real
        # Create an address resource in the specified project
        # https://cloud.google.com/compute/docs/reference/latest/addresses/insert
        #
        # @param address_name [String] Project ID for this address
        # @param region_name [String] Region for address
        # @param options [Hash] Optional hash of options
        # @option options [String] :description Description of resource
        def insert_address(address_name, region_name, options = {})
          address = ::Google::Apis::ComputeV1::Address.new(
            :name => address_name,
            :description => options[:description]
          )
          @compute.insert_address(@project, region_name, address)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
gitlab-fog-google-1.14.0 lib/fog/compute/google/requests/insert_address.rb
fog-google-1.13.0 lib/fog/compute/google/requests/insert_address.rb
gitlab-fog-google-1.13.0 lib/fog/compute/google/requests/insert_address.rb
fog-google-1.12.1 lib/fog/compute/google/requests/insert_address.rb
fog-google-1.12.0 lib/fog/compute/google/requests/insert_address.rb
fog-google-1.11.0 lib/fog/compute/google/requests/insert_address.rb
fog-google-1.10.0 lib/fog/compute/google/requests/insert_address.rb