pub struct PropertyManagementClient { /* private fields */ }
Implementations§
Source§impl PropertyManagementClient
impl PropertyManagementClient
Sourcepub async fn create_name(
&self,
name: &Uri,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<()>
pub async fn create_name( &self, name: &Uri, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<()>
Creates a SF name in Naming Service. Provisioned app and service will automatically create names: For example, fabric:/myapp/mysvc service will create 2 names in the same hierarchy:
- fabric:/myapp
- fabric:/myapp/mysvc
One can create names not related to any app or service as well.
Sourcepub async fn delete_name(
&self,
name: &Uri,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<()>
pub async fn delete_name( &self, name: &Uri, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<()>
Deletes a SF name from Naming Service. All properties needs to be deleted first before this call, otherwise it will fail.
Sourcepub async fn name_exists(
&self,
name: &Uri,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<bool>
pub async fn name_exists( &self, name: &Uri, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<bool>
Checks if a SF name exists in Naming Service.
Sourcepub async fn enumerate_sub_names(
&self,
name: &Uri,
prev: Option<&NameEnumerationResult>,
recursive: bool,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<NameEnumerationResult>
pub async fn enumerate_sub_names( &self, name: &Uri, prev: Option<&NameEnumerationResult>, recursive: bool, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<NameEnumerationResult>
Enumerates sub-names of a SF name in Naming Service.
For example, if you have a name fabric:/myapp
,
it will return all sub-names like:
- fabric:/myapp/mysvc1
Sourcepub async fn put_property_binary(
&self,
name: &Uri,
property_name: &WString,
data: &[u8],
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<()>
pub async fn put_property_binary( &self, name: &Uri, property_name: &WString, data: &[u8], timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<()>
Put a binary property to a SF name.
Sourcepub async fn put_property_double(
&self,
name: &Uri,
property_name: &WString,
data: f64,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<()>
pub async fn put_property_double( &self, name: &Uri, property_name: &WString, data: f64, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<()>
Put a double property to a SF name.
Sourcepub async fn put_property_int64(
&self,
name: &Uri,
property_name: &WString,
data: i64,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<()>
pub async fn put_property_int64( &self, name: &Uri, property_name: &WString, data: i64, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<()>
Put an int64 property to a SF name.
Sourcepub async fn put_property_wstring(
&self,
name: &Uri,
property_name: &WString,
data: &WString,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<()>
pub async fn put_property_wstring( &self, name: &Uri, property_name: &WString, data: &WString, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<()>
Put a wstring property to a SF name.
Sourcepub async fn put_property_guid(
&self,
name: &Uri,
property_name: &WString,
data: &GUID,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<()>
pub async fn put_property_guid( &self, name: &Uri, property_name: &WString, data: &GUID, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<()>
Put a GUID property to a SF name.
Sourcepub async fn delete_property(
&self,
name: &Uri,
property_name: &WString,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<()>
pub async fn delete_property( &self, name: &Uri, property_name: &WString, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<()>
Deletes a property from a SF name.
Sourcepub async fn get_property_metadata(
&self,
name: &Uri,
property_name: &WString,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<PropertyMetadataResult>
pub async fn get_property_metadata( &self, name: &Uri, property_name: &WString, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<PropertyMetadataResult>
Gets metadata of a property from a SF name.
Sourcepub async fn get_property(
&self,
name: &Uri,
property_name: &WString,
timeout: Duration,
cancellation_token: Option<BoxedCancelToken>,
) -> Result<PropertyValueResult>
pub async fn get_property( &self, name: &Uri, property_name: &WString, timeout: Duration, cancellation_token: Option<BoxedCancelToken>, ) -> Result<PropertyValueResult>
Gets a property value from a SF name.
Trait Implementations§
Source§impl Clone for PropertyManagementClient
impl Clone for PropertyManagementClient
Source§fn clone(&self) -> PropertyManagementClient
fn clone(&self) -> PropertyManagementClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more