fly_io 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +15 -0
  3. data/CONTRIBUTING.md +14 -0
  4. data/LICENSE +21 -0
  5. data/README.md +239 -0
  6. data/Rakefile +30 -0
  7. data/contracts/additional_rest/network_policies.json +94 -0
  8. data/contracts/additional_rest/prometheus.json +103 -0
  9. data/contracts/graphql/fly_go_operations.json +948 -0
  10. data/contracts/graphql/flyctl_named_operations.graphql +316 -0
  11. data/contracts/graphql/flyctl_operations.json +336 -0
  12. data/contracts/graphql/official_examples.json +75 -0
  13. data/contracts/graphql/schema.graphql +10995 -0
  14. data/contracts/graphql/source.json +29 -0
  15. data/contracts/machines/openapi.headers +9 -0
  16. data/contracts/machines/openapi.json +1 -0
  17. data/contracts/machines/source.json +20 -0
  18. data/contracts/public_surface_inventory.json +164 -0
  19. data/contracts/research_metadata.json +17 -0
  20. data/contracts/sources/metrics.html.md +474 -0
  21. data/contracts/sources/network-policies.html.markerb +142 -0
  22. data/docs/API.md +149 -0
  23. data/docs/SURFACES.md +60 -0
  24. data/lib/fly_io/client.rb +52 -0
  25. data/lib/fly_io/configuration.rb +115 -0
  26. data/lib/fly_io/errors.rb +45 -0
  27. data/lib/fly_io/generated/additional_operations.json +123 -0
  28. data/lib/fly_io/generated/graphql_operations.json +1658 -0
  29. data/lib/fly_io/generated/operations.json +6130 -0
  30. data/lib/fly_io/generated/prometheus_operations.json +503 -0
  31. data/lib/fly_io/generated/schemas.json +4237 -0
  32. data/lib/fly_io/graphql_client.rb +103 -0
  33. data/lib/fly_io/model.rb +65 -0
  34. data/lib/fly_io/operation_registry.rb +79 -0
  35. data/lib/fly_io/redactor.rb +34 -0
  36. data/lib/fly_io/resources/base.rb +68 -0
  37. data/lib/fly_io/resources.rb +30 -0
  38. data/lib/fly_io/response.rb +45 -0
  39. data/lib/fly_io/schema_registry.rb +89 -0
  40. data/lib/fly_io/schema_validator.rb +56 -0
  41. data/lib/fly_io/transport.rb +282 -0
  42. data/lib/fly_io/version.rb +5 -0
  43. data/lib/fly_io.rb +23 -0
  44. data/script/check_api_coverage +60 -0
  45. data/script/fetch_openapi +18 -0
  46. data/script/generate_api +302 -0
  47. metadata +197 -0
@@ -0,0 +1,123 @@
1
+ {
2
+ "generated_from": {
3
+ "documentation_url": "https://fly.io/docs/machines/guides-examples/network-policies/",
4
+ "source_revision": "1e8cac5f0fd7a82e66e3b01ece3a10a8ecb2b7e3",
5
+ "source_path": "machines/guides-examples/network-policies.html.markerb",
6
+ "source_sha256": "fa64b69db56beb1da2de60e3ff91820b628a1238a120d103c2f3bae16e2fcc1f",
7
+ "retrieved_at": "2026-08-26T21:00:00Z"
8
+ },
9
+ "counts": {
10
+ "operations": 3,
11
+ "schemas": 5
12
+ },
13
+ "limitations": [
14
+ "This official guide is not represented in the Machines OpenAPI document.",
15
+ "The guide documents methods, paths, authentication, and request shape, but no response status or schema."
16
+ ],
17
+ "operations": [
18
+ {
19
+ "identity": "POST /v1/apps/{app_name}/network_policies NetworkPolicies_upsert",
20
+ "operation_id": "NetworkPolicies_upsert",
21
+ "method": "post",
22
+ "path": "/v1/apps/{app_name}/network_policies",
23
+ "summary": "Create or update a network policy",
24
+ "parameters": [
25
+ {
26
+ "name": "app_name",
27
+ "ruby_name": "app_name",
28
+ "in": "path",
29
+ "required": true,
30
+ "schema": {
31
+ "type": "string"
32
+ }
33
+ }
34
+ ],
35
+ "request_body": {
36
+ "required": true,
37
+ "content_types": [
38
+ "application/json"
39
+ ],
40
+ "schema": {
41
+ "$ref": "#/additional/schemas/NetworkPolicyRequest"
42
+ }
43
+ },
44
+ "responses": {},
45
+ "surface": "network_policies_rest",
46
+ "stability": "stable_documented",
47
+ "base_url": "https://api.machines.dev",
48
+ "tags": [
49
+ "Network Policies"
50
+ ],
51
+ "ruby_resource": "network_policies",
52
+ "ruby_method": "upsert",
53
+ "public_ruby_method": "FlyIO::Client#network_policies.upsert"
54
+ },
55
+ {
56
+ "identity": "GET /v1/apps/{app_name}/network_policies/ NetworkPolicies_list",
57
+ "operation_id": "NetworkPolicies_list",
58
+ "method": "get",
59
+ "path": "/v1/apps/{app_name}/network_policies/",
60
+ "summary": "List network policies",
61
+ "parameters": [
62
+ {
63
+ "name": "app_name",
64
+ "ruby_name": "app_name",
65
+ "in": "path",
66
+ "required": true,
67
+ "schema": {
68
+ "type": "string"
69
+ }
70
+ }
71
+ ],
72
+ "request_body": null,
73
+ "responses": {},
74
+ "surface": "network_policies_rest",
75
+ "stability": "stable_documented",
76
+ "base_url": "https://api.machines.dev",
77
+ "tags": [
78
+ "Network Policies"
79
+ ],
80
+ "ruby_resource": "network_policies",
81
+ "ruby_method": "list",
82
+ "public_ruby_method": "FlyIO::Client#network_policies.list"
83
+ },
84
+ {
85
+ "identity": "DELETE /v1/apps/{app_name}/network_policies/{policy_id} NetworkPolicies_delete",
86
+ "operation_id": "NetworkPolicies_delete",
87
+ "method": "delete",
88
+ "path": "/v1/apps/{app_name}/network_policies/{policy_id}",
89
+ "summary": "Delete a network policy",
90
+ "parameters": [
91
+ {
92
+ "name": "app_name",
93
+ "ruby_name": "app_name",
94
+ "in": "path",
95
+ "required": true,
96
+ "schema": {
97
+ "type": "string"
98
+ }
99
+ },
100
+ {
101
+ "name": "policy_id",
102
+ "ruby_name": "policy_id",
103
+ "in": "path",
104
+ "required": true,
105
+ "schema": {
106
+ "type": "string"
107
+ }
108
+ }
109
+ ],
110
+ "request_body": null,
111
+ "responses": {},
112
+ "surface": "network_policies_rest",
113
+ "stability": "stable_documented",
114
+ "base_url": "https://api.machines.dev",
115
+ "tags": [
116
+ "Network Policies"
117
+ ],
118
+ "ruby_resource": "network_policies",
119
+ "ruby_method": "delete",
120
+ "public_ruby_method": "FlyIO::Client#network_policies.delete"
121
+ }
122
+ ]
123
+ }