-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
161 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# frozen_string_literal: true | ||
|
||
module Dnsimple | ||
module Struct | ||
class DomainRestore < Base | ||
|
||
# @return [Integer] The domain restore ID in DNSimple. | ||
attr_accessor :id | ||
|
||
# @return [Integer] The associated domain ID. | ||
attr_accessor :domain_id | ||
|
||
# @return [String] The state of the restore. | ||
attr_accessor :state | ||
|
||
# @return [String] When the domain restore was created in DNSimple. | ||
attr_accessor :created_at | ||
|
||
# @return [String] When the domain restore was last updated in DNSimple. | ||
attr_accessor :updated_at | ||
|
||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
HTTP/1.1 201 Created | ||
Server: nginx | ||
Date: Fri, 09 Dec 2016 19:46:57 GMT | ||
Content-Type: application/json; charset=utf-8 | ||
Connection: keep-alive | ||
X-RateLimit-Limit: 2400 | ||
X-RateLimit-Remaining: 2394 | ||
X-RateLimit-Reset: 1481315245 | ||
ETag: W/"179d85ea8a26a3d5dc76e42de2d7918e" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Request-Id: ba6f2707-5df0-4ffa-b91b-51d4460bab8e | ||
X-Runtime: 13.571302 | ||
X-Content-Type-Options: nosniff | ||
X-Download-Options: noopen | ||
X-Frame-Options: DENY | ||
X-Permitted-Cross-Domain-Policies: none | ||
X-XSS-Protection: 1; mode=block | ||
Strict-Transport-Security: max-age=31536000 | ||
|
||
{"data":{"id":1,"domain_id":999,"state":"restored","created_at":"2016-12-09T19:46:45Z","updated_at":"2016-12-12T19:46:45Z"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
HTTP/1.1 201 Created | ||
Server: nginx | ||
Date: Fri, 09 Dec 2016 19:46:57 GMT | ||
Content-Type: application/json; charset=utf-8 | ||
Connection: keep-alive | ||
X-RateLimit-Limit: 2400 | ||
X-RateLimit-Remaining: 2394 | ||
X-RateLimit-Reset: 1481315245 | ||
ETag: W/"179d85ea8a26a3d5dc76e42de2d7918e" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Request-Id: ba6f2707-5df0-4ffa-b91b-51d4460bab8e | ||
X-Runtime: 13.571302 | ||
X-Content-Type-Options: nosniff | ||
X-Download-Options: noopen | ||
X-Frame-Options: DENY | ||
X-Permitted-Cross-Domain-Policies: none | ||
X-XSS-Protection: 1; mode=block | ||
Strict-Transport-Security: max-age=31536000 | ||
|
||
{"data":{"id":1,"domain_id":999,"state":"new","created_at":"2016-12-09T19:46:45Z","updated_at":"2016-12-09T19:46:45Z"}} |