module DLDInternet::OpenSRS::API::Domain::MixIns::Modify::DomainLockState

Public Instance Methods

SetDomainLockState(domain,state=1) click to toggle source

noinspection RubyUnnecessaryReturnValue

# File lib/dldinternet/opensrs/api/domain/mixins/modify/domainlockstate.rb, line 12
def SetDomainLockState(domain,state=1)

  data = {
      object: 'DOMAIN',
      action: 'MODIFY',
      attributes: {
          type: 'lock_state',
          data: 'status',
          domain: domain,
          lock_state: state,
          affect_domains: 0,
      },
  }
  getResponse(data, 'response_text')
end