[−][src]Struct google_compute1::SecurityPolicyMethods
A builder providing access to all methods supported on securityPolicy resources.
It is not used directly, but through the Compute
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_compute1 as compute1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use compute1::Compute; let secret: ApplicationSecret = Default::default(); let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), <MemoryStorage as Default>::default(), None); let mut hub = Compute::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `add_rule(...)`, `delete(...)`, `get(...)`, `get_rule(...)`, `insert(...)`, `list(...)`, `patch(...)`, `patch_rule(...)` and `remove_rule(...)` // to build up your call. let rb = hub.security_policies();
Methods
impl<'a, C, A> SecurityPolicyMethods<'a, C, A>
[src]
pub fn add_rule(
&self,
request: SecurityPolicyRule,
project: &str,
security_policy: &str
) -> SecurityPolicyAddRuleCall<'a, C, A>
[src]
&self,
request: SecurityPolicyRule,
project: &str,
security_policy: &str
) -> SecurityPolicyAddRuleCall<'a, C, A>
Create a builder to help you perform the following task:
Inserts a rule into a security policy.
Arguments
request
- No description provided.project
- Project ID for this request.securityPolicy
- Name of the security policy to update.
pub fn delete(
&self,
project: &str,
security_policy: &str
) -> SecurityPolicyDeleteCall<'a, C, A>
[src]
&self,
project: &str,
security_policy: &str
) -> SecurityPolicyDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes the specified policy.
Arguments
project
- Project ID for this request.securityPolicy
- Name of the security policy to delete.
pub fn patch(
&self,
request: SecurityPolicy,
project: &str,
security_policy: &str
) -> SecurityPolicyPatchCall<'a, C, A>
[src]
&self,
request: SecurityPolicy,
project: &str,
security_policy: &str
) -> SecurityPolicyPatchCall<'a, C, A>
Create a builder to help you perform the following task:
Patches the specified policy with the data included in the request.
Arguments
request
- No description provided.project
- Project ID for this request.securityPolicy
- Name of the security policy to update.
pub fn get_rule(
&self,
project: &str,
security_policy: &str
) -> SecurityPolicyGetRuleCall<'a, C, A>
[src]
&self,
project: &str,
security_policy: &str
) -> SecurityPolicyGetRuleCall<'a, C, A>
Create a builder to help you perform the following task:
Gets a rule at the specified priority.
Arguments
project
- Project ID for this request.securityPolicy
- Name of the security policy to which the queried rule belongs.
pub fn insert(
&self,
request: SecurityPolicy,
project: &str
) -> SecurityPolicyInsertCall<'a, C, A>
[src]
&self,
request: SecurityPolicy,
project: &str
) -> SecurityPolicyInsertCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a new policy in the specified project using the data included in the request.
Arguments
request
- No description provided.project
- Project ID for this request.
pub fn get(
&self,
project: &str,
security_policy: &str
) -> SecurityPolicyGetCall<'a, C, A>
[src]
&self,
project: &str,
security_policy: &str
) -> SecurityPolicyGetCall<'a, C, A>
Create a builder to help you perform the following task:
List all of the ordered rules present in a single specified policy.
Arguments
project
- Project ID for this request.securityPolicy
- Name of the security policy to get.
pub fn list(&self, project: &str) -> SecurityPolicyListCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
List all the policies that have been configured for the specified project.
Arguments
project
- Project ID for this request.
pub fn patch_rule(
&self,
request: SecurityPolicyRule,
project: &str,
security_policy: &str
) -> SecurityPolicyPatchRuleCall<'a, C, A>
[src]
&self,
request: SecurityPolicyRule,
project: &str,
security_policy: &str
) -> SecurityPolicyPatchRuleCall<'a, C, A>
Create a builder to help you perform the following task:
Patches a rule at the specified priority.
Arguments
request
- No description provided.project
- Project ID for this request.securityPolicy
- Name of the security policy to update.
pub fn remove_rule(
&self,
project: &str,
security_policy: &str
) -> SecurityPolicyRemoveRuleCall<'a, C, A>
[src]
&self,
project: &str,
security_policy: &str
) -> SecurityPolicyRemoveRuleCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes a rule at the specified priority.
Arguments
project
- Project ID for this request.securityPolicy
- Name of the security policy to update.
Trait Implementations
impl<'a, C, A> MethodsBuilder for SecurityPolicyMethods<'a, C, A>
[src]
Auto Trait Implementations
impl<'a, C, A> !Send for SecurityPolicyMethods<'a, C, A>
impl<'a, C, A> Unpin for SecurityPolicyMethods<'a, C, A>
impl<'a, C, A> !Sync for SecurityPolicyMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for SecurityPolicyMethods<'a, C, A>
impl<'a, C, A> !RefUnwindSafe for SecurityPolicyMethods<'a, C, A>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,