Class ChangeRequest

    • Method Detail

      • getZone

        public String getZone()
        Returns the name of the Zone associated with this change request.
      • getDns

        public Dns getDns()
        Returns the change request's Dns object used to issue requests.
      • reload

        public ChangeRequest reload​(Dns.ChangeRequestOption... options)
        Retrieves the up-to-date information about the change request from Google Cloud DNS. Parameter options can be used to restrict the fields to be included in the updated object the same way as in Dns.getChangeRequest(String, String, Dns.ChangeRequestOption...). If options are provided, any field other than generatedId which is not included in the options will be null regardless of whether they are initialized or not in this instance.
        Returns:
        an object with the updated information or null if it does not exist
        Throws:
        DnsException - upon failure of the API call or if the associated zone was not found
      • isDone

        public boolean isDone()
        Returns true if the change request has been completed. If the status is not ChangeRequestInfo.Status.DONE already, the method makes an API call to Google Cloud DNS to update the change request first.
        Throws:
        DnsException - upon failure of the API call or if the associated zone was not found