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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +15 -0
- data/CONTRIBUTING.md +14 -0
- data/LICENSE +21 -0
- data/README.md +239 -0
- data/Rakefile +30 -0
- data/contracts/additional_rest/network_policies.json +94 -0
- data/contracts/additional_rest/prometheus.json +103 -0
- data/contracts/graphql/fly_go_operations.json +948 -0
- data/contracts/graphql/flyctl_named_operations.graphql +316 -0
- data/contracts/graphql/flyctl_operations.json +336 -0
- data/contracts/graphql/official_examples.json +75 -0
- data/contracts/graphql/schema.graphql +10995 -0
- data/contracts/graphql/source.json +29 -0
- data/contracts/machines/openapi.headers +9 -0
- data/contracts/machines/openapi.json +1 -0
- data/contracts/machines/source.json +20 -0
- data/contracts/public_surface_inventory.json +164 -0
- data/contracts/research_metadata.json +17 -0
- data/contracts/sources/metrics.html.md +474 -0
- data/contracts/sources/network-policies.html.markerb +142 -0
- data/docs/API.md +149 -0
- data/docs/SURFACES.md +60 -0
- data/lib/fly_io/client.rb +52 -0
- data/lib/fly_io/configuration.rb +115 -0
- data/lib/fly_io/errors.rb +45 -0
- data/lib/fly_io/generated/additional_operations.json +123 -0
- data/lib/fly_io/generated/graphql_operations.json +1658 -0
- data/lib/fly_io/generated/operations.json +6130 -0
- data/lib/fly_io/generated/prometheus_operations.json +503 -0
- data/lib/fly_io/generated/schemas.json +4237 -0
- data/lib/fly_io/graphql_client.rb +103 -0
- data/lib/fly_io/model.rb +65 -0
- data/lib/fly_io/operation_registry.rb +79 -0
- data/lib/fly_io/redactor.rb +34 -0
- data/lib/fly_io/resources/base.rb +68 -0
- data/lib/fly_io/resources.rb +30 -0
- data/lib/fly_io/response.rb +45 -0
- data/lib/fly_io/schema_registry.rb +89 -0
- data/lib/fly_io/schema_validator.rb +56 -0
- data/lib/fly_io/transport.rb +282 -0
- data/lib/fly_io/version.rb +5 -0
- data/lib/fly_io.rb +23 -0
- data/script/check_api_coverage +60 -0
- data/script/fetch_openapi +18 -0
- data/script/generate_api +302 -0
- 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
|
+
}
|