Sha256: f9162b0954569b673e8bd571d558cd2fe5dbab325de88367222b2dd9521c2c1f

Contents?: true

Size: 732 Bytes

Versions: 14

Compression:

Stored size: 732 Bytes

Contents

module Fog
  module DNS
    class Google
      ##
      # Atomically updates a ResourceRecordSet collection.
      #
      # @see https://cloud.google.com/dns/api/v1/changes/create
      class Real
        def create_change(zone_name_or_id, additions = [], deletions = [])
          @dns.create_change(
            @project, zone_name_or_id,
            ::Google::Apis::DnsV1::Change.new(
              additions: additions,
              deletions: deletions
            )
          )
        end
      end

      class Mock
        def create_change(_zone_name_or_id, _additions = [], _deletions = [])
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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