pub struct GcpAgentPlatformEngine {
pub id: String,
}Expand description
A Gemini Agent Platform reasoning engine: the durable parent that sandbox environment templates and sessions hang under. One per sandbox, provisioned once and addressed by the server-assigned id its controller records.
Fields§
§id: StringIdentifier for the engine resource within the stack.
Implementations§
Source§impl GcpAgentPlatformEngine
impl GcpAgentPlatformEngine
Sourcepub fn new(id: String) -> GcpAgentPlatformEngineBuilder
pub fn new(id: String) -> GcpAgentPlatformEngineBuilder
Create an instance of GcpAgentPlatformEngine using the builder syntax
Source§impl GcpAgentPlatformEngine
impl GcpAgentPlatformEngine
Sourcepub const RESOURCE_TYPE: ResourceType
pub const RESOURCE_TYPE: ResourceType
The resource type identifier for Agent Platform reasoning engines.
pub fn id(&self) -> &str
Sourcepub fn id_for_sandbox(sandbox_id: &str) -> String
pub fn id_for_sandbox(sandbox_id: &str) -> String
The engine id for a sandbox: one engine per sandbox. Shared by the mutation that synthesizes the engine and the template controller that reads it back as a dependency, so the two cannot drift on the convention.
Trait Implementations§
Source§impl Clone for GcpAgentPlatformEngine
impl Clone for GcpAgentPlatformEngine
Source§fn clone(&self) -> GcpAgentPlatformEngine
fn clone(&self) -> GcpAgentPlatformEngine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GcpAgentPlatformEngine
impl Debug for GcpAgentPlatformEngine
Source§impl<'de> Deserialize<'de> for GcpAgentPlatformEngine
impl<'de> Deserialize<'de> for GcpAgentPlatformEngine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GcpAgentPlatformEngine
Source§impl PartialEq for GcpAgentPlatformEngine
impl PartialEq for GcpAgentPlatformEngine
Source§impl ResourceDefinition for GcpAgentPlatformEngine
impl ResourceDefinition for GcpAgentPlatformEngine
Source§fn get_resource_type(&self) -> ResourceType
fn get_resource_type(&self) -> ResourceType
Returns the resource type for this instance
Source§fn get_dependencies(&self) -> Vec<ResourceRef>
fn get_dependencies(&self) -> Vec<ResourceRef>
Returns the list of other resources this resource depends on
Source§fn validate_update(&self, _new_config: &dyn ResourceDefinition) -> Result<()>
fn validate_update(&self, _new_config: &dyn ResourceDefinition) -> Result<()>
Validates if an update from the current configuration to a new configuration is allowed
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Provides mutable access to the underlying concrete type for downcasting
Source§fn box_clone(&self) -> Box<dyn ResourceDefinition>
fn box_clone(&self) -> Box<dyn ResourceDefinition>
Creates a boxed clone of this resource definition
Source§fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
For equality comparison between resource definitions
Source§fn to_json_value(&self) -> Result<Value>
fn to_json_value(&self) -> Result<Value>
Serialize this resource to a JSON value (without the “type” tag - that’s added by Resource)
Source§impl Serialize for GcpAgentPlatformEngine
impl Serialize for GcpAgentPlatformEngine
impl StructuralPartialEq for GcpAgentPlatformEngine
Auto Trait Implementations§
impl Freeze for GcpAgentPlatformEngine
impl RefUnwindSafe for GcpAgentPlatformEngine
impl Send for GcpAgentPlatformEngine
impl Sync for GcpAgentPlatformEngine
impl Unpin for GcpAgentPlatformEngine
impl UnsafeUnpin for GcpAgentPlatformEngine
impl UnwindSafe for GcpAgentPlatformEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.