pub struct ServiceActivation {
pub id: String,
pub service_name: String,
}Expand description
Represents a service activation that can be enabled on cloud platforms. For GCP: enables project services (e.g., iam.googleapis.com, compute.googleapis.com). For Azure: registers resource providers (e.g., Microsoft.DocumentDB, Microsoft.Storage).
Fields§
§id: StringIdentifier for the service activation. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
service_name: StringThe service identifier to activate.
- For GCP: service name (e.g., “iam.googleapis.com”, “compute.googleapis.com”)
- For Azure: resource provider namespace (e.g., “Microsoft.DocumentDB”, “Microsoft.Storage”)
Implementations§
Source§impl ServiceActivation
impl ServiceActivation
Sourcepub fn new(id: String) -> ServiceActivationBuilder
pub fn new(id: String) -> ServiceActivationBuilder
Create an instance of ServiceActivation using the builder syntax
Source§impl ServiceActivation
impl ServiceActivation
Sourcepub const RESOURCE_TYPE: ResourceType
pub const RESOURCE_TYPE: ResourceType
The resource type identifier for Service Activations
Trait Implementations§
Source§impl Clone for ServiceActivation
impl Clone for ServiceActivation
Source§fn clone(&self) -> ServiceActivation
fn clone(&self) -> ServiceActivation
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceActivation
impl Debug for ServiceActivation
Source§impl<'de> Deserialize<'de> for ServiceActivation
impl<'de> Deserialize<'de> for ServiceActivation
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
Source§impl PartialEq for ServiceActivation
impl PartialEq for ServiceActivation
Source§impl ResourceDefinition for ServiceActivation
impl ResourceDefinition for ServiceActivation
Source§fn resource_type() -> ResourceType
fn resource_type() -> ResourceType
Returns the static type identifier for this resource type (e.g., “Function”, “Storage”)
Source§fn get_resource_type(&self) -> ResourceType
fn get_resource_type(&self) -> ResourceType
Returns the resource type for this instance (calls the static method)
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§impl Serialize for ServiceActivation
impl Serialize for ServiceActivation
impl Eq for ServiceActivation
impl StructuralPartialEq for ServiceActivation
Auto Trait Implementations§
impl Freeze for ServiceActivation
impl RefUnwindSafe for ServiceActivation
impl Send for ServiceActivation
impl Sync for ServiceActivation
impl Unpin for ServiceActivation
impl UnsafeUnpin for ServiceActivation
impl UnwindSafe for ServiceActivation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.