Create an entity with convenience method Convenience method for creating entities with commonly used parameters. # Arguments `catalog_name` - Name of the catalog to create entity in `entity_type` - Type of entity to create `name` - Name of the entity `params` - Creation parameters # Returns `Ok(CatalogResponse)` with creation result `Err(CatalogError)` if operation fails
(
&mut self,
catalog_name: &str,
entity_type: EntityType,
name: &str,
params: serde_json::Value,
)
| 293 | /// * `Ok(CatalogResponse)` with creation result |
| 294 | /// * `Err(CatalogError)` if operation fails |
| 295 | pub fn create_entity( |
| 296 | &mut self, |
| 297 | catalog_name: &str, |
| 298 | entity_type: EntityType, |
| 299 | name: &str, |
| 300 | params: serde_json::Value, |
| 301 | ) -> CatalogResult<CatalogResponse> { |
| 302 | self.execute( |
| 303 | catalog_name, |
| 304 | CatalogOperation::Create { |
| 305 | entity_type, |
| 306 | name: name.to_string(), |
| 307 | params, |
| 308 | }, |
| 309 | ) |
| 310 | } |
| 311 | |
| 312 | /// List entities with convenience method |
| 313 | /// |