@@ -134,7 +134,7 @@ actions:
134134 " x-codeSamples " :
135135 - " lang " : " java"
136136 " label " : " GetDeployments"
137- " source " : " package hello.world;\n\n import java.lang.Exception;\n import org.openapis.openapi.HathoraCloud;\n import org.openapis.openapi.models.errors.ApiError;\n import org.openapis.openapi.models.operations.GetDeploymentsResponse;\n import org.openapis.openapi.models.shared.Security;\n\n public class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .appId(\" app-af469a92-5b45-4565-b3c4-b79878de67d2\" )\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\" HATHORA_DEV_TOKEN\" , \"\" ))\n .build())\n .build();\n\n GetDeploymentsResponse res = sdk.deploymentsV3().getDeployments()\n .deploymentTag(\" alpha\" )\n .buildTag(\" 0.1.14-14c793\" )\n .call();\n\n if (res.deploymentsV3Page().isPresent()) {\n // handle response\n }\n }\n }"
137+ "source": "package hello.world;\n\nimport java.lang.Exception;\nimport org.openapis.openapi.HathoraCloud;\nimport org.openapis.openapi.models.errors.ApiError;\nimport org.openapis.openapi.models.operations.GetDeploymentsRequest;\nimport org.openapis.openapi.models.operations.GetDeploymentsResponse;\nimport org.openapis.openapi.models.shared.Security;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\"HATHORA_DEV_TOKEN\", \"\"))\n .build())\n .build();\n\n GetDeploymentsRequest req = GetDeploymentsRequest.builder()\n .deploymentTag(\"alpha\")\n .buildTag(\"0.1.14-14c793\")\n .build();\n\n GetDeploymentsResponse res = sdk.deploymentsV3().getDeployments()\n .request(req)\n .call();\n\n if (res.deploymentsV3Page().isPresent()) {\n // handle response\n }\n }\n}"
138138 - target : $["paths"]["/deployments/v3/apps/{appId}/deployments"]["post"]
139139 update :
140140 " x-codeSamples " :
@@ -243,18 +243,18 @@ actions:
243243 - " lang " : " java"
244244 " label " : " GetFleetRegion"
245245 "source": "package hello.world;\n\nimport java.lang.Exception;\nimport org.openapis.openapi.HathoraCloud;\nimport org.openapis.openapi.models.errors.ApiError;\nimport org.openapis.openapi.models.operations.GetFleetRegionResponse;\nimport org.openapis.openapi.models.shared.Region;\nimport org.openapis.openapi.models.shared.Security;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .orgId(\"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\")\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\"HATHORA_DEV_TOKEN\", \"\"))\n .build())\n .build();\n\n GetFleetRegionResponse res = sdk.fleetsV2().getFleetRegion()\n .fleetId(\"<id>\")\n .region(Region.SINGAPORE)\n .call();\n\n if (res.fleetRegion().isPresent()) {\n // handle response\n }\n }\n}"
246- - target : $["paths"]["/fleets/v2/fleets/{fleetId}/regions/{region}"]["put"]
247- update :
248- " x-codeSamples " :
249- - " lang " : " java"
250- " label " : " UpdateFleetRegion"
251- "source": "package hello.world;\n\nimport java.lang.Exception;\nimport org.openapis.openapi.HathoraCloud;\nimport org.openapis.openapi.models.errors.ApiError;\nimport org.openapis.openapi.models.operations.UpdateFleetRegionRequest;\nimport org.openapis.openapi.models.operations.UpdateFleetRegionResponse;\nimport org.openapis.openapi.models.shared.*;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .orgId(\"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\")\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\"HATHORA_DEV_TOKEN\", \"\"))\n .build())\n .build();\n\n UpdateFleetRegionRequest req = UpdateFleetRegionRequest.builder()\n .fleetId(\"<id>\")\n .region(Region.CHICAGO)\n .fleetRegionConfig(FleetRegionConfig.builder()\n .cloudMinVcpus(503995)\n .build())\n .build();\n\n UpdateFleetRegionResponse res = sdk.fleetsV2().updateFleetRegion()\n .request(req)\n .call();\n\n // handle response\n }\n}"
252246 - target : $["paths"]["/fleets/v2/fleets/{fleetId}/regions/{region}/metrics"]["get"]
253247 update :
254248 " x-codeSamples " :
255249 - " lang " : " java"
256250 " label " : " GetFleetRegionMetrics"
257251 "source": "package hello.world;\n\nimport java.lang.Exception;\nimport org.openapis.openapi.HathoraCloud;\nimport org.openapis.openapi.models.errors.ApiError;\nimport org.openapis.openapi.models.operations.GetFleetRegionMetricsRequest;\nimport org.openapis.openapi.models.operations.GetFleetRegionMetricsResponse;\nimport org.openapis.openapi.models.shared.Region;\nimport org.openapis.openapi.models.shared.Security;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .orgId(\"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\")\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\"HATHORA_DEV_TOKEN\", \"\"))\n .build())\n .build();\n\n GetFleetRegionMetricsRequest req = GetFleetRegionMetricsRequest.builder()\n .fleetId(\"<id>\")\n .region(Region.CHICAGO)\n .build();\n\n GetFleetRegionMetricsResponse res = sdk.fleetsV2().getFleetRegionMetrics()\n .request(req)\n .call();\n\n if (res.fleetMetricsData().isPresent()) {\n // handle response\n }\n }\n}"
252+ - target : $["paths"]["/fleets/v2/fleets/{fleetId}/regions/{region}/v2"]["put"]
253+ update :
254+ " x-codeSamples " :
255+ - " lang " : " java"
256+ " label " : " UpdateFleetRegion"
257+ "source": "package hello.world;\n\nimport java.lang.Exception;\nimport org.openapis.openapi.HathoraCloud;\nimport org.openapis.openapi.models.errors.ApiError;\nimport org.openapis.openapi.models.operations.UpdateFleetRegionRequest;\nimport org.openapis.openapi.models.operations.UpdateFleetRegionResponse;\nimport org.openapis.openapi.models.shared.*;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .orgId(\"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\")\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\"HATHORA_DEV_TOKEN\", \"\"))\n .build())\n .build();\n\n UpdateFleetRegionRequest req = UpdateFleetRegionRequest.builder()\n .fleetId(\"<id>\")\n .region(Region.CHICAGO)\n .fleetRegionConfigV2(FleetRegionConfigV2.builder()\n .nodeBaseline(503995)\n .build())\n .build();\n\n UpdateFleetRegionResponse res = sdk.fleetsV2().updateFleetRegion()\n .request(req)\n .call();\n\n // handle response\n }\n}"
258258 - target : $["paths"]["/fleets/v2/nodeShapes"]["get"]
259259 update :
260260 " x-codeSamples " :
0 commit comments