Struct google_compute1::api::FirewallPolicyMethods [−][src]
A builder providing access to all methods supported on firewallPolicy 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; use compute1::Compute; let secret: oauth2::ApplicationSecret = Default::default(); let auth = yup_oauth2::InstalledFlowAuthenticator::builder( secret, yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect, ).build().await.unwrap(); let mut hub = Compute::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `add_association(...)`, `add_rule(...)`, `clone_rules(...)`, `delete(...)`, `get(...)`, `get_association(...)`, `get_iam_policy(...)`, `get_rule(...)`, `insert(...)`, `list(...)`, `list_associations(...)`, `move_(...)`, `patch(...)`, `patch_rule(...)`, `remove_association(...)`, `remove_rule(...)`, `set_iam_policy(...)` and `test_iam_permissions(...)` // to build up your call. let rb = hub.firewall_policies();
Implementations
impl<'a, C> FirewallPolicyMethods<'a, C>[src]
pub fn add_association(
&self,
request: FirewallPolicyAssociation,
firewall_policy: &str
) -> FirewallPolicyAddAssociationCall<'a, C>[src]
&self,
request: FirewallPolicyAssociation,
firewall_policy: &str
) -> FirewallPolicyAddAssociationCall<'a, C>
Create a builder to help you perform the following task:
Inserts an association for the specified firewall policy.
Arguments
request- No description provided.firewallPolicy- Name of the firewall policy to update.
pub fn add_rule(
&self,
request: FirewallPolicyRule,
firewall_policy: &str
) -> FirewallPolicyAddRuleCall<'a, C>[src]
&self,
request: FirewallPolicyRule,
firewall_policy: &str
) -> FirewallPolicyAddRuleCall<'a, C>
Create a builder to help you perform the following task:
Inserts a rule into a firewall policy.
Arguments
request- No description provided.firewallPolicy- Name of the firewall policy to update.
pub fn clone_rules(
&self,
firewall_policy: &str
) -> FirewallPolicyCloneRuleCall<'a, C>[src]
&self,
firewall_policy: &str
) -> FirewallPolicyCloneRuleCall<'a, C>
Create a builder to help you perform the following task:
Copies rules to the specified firewall policy.
Arguments
firewallPolicy- Name of the firewall policy to update.
pub fn delete(&self, firewall_policy: &str) -> FirewallPolicyDeleteCall<'a, C>[src]
Create a builder to help you perform the following task:
Deletes the specified policy.
Arguments
firewallPolicy- Name of the firewall policy to delete.
pub fn get(&self, firewall_policy: &str) -> FirewallPolicyGetCall<'a, C>[src]
Create a builder to help you perform the following task:
Returns the specified firewall policy.
Arguments
firewallPolicy- Name of the firewall policy to get.
pub fn get_association(
&self,
firewall_policy: &str
) -> FirewallPolicyGetAssociationCall<'a, C>[src]
&self,
firewall_policy: &str
) -> FirewallPolicyGetAssociationCall<'a, C>
Create a builder to help you perform the following task:
Gets an association with the specified name.
Arguments
firewallPolicy- Name of the firewall policy to which the queried rule belongs.
pub fn get_iam_policy(
&self,
resource: &str
) -> FirewallPolicyGetIamPolicyCall<'a, C>[src]
&self,
resource: &str
) -> FirewallPolicyGetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Arguments
resource- Name or id of the resource for this request.
pub fn get_rule(
&self,
firewall_policy: &str
) -> FirewallPolicyGetRuleCall<'a, C>[src]
&self,
firewall_policy: &str
) -> FirewallPolicyGetRuleCall<'a, C>
Create a builder to help you perform the following task:
Gets a rule of the specified priority.
Arguments
firewallPolicy- Name of the firewall policy to which the queried rule belongs.
pub fn insert(&self, request: FirewallPolicy) -> FirewallPolicyInsertCall<'a, C>[src]
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.
pub fn list(&self) -> FirewallPolicyListCall<'a, C>[src]
Create a builder to help you perform the following task:
Lists all the policies that have been configured for the specified project.
pub fn list_associations(&self) -> FirewallPolicyListAssociationCall<'a, C>[src]
Create a builder to help you perform the following task:
Lists associations of a specified target, i.e., organization or folder.
pub fn move_(&self, firewall_policy: &str) -> FirewallPolicyMoveCall<'a, C>[src]
Create a builder to help you perform the following task:
Moves the specified firewall policy.
Arguments
firewallPolicy- Name of the firewall policy to update.
pub fn patch(
&self,
request: FirewallPolicy,
firewall_policy: &str
) -> FirewallPolicyPatchCall<'a, C>[src]
&self,
request: FirewallPolicy,
firewall_policy: &str
) -> FirewallPolicyPatchCall<'a, C>
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.firewallPolicy- Name of the firewall policy to update.
pub fn patch_rule(
&self,
request: FirewallPolicyRule,
firewall_policy: &str
) -> FirewallPolicyPatchRuleCall<'a, C>[src]
&self,
request: FirewallPolicyRule,
firewall_policy: &str
) -> FirewallPolicyPatchRuleCall<'a, C>
Create a builder to help you perform the following task:
Patches a rule of the specified priority.
Arguments
request- No description provided.firewallPolicy- Name of the firewall policy to update.
pub fn remove_association(
&self,
firewall_policy: &str
) -> FirewallPolicyRemoveAssociationCall<'a, C>[src]
&self,
firewall_policy: &str
) -> FirewallPolicyRemoveAssociationCall<'a, C>
Create a builder to help you perform the following task:
Removes an association for the specified firewall policy.
Arguments
firewallPolicy- Name of the firewall policy to update.
pub fn remove_rule(
&self,
firewall_policy: &str
) -> FirewallPolicyRemoveRuleCall<'a, C>[src]
&self,
firewall_policy: &str
) -> FirewallPolicyRemoveRuleCall<'a, C>
Create a builder to help you perform the following task:
Deletes a rule of the specified priority.
Arguments
firewallPolicy- Name of the firewall policy to update.
pub fn set_iam_policy(
&self,
request: GlobalOrganizationSetPolicyRequest,
resource: &str
) -> FirewallPolicySetIamPolicyCall<'a, C>[src]
&self,
request: GlobalOrganizationSetPolicyRequest,
resource: &str
) -> FirewallPolicySetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Sets the access control policy on the specified resource. Replaces any existing policy.
Arguments
request- No description provided.resource- Name or id of the resource for this request.
pub fn test_iam_permissions(
&self,
request: TestPermissionsRequest,
resource: &str
) -> FirewallPolicyTestIamPermissionCall<'a, C>[src]
&self,
request: TestPermissionsRequest,
resource: &str
) -> FirewallPolicyTestIamPermissionCall<'a, C>
Create a builder to help you perform the following task:
Returns permissions that a caller has on the specified resource.
Arguments
request- No description provided.resource- Name or id of the resource for this request.
Trait Implementations
impl<'a, C> MethodsBuilder for FirewallPolicyMethods<'a, C>[src]
Auto Trait Implementations
impl<'a, C> !RefUnwindSafe for FirewallPolicyMethods<'a, C>[src]
impl<'a, C> !Send for FirewallPolicyMethods<'a, C>[src]
impl<'a, C> !Sync for FirewallPolicyMethods<'a, C>[src]
impl<'a, C> Unpin for FirewallPolicyMethods<'a, C>[src]
impl<'a, C> !UnwindSafe for FirewallPolicyMethods<'a, C>[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[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.
pub 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>,