From f260ab5612ee1a05bc8153086891a774ed29824b Mon Sep 17 00:00:00 2001 From: NathanFlurry Date: Sun, 1 Dec 2024 17:51:57 +0000 Subject: [PATCH] chore: make actor create runtime optional & fix inconsistent snake case in api (#1494) ## Changes --- Cargo.lock | 1 + packages/api/actor/src/route/actors.rs | 6 +++--- packages/services/build/ops/create/src/lib.rs | 3 +-- sdks/api/fern/definition/actor/__package__.yml | 8 ++++---- sdks/api/full/go/actor/actor.go | 6 +++--- sdks/api/full/openapi/openapi.yml | 7 +++---- sdks/api/full/openapi_compat/openapi.yml | 7 +++---- sdks/api/full/rust-cli/docs/ActorCreateActorRequest.md | 2 +- .../rust-cli/src/models/actor_create_actor_request.rs | 10 +++++----- .../rust-cli/src/models/actor_upgrade_actor_request.rs | 2 +- .../src/models/actor_upgrade_all_actors_request.rs | 2 +- sdks/api/full/rust/docs/ActorCreateActorRequest.md | 2 +- .../full/rust/src/models/actor_create_actor_request.rs | 9 ++++----- .../rust/src/models/actor_upgrade_actor_request.rs | 2 +- .../src/models/actor_upgrade_all_actors_request.rs | 2 +- .../src/api/resources/actor/client/Client.ts | 4 +--- .../actor/client/requests/CreateActorRequestQuery.ts | 4 +--- sdks/api/runtime/go/actor/actor.go | 6 +++--- sdks/api/runtime/openapi/openapi.yml | 7 +++---- sdks/api/runtime/openapi_compat/openapi.yml | 7 +++---- sdks/api/runtime/rust/docs/ActorCreateActorRequest.md | 2 +- .../rust/src/models/actor_create_actor_request.rs | 10 +++++----- .../rust/src/models/actor_upgrade_actor_request.rs | 2 +- .../src/models/actor_upgrade_all_actors_request.rs | 2 +- .../src/api/resources/actor/client/Client.ts | 4 +--- .../actor/client/requests/CreateActorRequestQuery.ts | 4 +--- 26 files changed, 54 insertions(+), 67 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6c0a0faa24..59fe882922 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -204,6 +204,7 @@ dependencies = [ "hyper 0.14.31", "lazy_static", "region-get", + "region-recommend", "reqwest 0.11.27", "rivet-api", "rivet-cache", diff --git a/packages/api/actor/src/route/actors.rs b/packages/api/actor/src/route/actors.rs index 82ec24047a..0158d500e8 100644 --- a/packages/api/actor/src/route/actors.rs +++ b/packages/api/actor/src/route/actors.rs @@ -158,7 +158,7 @@ pub async fn create( // args: body.runtime.arguments.unwrap_or_default(), args: Vec::new(), network_mode: network.mode.unwrap_or_default().api_into(), - environment: body.runtime.environment.unwrap_or_default(), + environment: body.runtime.and_then(|r| r.environment).unwrap_or_default(), network_ports: unwrap!(network .ports .unwrap_or_default() @@ -331,9 +331,9 @@ pub async fn create_deprecated( cpu: body.resources.cpu, memory: body.resources.memory, }), - runtime: Box::new(models::ActorCreateActorRuntimeRequest { + runtime: Some(Box::new(models::ActorCreateActorRuntimeRequest { environment: body.runtime.environment, - }), + })), build: Some(body.runtime.build), build_tags: None, tags: body.tags, diff --git a/packages/services/build/ops/create/src/lib.rs b/packages/services/build/ops/create/src/lib.rs index 1c3014d280..8514654c26 100644 --- a/packages/services/build/ops/create/src/lib.rs +++ b/packages/services/build/ops/create/src/lib.rs @@ -27,8 +27,7 @@ async fn handle( .await?; let game = game_res.games.first(); ensure!(game.is_some(), "game not found"); - } - else if let Some(env_id) = env_id { + } else if let Some(env_id) = env_id { let env_res = op!([ctx] game_namespace_get { namespace_ids: vec![env_id.into()], }) diff --git a/sdks/api/fern/definition/actor/__package__.yml b/sdks/api/fern/definition/actor/__package__.yml index 4ab34f2bbf..2b4a7b9c56 100644 --- a/sdks/api/fern/definition/actor/__package__.yml +++ b/sdks/api/fern/definition/actor/__package__.yml @@ -111,8 +111,8 @@ types: region: optional tags: unknown build: optional - buildTags: optional - runtime: CreateActorRuntimeRequest + build_tags: optional + runtime: optional network: optional resources: commons.Resources lifecycle: optional @@ -145,7 +145,7 @@ types: UpgradeActorRequest: properties: build: optional - buildTags: optional + build_tags: optional UpgradeActorResponse: properties: {} @@ -154,7 +154,7 @@ types: properties: tags: unknown build: optional - buildTags: optional + build_tags: optional UpgradeAllActorsResponse: properties: diff --git a/sdks/api/full/go/actor/actor.go b/sdks/api/full/go/actor/actor.go index 2753b66fd5..5031811a88 100644 --- a/sdks/api/full/go/actor/actor.go +++ b/sdks/api/full/go/actor/actor.go @@ -13,7 +13,7 @@ type CreateActorRequest struct { Region *string `json:"region,omitempty"` Tags interface{} `json:"tags,omitempty"` Build *uuid.UUID `json:"build,omitempty"` - BuildTags interface{} `json:"buildTags,omitempty"` + BuildTags interface{} `json:"build_tags,omitempty"` Runtime *CreateActorRuntimeRequest `json:"runtime,omitempty"` Network *CreateActorNetworkRequest `json:"network,omitempty"` Resources *Resources `json:"resources,omitempty"` @@ -163,7 +163,7 @@ func (l *ListActorsResponse) String() string { type UpgradeActorRequest struct { Build *uuid.UUID `json:"build,omitempty"` - BuildTags interface{} `json:"buildTags,omitempty"` + BuildTags interface{} `json:"build_tags,omitempty"` _rawJSON json.RawMessage } @@ -221,7 +221,7 @@ func (u *UpgradeActorResponse) String() string { type UpgradeAllActorsRequest struct { Tags interface{} `json:"tags,omitempty"` Build *uuid.UUID `json:"build,omitempty"` - BuildTags interface{} `json:"buildTags,omitempty"` + BuildTags interface{} `json:"build_tags,omitempty"` _rawJSON json.RawMessage } diff --git a/sdks/api/full/openapi/openapi.yml b/sdks/api/full/openapi/openapi.yml index 87b0ceedc8..35dcf28771 100644 --- a/sdks/api/full/openapi/openapi.yml +++ b/sdks/api/full/openapi/openapi.yml @@ -8712,7 +8712,7 @@ components: build: type: string format: uuid - buildTags: {} + build_tags: {} runtime: $ref: '#/components/schemas/ActorCreateActorRuntimeRequest' network: @@ -8723,7 +8723,6 @@ components: $ref: '#/components/schemas/ActorLifecycle' required: - tags - - runtime - resources ActorCreateActorRuntimeRequest: type: object @@ -8769,7 +8768,7 @@ components: build: type: string format: uuid - buildTags: {} + build_tags: {} ActorUpgradeActorResponse: type: object properties: {} @@ -8780,7 +8779,7 @@ components: build: type: string format: uuid - buildTags: {} + build_tags: {} required: - tags ActorUpgradeAllActorsResponse: diff --git a/sdks/api/full/openapi_compat/openapi.yml b/sdks/api/full/openapi_compat/openapi.yml index d1b3cc22eb..8b3912ea91 100644 --- a/sdks/api/full/openapi_compat/openapi.yml +++ b/sdks/api/full/openapi_compat/openapi.yml @@ -98,7 +98,7 @@ components: build: format: uuid type: string - buildTags: {} + build_tags: {} lifecycle: $ref: '#/components/schemas/ActorLifecycle' network: @@ -112,7 +112,6 @@ components: tags: {} required: - tags - - runtime - resources type: object ActorCreateActorResponse: @@ -379,7 +378,7 @@ components: build: format: uuid type: string - buildTags: {} + build_tags: {} type: object ActorUpgradeActorResponse: properties: {} @@ -389,7 +388,7 @@ components: build: format: uuid type: string - buildTags: {} + build_tags: {} tags: {} required: - tags diff --git a/sdks/api/full/rust-cli/docs/ActorCreateActorRequest.md b/sdks/api/full/rust-cli/docs/ActorCreateActorRequest.md index ec2884d7d8..2d3e08ef69 100644 --- a/sdks/api/full/rust-cli/docs/ActorCreateActorRequest.md +++ b/sdks/api/full/rust-cli/docs/ActorCreateActorRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **network** | Option<[**crate::models::ActorCreateActorNetworkRequest**](ActorCreateActorNetworkRequest.md)> | | [optional] **region** | Option<**String**> | | [optional] **resources** | [**crate::models::ActorResources**](ActorResources.md) | | -**runtime** | [**crate::models::ActorCreateActorRuntimeRequest**](ActorCreateActorRuntimeRequest.md) | | +**runtime** | Option<[**crate::models::ActorCreateActorRuntimeRequest**](ActorCreateActorRuntimeRequest.md)> | | [optional] **tags** | Option<[**serde_json::Value**](.md)> | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/api/full/rust-cli/src/models/actor_create_actor_request.rs b/sdks/api/full/rust-cli/src/models/actor_create_actor_request.rs index 6652a8d951..452717c1a1 100644 --- a/sdks/api/full/rust-cli/src/models/actor_create_actor_request.rs +++ b/sdks/api/full/rust-cli/src/models/actor_create_actor_request.rs @@ -15,7 +15,7 @@ pub struct ActorCreateActorRequest { #[serde(rename = "build", skip_serializing_if = "Option::is_none")] pub build: Option, - #[serde(rename = "buildTags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + #[serde(rename = "build_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub build_tags: Option>, #[serde(rename = "lifecycle", skip_serializing_if = "Option::is_none")] pub lifecycle: Option>, @@ -25,14 +25,14 @@ pub struct ActorCreateActorRequest { pub region: Option, #[serde(rename = "resources")] pub resources: Box, - #[serde(rename = "runtime")] - pub runtime: Box, + #[serde(rename = "runtime", skip_serializing_if = "Option::is_none")] + pub runtime: Option>, #[serde(rename = "tags", deserialize_with = "Option::deserialize")] pub tags: Option, } impl ActorCreateActorRequest { - pub fn new(resources: crate::models::ActorResources, runtime: crate::models::ActorCreateActorRuntimeRequest, tags: Option) -> ActorCreateActorRequest { + pub fn new(resources: crate::models::ActorResources, tags: Option) -> ActorCreateActorRequest { ActorCreateActorRequest { build: None, build_tags: None, @@ -40,7 +40,7 @@ impl ActorCreateActorRequest { network: None, region: None, resources: Box::new(resources), - runtime: Box::new(runtime), + runtime: None, tags, } } diff --git a/sdks/api/full/rust-cli/src/models/actor_upgrade_actor_request.rs b/sdks/api/full/rust-cli/src/models/actor_upgrade_actor_request.rs index 0b283f199e..915c048b23 100644 --- a/sdks/api/full/rust-cli/src/models/actor_upgrade_actor_request.rs +++ b/sdks/api/full/rust-cli/src/models/actor_upgrade_actor_request.rs @@ -15,7 +15,7 @@ pub struct ActorUpgradeActorRequest { #[serde(rename = "build", skip_serializing_if = "Option::is_none")] pub build: Option, - #[serde(rename = "buildTags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + #[serde(rename = "build_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub build_tags: Option>, } diff --git a/sdks/api/full/rust-cli/src/models/actor_upgrade_all_actors_request.rs b/sdks/api/full/rust-cli/src/models/actor_upgrade_all_actors_request.rs index ebaff39fa7..9cc796c5e1 100644 --- a/sdks/api/full/rust-cli/src/models/actor_upgrade_all_actors_request.rs +++ b/sdks/api/full/rust-cli/src/models/actor_upgrade_all_actors_request.rs @@ -15,7 +15,7 @@ pub struct ActorUpgradeAllActorsRequest { #[serde(rename = "build", skip_serializing_if = "Option::is_none")] pub build: Option, - #[serde(rename = "buildTags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + #[serde(rename = "build_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub build_tags: Option>, #[serde(rename = "tags", deserialize_with = "Option::deserialize")] pub tags: Option, diff --git a/sdks/api/full/rust/docs/ActorCreateActorRequest.md b/sdks/api/full/rust/docs/ActorCreateActorRequest.md index ec2884d7d8..2d3e08ef69 100644 --- a/sdks/api/full/rust/docs/ActorCreateActorRequest.md +++ b/sdks/api/full/rust/docs/ActorCreateActorRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **network** | Option<[**crate::models::ActorCreateActorNetworkRequest**](ActorCreateActorNetworkRequest.md)> | | [optional] **region** | Option<**String**> | | [optional] **resources** | [**crate::models::ActorResources**](ActorResources.md) | | -**runtime** | [**crate::models::ActorCreateActorRuntimeRequest**](ActorCreateActorRuntimeRequest.md) | | +**runtime** | Option<[**crate::models::ActorCreateActorRuntimeRequest**](ActorCreateActorRuntimeRequest.md)> | | [optional] **tags** | Option<[**serde_json::Value**](.md)> | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/api/full/rust/src/models/actor_create_actor_request.rs b/sdks/api/full/rust/src/models/actor_create_actor_request.rs index 4eaea32d1a..89dca92f8d 100644 --- a/sdks/api/full/rust/src/models/actor_create_actor_request.rs +++ b/sdks/api/full/rust/src/models/actor_create_actor_request.rs @@ -13,7 +13,7 @@ pub struct ActorCreateActorRequest { #[serde(rename = "build", skip_serializing_if = "Option::is_none")] pub build: Option, #[serde( - rename = "buildTags", + rename = "build_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none" @@ -27,8 +27,8 @@ pub struct ActorCreateActorRequest { pub region: Option, #[serde(rename = "resources")] pub resources: Box, - #[serde(rename = "runtime")] - pub runtime: Box, + #[serde(rename = "runtime", skip_serializing_if = "Option::is_none")] + pub runtime: Option>, #[serde(rename = "tags", deserialize_with = "Option::deserialize")] pub tags: Option, } @@ -36,7 +36,6 @@ pub struct ActorCreateActorRequest { impl ActorCreateActorRequest { pub fn new( resources: crate::models::ActorResources, - runtime: crate::models::ActorCreateActorRuntimeRequest, tags: Option, ) -> ActorCreateActorRequest { ActorCreateActorRequest { @@ -46,7 +45,7 @@ impl ActorCreateActorRequest { network: None, region: None, resources: Box::new(resources), - runtime: Box::new(runtime), + runtime: None, tags, } } diff --git a/sdks/api/full/rust/src/models/actor_upgrade_actor_request.rs b/sdks/api/full/rust/src/models/actor_upgrade_actor_request.rs index 6cbf29d2f1..a3ce9c6d0b 100644 --- a/sdks/api/full/rust/src/models/actor_upgrade_actor_request.rs +++ b/sdks/api/full/rust/src/models/actor_upgrade_actor_request.rs @@ -13,7 +13,7 @@ pub struct ActorUpgradeActorRequest { #[serde(rename = "build", skip_serializing_if = "Option::is_none")] pub build: Option, #[serde( - rename = "buildTags", + rename = "build_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none" diff --git a/sdks/api/full/rust/src/models/actor_upgrade_all_actors_request.rs b/sdks/api/full/rust/src/models/actor_upgrade_all_actors_request.rs index 776a4d9a61..ff93ffb030 100644 --- a/sdks/api/full/rust/src/models/actor_upgrade_all_actors_request.rs +++ b/sdks/api/full/rust/src/models/actor_upgrade_all_actors_request.rs @@ -13,7 +13,7 @@ pub struct ActorUpgradeAllActorsRequest { #[serde(rename = "build", skip_serializing_if = "Option::is_none")] pub build: Option, #[serde( - rename = "buildTags", + rename = "build_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none" diff --git a/sdks/api/full/typescript/src/api/resources/actor/client/Client.ts b/sdks/api/full/typescript/src/api/resources/actor/client/Client.ts index 98ab2b6551..7dc4172320 100644 --- a/sdks/api/full/typescript/src/api/resources/actor/client/Client.ts +++ b/sdks/api/full/typescript/src/api/resources/actor/client/Client.ts @@ -370,9 +370,7 @@ export class Actor { * "key": "value" * }, * runtime: { - * environment: { - * "string": "string" - * } + * environment: {} * }, * network: { * mode: "bridge", diff --git a/sdks/api/full/typescript/src/api/resources/actor/client/requests/CreateActorRequestQuery.ts b/sdks/api/full/typescript/src/api/resources/actor/client/requests/CreateActorRequestQuery.ts index 22d3c322e7..0e7cecdd75 100644 --- a/sdks/api/full/typescript/src/api/resources/actor/client/requests/CreateActorRequestQuery.ts +++ b/sdks/api/full/typescript/src/api/resources/actor/client/requests/CreateActorRequestQuery.ts @@ -19,9 +19,7 @@ import * as RivetClient from "../../../../index"; * "key": "value" * }, * runtime: { - * environment: { - * "string": "string" - * } + * environment: {} * }, * network: { * mode: "bridge", diff --git a/sdks/api/runtime/go/actor/actor.go b/sdks/api/runtime/go/actor/actor.go index 2753b66fd5..5031811a88 100644 --- a/sdks/api/runtime/go/actor/actor.go +++ b/sdks/api/runtime/go/actor/actor.go @@ -13,7 +13,7 @@ type CreateActorRequest struct { Region *string `json:"region,omitempty"` Tags interface{} `json:"tags,omitempty"` Build *uuid.UUID `json:"build,omitempty"` - BuildTags interface{} `json:"buildTags,omitempty"` + BuildTags interface{} `json:"build_tags,omitempty"` Runtime *CreateActorRuntimeRequest `json:"runtime,omitempty"` Network *CreateActorNetworkRequest `json:"network,omitempty"` Resources *Resources `json:"resources,omitempty"` @@ -163,7 +163,7 @@ func (l *ListActorsResponse) String() string { type UpgradeActorRequest struct { Build *uuid.UUID `json:"build,omitempty"` - BuildTags interface{} `json:"buildTags,omitempty"` + BuildTags interface{} `json:"build_tags,omitempty"` _rawJSON json.RawMessage } @@ -221,7 +221,7 @@ func (u *UpgradeActorResponse) String() string { type UpgradeAllActorsRequest struct { Tags interface{} `json:"tags,omitempty"` Build *uuid.UUID `json:"build,omitempty"` - BuildTags interface{} `json:"buildTags,omitempty"` + BuildTags interface{} `json:"build_tags,omitempty"` _rawJSON json.RawMessage } diff --git a/sdks/api/runtime/openapi/openapi.yml b/sdks/api/runtime/openapi/openapi.yml index 185e9ab96f..90bc52cc65 100644 --- a/sdks/api/runtime/openapi/openapi.yml +++ b/sdks/api/runtime/openapi/openapi.yml @@ -928,7 +928,7 @@ components: build: type: string format: uuid - buildTags: {} + build_tags: {} runtime: $ref: '#/components/schemas/ActorCreateActorRuntimeRequest' network: @@ -939,7 +939,6 @@ components: $ref: '#/components/schemas/ActorLifecycle' required: - tags - - runtime - resources ActorCreateActorRuntimeRequest: type: object @@ -985,7 +984,7 @@ components: build: type: string format: uuid - buildTags: {} + build_tags: {} ActorUpgradeActorResponse: type: object properties: {} @@ -996,7 +995,7 @@ components: build: type: string format: uuid - buildTags: {} + build_tags: {} required: - tags ActorUpgradeAllActorsResponse: diff --git a/sdks/api/runtime/openapi_compat/openapi.yml b/sdks/api/runtime/openapi_compat/openapi.yml index 787eecb4f4..12b2b8bccf 100644 --- a/sdks/api/runtime/openapi_compat/openapi.yml +++ b/sdks/api/runtime/openapi_compat/openapi.yml @@ -96,7 +96,7 @@ components: build: format: uuid type: string - buildTags: {} + build_tags: {} lifecycle: $ref: '#/components/schemas/ActorLifecycle' network: @@ -110,7 +110,6 @@ components: tags: {} required: - tags - - runtime - resources type: object ActorCreateActorResponse: @@ -377,7 +376,7 @@ components: build: format: uuid type: string - buildTags: {} + build_tags: {} type: object ActorUpgradeActorResponse: properties: {} @@ -387,7 +386,7 @@ components: build: format: uuid type: string - buildTags: {} + build_tags: {} tags: {} required: - tags diff --git a/sdks/api/runtime/rust/docs/ActorCreateActorRequest.md b/sdks/api/runtime/rust/docs/ActorCreateActorRequest.md index ec2884d7d8..2d3e08ef69 100644 --- a/sdks/api/runtime/rust/docs/ActorCreateActorRequest.md +++ b/sdks/api/runtime/rust/docs/ActorCreateActorRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **network** | Option<[**crate::models::ActorCreateActorNetworkRequest**](ActorCreateActorNetworkRequest.md)> | | [optional] **region** | Option<**String**> | | [optional] **resources** | [**crate::models::ActorResources**](ActorResources.md) | | -**runtime** | [**crate::models::ActorCreateActorRuntimeRequest**](ActorCreateActorRuntimeRequest.md) | | +**runtime** | Option<[**crate::models::ActorCreateActorRuntimeRequest**](ActorCreateActorRuntimeRequest.md)> | | [optional] **tags** | Option<[**serde_json::Value**](.md)> | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/api/runtime/rust/src/models/actor_create_actor_request.rs b/sdks/api/runtime/rust/src/models/actor_create_actor_request.rs index 6652a8d951..452717c1a1 100644 --- a/sdks/api/runtime/rust/src/models/actor_create_actor_request.rs +++ b/sdks/api/runtime/rust/src/models/actor_create_actor_request.rs @@ -15,7 +15,7 @@ pub struct ActorCreateActorRequest { #[serde(rename = "build", skip_serializing_if = "Option::is_none")] pub build: Option, - #[serde(rename = "buildTags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + #[serde(rename = "build_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub build_tags: Option>, #[serde(rename = "lifecycle", skip_serializing_if = "Option::is_none")] pub lifecycle: Option>, @@ -25,14 +25,14 @@ pub struct ActorCreateActorRequest { pub region: Option, #[serde(rename = "resources")] pub resources: Box, - #[serde(rename = "runtime")] - pub runtime: Box, + #[serde(rename = "runtime", skip_serializing_if = "Option::is_none")] + pub runtime: Option>, #[serde(rename = "tags", deserialize_with = "Option::deserialize")] pub tags: Option, } impl ActorCreateActorRequest { - pub fn new(resources: crate::models::ActorResources, runtime: crate::models::ActorCreateActorRuntimeRequest, tags: Option) -> ActorCreateActorRequest { + pub fn new(resources: crate::models::ActorResources, tags: Option) -> ActorCreateActorRequest { ActorCreateActorRequest { build: None, build_tags: None, @@ -40,7 +40,7 @@ impl ActorCreateActorRequest { network: None, region: None, resources: Box::new(resources), - runtime: Box::new(runtime), + runtime: None, tags, } } diff --git a/sdks/api/runtime/rust/src/models/actor_upgrade_actor_request.rs b/sdks/api/runtime/rust/src/models/actor_upgrade_actor_request.rs index 0b283f199e..915c048b23 100644 --- a/sdks/api/runtime/rust/src/models/actor_upgrade_actor_request.rs +++ b/sdks/api/runtime/rust/src/models/actor_upgrade_actor_request.rs @@ -15,7 +15,7 @@ pub struct ActorUpgradeActorRequest { #[serde(rename = "build", skip_serializing_if = "Option::is_none")] pub build: Option, - #[serde(rename = "buildTags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + #[serde(rename = "build_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub build_tags: Option>, } diff --git a/sdks/api/runtime/rust/src/models/actor_upgrade_all_actors_request.rs b/sdks/api/runtime/rust/src/models/actor_upgrade_all_actors_request.rs index ebaff39fa7..9cc796c5e1 100644 --- a/sdks/api/runtime/rust/src/models/actor_upgrade_all_actors_request.rs +++ b/sdks/api/runtime/rust/src/models/actor_upgrade_all_actors_request.rs @@ -15,7 +15,7 @@ pub struct ActorUpgradeAllActorsRequest { #[serde(rename = "build", skip_serializing_if = "Option::is_none")] pub build: Option, - #[serde(rename = "buildTags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + #[serde(rename = "build_tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub build_tags: Option>, #[serde(rename = "tags", deserialize_with = "Option::deserialize")] pub tags: Option, diff --git a/sdks/api/runtime/typescript/src/api/resources/actor/client/Client.ts b/sdks/api/runtime/typescript/src/api/resources/actor/client/Client.ts index 27ada30cea..810cf8def7 100644 --- a/sdks/api/runtime/typescript/src/api/resources/actor/client/Client.ts +++ b/sdks/api/runtime/typescript/src/api/resources/actor/client/Client.ts @@ -370,9 +370,7 @@ export class Actor { * "key": "value" * }, * runtime: { - * environment: { - * "string": "string" - * } + * environment: {} * }, * network: { * mode: "bridge", diff --git a/sdks/api/runtime/typescript/src/api/resources/actor/client/requests/CreateActorRequestQuery.ts b/sdks/api/runtime/typescript/src/api/resources/actor/client/requests/CreateActorRequestQuery.ts index 22d3c322e7..0e7cecdd75 100644 --- a/sdks/api/runtime/typescript/src/api/resources/actor/client/requests/CreateActorRequestQuery.ts +++ b/sdks/api/runtime/typescript/src/api/resources/actor/client/requests/CreateActorRequestQuery.ts @@ -19,9 +19,7 @@ import * as RivetClient from "../../../../index"; * "key": "value" * }, * runtime: { - * environment: { - * "string": "string" - * } + * environment: {} * }, * network: { * mode: "bridge",