{"action":"created","comment":{"url":"https://api.github.com/repos/packethost/packngo/pulls/comments/205132082","pull_request_review_id":140340565,"id":205132082,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTEzMjA4Mg==","diff_hunk":"@@ -0,0 +1,108 @@\n+package packngo\n+\n+import (\n+\t\"fmt\"\n+\t\"math\"\n+)\n+\n+const spotMarketRequestBasePath = \"/spot-market-requests\"\n+\n+type SpotMarketRequestService interface {\n+\tList(string) ([]SpotMarketRequest, *Response, error)\n+\tCreate(*SpotMarketRequestCreateRequest, string) (*SpotMarketRequest, *Response, error)\n+\tDelete(string, bool) (*Response, error)\n+\tGet(string) (*SpotMarketRequest, *Response, error)\n+}\n+\n+type SpotMarketRequestCreateRequest struct {\n+\tDevicesMax  int        `json:\"devices_max\"`\n+\tDevicesMin  int        `json:\"devices_min\"`\n+\tEndAt       *Timestamp `json:\"end_at,omitempty\"`\n+\tFacilityIDs []string   `json:\"facility_ids\"`\n+\tMaxBidPrice float64    `json:\"max_bid_price\"`\n+\n+\tParameters InstanceParameters `json:\"instance_parameters\"`\n+}\n+\n+type SpotMarketRequest struct {\n+\tSpotMarketRequestCreateRequest\n+\tID         string     `json:\"id\"`\n+\tDevices    []Device   `json:\"devices\"`\n+\tFacilities []Facility `json:\"facilities\"`\n+\tProject    Project    `json:\"project\"`\n+\tHref       string     `json:\"href\"`\n+}\n+\n+type InstanceParameters struct {","path":"spotmarketrequest.go","position":null,"original_position":36,"commit_id":"8347ca704c5691f80ea50b20d89255f2d088a924","original_commit_id":"ea18866850e7a777738ec03f1d5231e7492b9b36","user":{"login":"t0mk","id":1223677,"node_id":"MDQ6VXNlcjEyMjM2Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1223677?v=4","gravatar_id":"","url":"https://api.github.com/users/t0mk","html_url":"https://github.com/t0mk","followers_url":"https://api.github.com/users/t0mk/followers","following_url":"https://api.github.com/users/t0mk/following{/other_user}","gists_url":"https://api.github.com/users/t0mk/gists{/gist_id}","starred_url":"https://api.github.com/users/t0mk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t0mk/subscriptions","organizations_url":"https://api.github.com/users/t0mk/orgs","repos_url":"https://api.github.com/users/t0mk/repos","events_url":"https://api.github.com/users/t0mk/events{/privacy}","received_events_url":"https://api.github.com/users/t0mk/received_events","type":"User","site_admin":false},"body":"fixed to SpotMarketRequestInstanceParameters","created_at":"2018-07-25T14:30:59Z","updated_at":"2018-07-25T14:31:00Z","html_url":"https://github.com/packethost/packngo/pull/73#discussion_r205132082","pull_request_url":"https://api.github.com/repos/packethost/packngo/pulls/73","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/packethost/packngo/pulls/comments/205132082"},"html":{"href":"https://github.com/packethost/packngo/pull/73#discussion_r205132082"},"pull_request":{"href":"https://api.github.com/repos/packethost/packngo/pulls/73"}},"in_reply_to_id":204905760},"pull_request":{"url":"https://api.github.com/repos/packethost/packngo/pulls/73","id":184333022,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg0MzMzMDIy","html_url":"https://github.com/packethost/packngo/pull/73","diff_url":"https://github.com/packethost/packngo/pull/73.diff","patch_url":"https://github.com/packethost/packngo/pull/73.patch","issue_url":"https://api.github.com/repos/packethost/packngo/issues/73","number":73,"state":"open","locked":false,"title":"Spot market bid - new resource and tests","user":{"login":"t0mk","id":1223677,"node_id":"MDQ6VXNlcjEyMjM2Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1223677?v=4","gravatar_id":"","url":"https://api.github.com/users/t0mk","html_url":"https://github.com/t0mk","followers_url":"https://api.github.com/users/t0mk/followers","following_url":"https://api.github.com/users/t0mk/following{/other_user}","gists_url":"https://api.github.com/users/t0mk/gists{/gist_id}","starred_url":"https://api.github.com/users/t0mk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t0mk/subscriptions","organizations_url":"https://api.github.com/users/t0mk/orgs","repos_url":"https://api.github.com/users/t0mk/repos","events_url":"https://api.github.com/users/t0mk/events{/privacy}","received_events_url":"https://api.github.com/users/t0mk/received_events","type":"User","site_admin":false},"body":"This adds support for the Spot Market Request\r\n\r\nhttps://www.packet.net/developers/api/spotmarketrequest/\r\n\r\nhttps://www.packet.net/resources/changelog/persistent-spot-market-bid/\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/packethost/packngo/73)\n<!-- Reviewable:end -->\n","created_at":"2018-04-26T13:03:38Z","updated_at":"2018-07-25T14:31:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"569bdd7813906501d7b140023b18308e1f095206","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/packethost/packngo/pulls/73/commits","review_comments_url":"https://api.github.com/repos/packethost/packngo/pulls/73/comments","review_comment_url":"https://api.github.com/repos/packethost/packngo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/packethost/packngo/issues/73/comments","statuses_url":"https://api.github.com/repos/packethost/packngo/statuses/8347ca704c5691f80ea50b20d89255f2d088a924","head":{"label":"t0mk:spot-market-bid","ref":"spot-market-bid","sha":"8347ca704c5691f80ea50b20d89255f2d088a924","user":{"login":"t0mk","id":1223677,"node_id":"MDQ6VXNlcjEyMjM2Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1223677?v=4","gravatar_id":"","url":"https://api.github.com/users/t0mk","html_url":"https://github.com/t0mk","followers_url":"https://api.github.com/users/t0mk/followers","following_url":"https://api.github.com/users/t0mk/following{/other_user}","gists_url":"https://api.github.com/users/t0mk/gists{/gist_id}","starred_url":"https://api.github.com/users/t0mk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t0mk/subscriptions","organizations_url":"https://api.github.com/users/t0mk/orgs","repos_url":"https://api.github.com/users/t0mk/repos","events_url":"https://api.github.com/users/t0mk/events{/privacy}","received_events_url":"https://api.github.com/users/t0mk/received_events","type":"User","site_admin":false},"repo":{"id":99801326,"node_id":"MDEwOlJlcG9zaXRvcnk5OTgwMTMyNg==","name":"packngo","full_name":"t0mk/packngo","owner":{"login":"t0mk","id":1223677,"node_id":"MDQ6VXNlcjEyMjM2Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1223677?v=4","gravatar_id":"","url":"https://api.github.com/users/t0mk","html_url":"https://github.com/t0mk","followers_url":"https://api.github.com/users/t0mk/followers","following_url":"https://api.github.com/users/t0mk/following{/other_user}","gists_url":"https://api.github.com/users/t0mk/gists{/gist_id}","starred_url":"https://api.github.com/users/t0mk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t0mk/subscriptions","organizations_url":"https://api.github.com/users/t0mk/orgs","repos_url":"https://api.github.com/users/t0mk/repos","events_url":"https://api.github.com/users/t0mk/events{/privacy}","received_events_url":"https://api.github.com/users/t0mk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/t0mk/packngo","description":"Packet Go Api Client","fork":true,"url":"https://api.github.com/repos/t0mk/packngo","forks_url":"https://api.github.com/repos/t0mk/packngo/forks","keys_url":"https://api.github.com/repos/t0mk/packngo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t0mk/packngo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t0mk/packngo/teams","hooks_url":"https://api.github.com/repos/t0mk/packngo/hooks","issue_events_url":"https://api.github.com/repos/t0mk/packngo/issues/events{/number}","events_url":"https://api.github.com/repos/t0mk/packngo/events","assignees_url":"https://api.github.com/repos/t0mk/packngo/assignees{/user}","branches_url":"https://api.github.com/repos/t0mk/packngo/branches{/branch}","tags_url":"https://api.github.com/repos/t0mk/packngo/tags","blobs_url":"https://api.github.com/repos/t0mk/packngo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t0mk/packngo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t0mk/packngo/git/refs{/sha}","trees_url":"https://api.github.com/repos/t0mk/packngo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t0mk/packngo/statuses/{sha}","languages_url":"https://api.github.com/repos/t0mk/packngo/languages","stargazers_url":"https://api.github.com/repos/t0mk/packngo/stargazers","contributors_url":"https://api.github.com/repos/t0mk/packngo/contributors","subscribers_url":"https://api.github.com/repos/t0mk/packngo/subscribers","subscription_url":"https://api.github.com/repos/t0mk/packngo/subscription","commits_url":"https://api.github.com/repos/t0mk/packngo/commits{/sha}","git_commits_url":"https://api.github.com/repos/t0mk/packngo/git/commits{/sha}","comments_url":"https://api.github.com/repos/t0mk/packngo/comments{/number}","issue_comment_url":"https://api.github.com/repos/t0mk/packngo/issues/comments{/number}","contents_url":"https://api.github.com/repos/t0mk/packngo/contents/{+path}","compare_url":"https://api.github.com/repos/t0mk/packngo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t0mk/packngo/merges","archive_url":"https://api.github.com/repos/t0mk/packngo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t0mk/packngo/downloads","issues_url":"https://api.github.com/repos/t0mk/packngo/issues{/number}","pulls_url":"https://api.github.com/repos/t0mk/packngo/pulls{/number}","milestones_url":"https://api.github.com/repos/t0mk/packngo/milestones{/number}","notifications_url":"https://api.github.com/repos/t0mk/packngo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t0mk/packngo/labels{/name}","releases_url":"https://api.github.com/repos/t0mk/packngo/releases{/id}","deployments_url":"https://api.github.com/repos/t0mk/packngo/deployments","created_at":"2017-08-09T11:34:13Z","updated_at":"2017-08-09T11:34:17Z","pushed_at":"2018-07-25T14:27:56Z","git_url":"git://github.com/t0mk/packngo.git","ssh_url":"git@github.com:t0mk/packngo.git","clone_url":"https://github.com/t0mk/packngo.git","svn_url":"https://github.com/t0mk/packngo","homepage":null,"size":188,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"packethost:master","ref":"master","sha":"b627120f2da509ca7ff76faf2bbdf6794d873616","user":{"login":"packethost","id":7982021,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5ODIwMjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7982021?v=4","gravatar_id":"","url":"https://api.github.com/users/packethost","html_url":"https://github.com/packethost","followers_url":"https://api.github.com/users/packethost/followers","following_url":"https://api.github.com/users/packethost/following{/other_user}","gists_url":"https://api.github.com/users/packethost/gists{/gist_id}","starred_url":"https://api.github.com/users/packethost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/packethost/subscriptions","organizations_url":"https://api.github.com/users/packethost/orgs","repos_url":"https://api.github.com/users/packethost/repos","events_url":"https://api.github.com/users/packethost/events{/privacy}","received_events_url":"https://api.github.com/users/packethost/received_events","type":"Organization","site_admin":false},"repo":{"id":32229506,"node_id":"MDEwOlJlcG9zaXRvcnkzMjIyOTUwNg==","name":"packngo","full_name":"packethost/packngo","owner":{"login":"packethost","id":7982021,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5ODIwMjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7982021?v=4","gravatar_id":"","url":"https://api.github.com/users/packethost","html_url":"https://github.com/packethost","followers_url":"https://api.github.com/users/packethost/followers","following_url":"https://api.github.com/users/packethost/following{/other_user}","gists_url":"https://api.github.com/users/packethost/gists{/gist_id}","starred_url":"https://api.github.com/users/packethost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/packethost/subscriptions","organizations_url":"https://api.github.com/users/packethost/orgs","repos_url":"https://api.github.com/users/packethost/repos","events_url":"https://api.github.com/users/packethost/events{/privacy}","received_events_url":"https://api.github.com/users/packethost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/packethost/packngo","description":"Packet Go Api Client","fork":false,"url":"https://api.github.com/repos/packethost/packngo","forks_url":"https://api.github.com/repos/packethost/packngo/forks","keys_url":"https://api.github.com/repos/packethost/packngo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/packethost/packngo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/packethost/packngo/teams","hooks_url":"https://api.github.com/repos/packethost/packngo/hooks","issue_events_url":"https://api.github.com/repos/packethost/packngo/issues/events{/number}","events_url":"https://api.github.com/repos/packethost/packngo/events","assignees_url":"https://api.github.com/repos/packethost/packngo/assignees{/user}","branches_url":"https://api.github.com/repos/packethost/packngo/branches{/branch}","tags_url":"https://api.github.com/repos/packethost/packngo/tags","blobs_url":"https://api.github.com/repos/packethost/packngo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/packethost/packngo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/packethost/packngo/git/refs{/sha}","trees_url":"https://api.github.com/repos/packethost/packngo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/packethost/packngo/statuses/{sha}","languages_url":"https://api.github.com/repos/packethost/packngo/languages","stargazers_url":"https://api.github.com/repos/packethost/packngo/stargazers","contributors_url":"https://api.github.com/repos/packethost/packngo/contributors","subscribers_url":"https://api.github.com/repos/packethost/packngo/subscribers","subscription_url":"https://api.github.com/repos/packethost/packngo/subscription","commits_url":"https://api.github.com/repos/packethost/packngo/commits{/sha}","git_commits_url":"https://api.github.com/repos/packethost/packngo/git/commits{/sha}","comments_url":"https://api.github.com/repos/packethost/packngo/comments{/number}","issue_comment_url":"https://api.github.com/repos/packethost/packngo/issues/comments{/number}","contents_url":"https://api.github.com/repos/packethost/packngo/contents/{+path}","compare_url":"https://api.github.com/repos/packethost/packngo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/packethost/packngo/merges","archive_url":"https://api.github.com/repos/packethost/packngo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/packethost/packngo/downloads","issues_url":"https://api.github.com/repos/packethost/packngo/issues{/number}","pulls_url":"https://api.github.com/repos/packethost/packngo/pulls{/number}","milestones_url":"https://api.github.com/repos/packethost/packngo/milestones{/number}","notifications_url":"https://api.github.com/repos/packethost/packngo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/packethost/packngo/labels{/name}","releases_url":"https://api.github.com/repos/packethost/packngo/releases{/id}","deployments_url":"https://api.github.com/repos/packethost/packngo/deployments","created_at":"2015-03-14T20:00:22Z","updated_at":"2018-07-25T09:31:17Z","pushed_at":"2018-07-25T14:28:02Z","git_url":"git://github.com/packethost/packngo.git","ssh_url":"git@github.com:packethost/packngo.git","clone_url":"https://github.com/packethost/packngo.git","svn_url":"https://github.com/packethost/packngo","homepage":null,"size":230,"stargazers_count":41,"watchers_count":41,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":32,"open_issues":19,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/packethost/packngo/pulls/73"},"html":{"href":"https://github.com/packethost/packngo/pull/73"},"issue":{"href":"https://api.github.com/repos/packethost/packngo/issues/73"},"comments":{"href":"https://api.github.com/repos/packethost/packngo/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/packethost/packngo/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/packethost/packngo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/packethost/packngo/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/packethost/packngo/statuses/8347ca704c5691f80ea50b20d89255f2d088a924"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"t0mk"}}