Sha256: d160429a9e5c6a2253ea52f2540a2e43b51cb4904c123b2db112de41ca0a5650

Contents?: true

Size: 993 Bytes

Versions: 14

Compression:

Stored size: 993 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

14 entries across 14 versions & 1 rubygems

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