This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Repository navigation
Sync environments with the current API spec: Model gateway key - #303
Merged
Merged
Conversation
Publish the environment's post-deploy command, HTTP basic auth state and internal networking settings; let environment:update set the post-deploy command and HTTP basic auth; keep a metric interval with no sample as null instead of zero. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T1Sq4Xyfgr8GKyqxCwmuSc
environment:update takes --model-gateway-key-id (empty string to detach), and the Environment DTO exposes modelGatewayKeyId from the modelGatewayKey relationship, which environment fetches now include. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T1Sq4XemtA7LBFDSeyGK7H
…oud-cli into api-sync/environments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Cloud API spec changed. This lets an environment take a Model gateway key.
Findings fixed
UpdateEnvironmentRequest.model_gateway_key_idstring | null: "The identifier of the Model gateway key to attach to the environment. From its next deployment, the environment receives the key asLARAVEL_CLOUD_MODEL_GATEWAY_API_KEY… Send null or an empty string to detach the key."environment:updatenow has--model-gateway-key-id. An empty string detaches.EnvironmentResource.relationships.modelGatewayKey, andmodelGatewayKeyin theincludeenum ofGET /environments/{environment}model_gateway_keysresource.EnvironmentsResource::withDefaultIncludes()now asks for it.EnvironmenthasmodelGatewayKeyId, so--jsonand--fieldscan return it, andenvironment:updatereports it as the previous value.For review
Left alone (uncertain)
servingonCreateApplicationRequestandCreateEnvironmentRequest: new. It is{ mode: "process" | "static", root: string | null }, and both keys are required inside it. Neither the spec nor the public docs say whatrootmeans for each mode. Adding create options is also a design question, the same call Sync environments with the current API spec #300 made for basic auth onenvironment:create.EnvironmentResource.attributes.serving: it is nowrequired. The DTO already has it.display_name, maskingdeploy_hook_url, thepull_requestshape, and theinternal-networkingendpoints. Also still without commands: the edge-network ruleset and rule endpoints, andGET /environments/{environment}/queued-deployments. Those would be new commands, so they're proposals, not fixes.Branch note
api-sync/environmentsstill held #300's pre-squash commits. I merged them in with-s oursinstead of force-pushing. Their content is identical to the squash commit onmain, so this changes nothing in the diff.Tests
--model-gateway-key-idsends the id, an empty string sends"", andenvironment:get --fields=modelGatewayKeyIdreturns the relationship id. The test also checks thatmodelGatewayKeyis in theincludequery.LARAVEL_CLOUD_TOKEN: 843 pass.RepoConfigTestran separately without the token: 14/14 pass.PromptFallbackTestwas skipped because it hangs in this container. PHPStan and Pint are clean.Generated by Claude Code