Sha256: cdfa6328fc6be4a5f3f8891fa16c7deccd6f234620b6a55ce0bb046aac3c1000

Contents?: true

Size: 738 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 2 rubygems

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