Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix volumes update method #1759

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion machines/api/volumes-resource.html.markerb
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@
<%= render(CodeToggleComponent.new(badge: 'GET', title: '/v1/apps/{app_name}/volumes')) do |component| %>
<% component.with_curl do %>
curl -i -X GET \\
    -H "Authorization: Bearer ${FLY_API_TOKEN}" -H "Content-Type: application/json" \\

Check failure on line 97 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'JSON' instead of 'json'. Raw Output: {"message": "[Vale.Terms] Use 'JSON' instead of 'json'.", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 97, "column": 79}}}, "severity": "ERROR"}
    "${FLY_API_HOSTNAME}/v1/apps/my-app-name/volumes" 
<% end %>
<% component.with_json do %>

Check failure on line 100 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'JSON' instead of 'json'. Raw Output: {"message": "[Vale.Terms] Use 'JSON' instead of 'json'.", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 100, "column": 25}}}, "severity": "ERROR"}
no body
<% end %>
<% component.with_json_table do %>
Expand All @@ -123,7 +123,7 @@
"block_size": 4096,
"blocks_free": 768244,
"blocks_avail": 730163,
"fstype": "ext4",

Check warning on line 126 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'fstype' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'fstype' a typo?", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 126, "column": 10}}}, "severity": "INFO"}
"snapshot_retention": 5,
"host_dedication_key": ""
},
Expand All @@ -142,7 +142,7 @@
"block_size": 4096,
"blocks_free": 751360,
"blocks_avail": 708148,
"fstype": "ext4",

Check warning on line 145 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'fstype' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'fstype' a typo?", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 145, "column": 10}}}, "severity": "INFO"}
"snapshot_retention": 5,
"host_dedication_key": ""
}
Expand Down Expand Up @@ -176,7 +176,7 @@
<%= render(CodeToggleComponent.new(badge: 'POST', title: '/v1/apps/{app_name}/volumes')) do |component| %>
<% component.with_curl do %>
curl -i -X POST \\
     -H "Authorization: Bearer ${FLY_API_TOKEN}" -H "Content-Type: application/json" \\

Check failure on line 179 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'JSON' instead of 'json'. Raw Output: {"message": "[Vale.Terms] Use 'JSON' instead of 'json'.", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 179, "column": 81}}}, "severity": "ERROR"}
     "${FLY_API_HOSTNAME}/v1/apps/my-app-name/volumes" \\
   -d '{
  "name": "my_app_vol",
Expand All @@ -184,7 +184,7 @@
  "size_gb": 10
}'
<% end %>
<% component.with_json do %>

Check failure on line 187 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'JSON' instead of 'json'. Raw Output: {"message": "[Vale.Terms] Use 'JSON' instead of 'json'.", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 187, "column": 25}}}, "severity": "ERROR"}
{
"compute": {
"cpu_kind": "string",
Expand All @@ -198,7 +198,7 @@
"memory_mb": 0
},
"encrypted": true,
"fstype": "string",

Check warning on line 201 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'fstype' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'fstype' a typo?", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 201, "column": 10}}}, "severity": "INFO"}
"machines_only": true,
"name": "string",
"region": "string",
Expand Down Expand Up @@ -239,7 +239,7 @@
    "block_size": 0,
    "blocks_free": 0,
    "blocks_avail": 0,
    "fstype": "",

Check warning on line 242 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'fstype' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'fstype' a typo?", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 242, "column": 6}}}, "severity": "INFO"}
    "snapshot_retention": 5,
    "host_dedication_key": ""
}
Expand Down Expand Up @@ -278,10 +278,10 @@
<%= render(CodeToggleComponent.new(badge: 'GET', title: '/v1/apps/{app_name}/volumes/{volume_id}')) do |component| %>
<% component.with_curl do %>
curl -i -X GET \\
 -H "Authorization: Bearer ${FLY_API_TOKEN}" -H "Content-Type: application/json" \\

Check failure on line 281 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'JSON' instead of 'json'. Raw Output: {"message": "[Vale.Terms] Use 'JSON' instead of 'json'.", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 281, "column": 84}}}, "severity": "ERROR"}
 "${FLY_API_HOSTNAME}/v1/apps/my-app-name/volumes/vol_6r7ye90k98ynwk1r" 
<% end %>
<% component.with_json do %>

Check failure on line 284 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'JSON' instead of 'json'. Raw Output: {"message": "[Vale.Terms] Use 'JSON' instead of 'json'.", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 284, "column": 25}}}, "severity": "ERROR"}
no body
<% end %>
<% component.with_json_table do %>
Expand All @@ -306,7 +306,7 @@
    "block_size": 4096,
    "blocks_free": 768244,
    "blocks_avail": 730163,
    "fstype": "ext4",

Check warning on line 309 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'fstype' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'fstype' a typo?", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 309, "column": 6}}}, "severity": "INFO"}
    "snapshot_retention": 5,
    "host_dedication_key": ""
}
Expand All @@ -316,7 +316,7 @@

## Update a volume

Update paratemeters on the volume.

Check warning on line 319 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'paratemeters' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'paratemeters' a typo?", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 319, "column": 8}}}, "severity": "INFO"}

<div class="api-section" data-exclude-render>
<div data-exclude-render>
Expand Down Expand Up @@ -344,14 +344,14 @@
<div data-exclude-render>
<%= render(CodeToggleComponent.new(badge: 'PUT', title: '/v1/apps/{app_name}/volumes/{volume_id}')) do |component| %>
<% component.with_curl do %>
curl -i -X POST \\
curl -i -X PUT \\
     -H "Authorization: Bearer ${FLY_API_TOKEN}" -H "Content-Type: application/json" \\

Check failure on line 348 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'JSON' instead of 'json'. Raw Output: {"message": "[Vale.Terms] Use 'JSON' instead of 'json'.", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 348, "column": 81}}}, "severity": "ERROR"}
     "${FLY_API_HOSTNAME}/v1/apps/my-app-name/volumes/vol_6r7ye90k98ynwk1r" \\
   -d '{
  "snapshot_retention": 10
}'
<% end %>
<% component.with_json do %>

Check failure on line 354 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'JSON' instead of 'json'. Raw Output: {"message": "[Vale.Terms] Use 'JSON' instead of 'json'.", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 354, "column": 25}}}, "severity": "ERROR"}
{
"compute": {
"cpu_kind": "string",
Expand All @@ -365,7 +365,7 @@
"memory_mb": 0
},
"encrypted": true,
"fstype": "string",

Check warning on line 368 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'fstype' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'fstype' a typo?", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 368, "column": 10}}}, "severity": "INFO"}
"machines_only": true,
"name": "string",
"region": "string",
Expand Down Expand Up @@ -398,7 +398,7 @@
    "block_size": 0,
    "blocks_free": 0,
    "blocks_avail": 0,
    "fstype": "",

Check warning on line 401 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'fstype' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'fstype' a typo?", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 401, "column": 6}}}, "severity": "INFO"}
    "snapshot_retention": 10,
    "host_dedication_key": ""
}
Expand Down Expand Up @@ -439,7 +439,7 @@
<%= render(CodeToggleComponent.new(badge: 'DELETE', title: '/v1/apps/{app_name}/volumes/{volume_id}')) do |component| %>
<% component.with_curl do %>
curl -i -X DELETE \\
    -H "Authorization: Bearer ${FLY_API_TOKEN}" -H "Content-Type: application/json" \\

Check failure on line 442 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'JSON' instead of 'json'. Raw Output: {"message": "[Vale.Terms] Use 'JSON' instead of 'json'.", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 442, "column": 79}}}, "severity": "ERROR"}
    "${FLY_API_HOSTNAME}/v1/apps/my-app-name/volumes/vol_6r7ye90k98ynwk1r" 
<% end %>
<% component.with_json do %>
Expand All @@ -458,7 +458,7 @@
    "state": "destroyed",
    "size_gb": 3,
    "region": "yyz",
    "zone": "aeee",

Check warning on line 461 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'aeee' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'aeee' a typo?", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 461, "column": 14}}}, "severity": "INFO"}
    "encrypted": true,
    "attached_machine_id": null,
    "attached_alloc_id": null,
Expand All @@ -467,7 +467,7 @@
    "block_size": 0,
    "blocks_free": 0,
    "blocks_avail": 0,
    "fstype": "",

Check warning on line 470 in machines/api/volumes-resource.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'fstype' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'fstype' a typo?", "location": {"path": "machines/api/volumes-resource.html.markerb", "range": {"start": {"line": 470, "column": 6}}}, "severity": "INFO"}
    "snapshot_retention": 0,
    "host_dedication_key": ""
}
Expand Down
Loading