pub struct OrganizationMethods<'a, C>where
C: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on organization resources.
It is not used directly, but through the NetworkSecurity
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_networksecurity1 as networksecurity1;
use networksecurity1::{NetworkSecurity, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http1()
.build()
);
let mut hub = NetworkSecurity::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_address_groups_add_items(...)`, `locations_address_groups_clone_items(...)`, `locations_address_groups_create(...)`, `locations_address_groups_delete(...)`, `locations_address_groups_get(...)`, `locations_address_groups_list(...)`, `locations_address_groups_list_references(...)`, `locations_address_groups_patch(...)`, `locations_address_groups_remove_items(...)`, `locations_firewall_endpoints_create(...)`, `locations_firewall_endpoints_delete(...)`, `locations_firewall_endpoints_get(...)`, `locations_firewall_endpoints_list(...)`, `locations_firewall_endpoints_patch(...)`, `locations_operations_cancel(...)`, `locations_operations_delete(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `locations_security_profile_groups_create(...)`, `locations_security_profile_groups_delete(...)`, `locations_security_profile_groups_get(...)`, `locations_security_profile_groups_list(...)`, `locations_security_profile_groups_patch(...)`, `locations_security_profiles_create(...)`, `locations_security_profiles_delete(...)`, `locations_security_profiles_get(...)`, `locations_security_profiles_list(...)` and `locations_security_profiles_patch(...)`
// to build up your call.
let rb = hub.organizations();
Implementations§
Source§impl<'a, C> OrganizationMethods<'a, C>
impl<'a, C> OrganizationMethods<'a, C>
Sourcepub fn locations_address_groups_add_items(
&self,
request: AddAddressGroupItemsRequest,
address_group: &str,
) -> OrganizationLocationAddressGroupAddItemCall<'a, C>
pub fn locations_address_groups_add_items( &self, request: AddAddressGroupItemsRequest, address_group: &str, ) -> OrganizationLocationAddressGroupAddItemCall<'a, C>
Create a builder to help you perform the following task:
Adds items to an address group.
§Arguments
request
- No description provided.addressGroup
- Required. A name of the AddressGroup to add items to. Must be in the formatprojects|organization/*/locations/{location}/addressGroups/*
.
Sourcepub fn locations_address_groups_clone_items(
&self,
request: CloneAddressGroupItemsRequest,
address_group: &str,
) -> OrganizationLocationAddressGroupCloneItemCall<'a, C>
pub fn locations_address_groups_clone_items( &self, request: CloneAddressGroupItemsRequest, address_group: &str, ) -> OrganizationLocationAddressGroupCloneItemCall<'a, C>
Create a builder to help you perform the following task:
Clones items from one address group to another.
§Arguments
request
- No description provided.addressGroup
- Required. A name of the AddressGroup to clone items to. Must be in the formatprojects|organization/*/locations/{location}/addressGroups/*
.
Sourcepub fn locations_address_groups_create(
&self,
request: AddressGroup,
parent: &str,
) -> OrganizationLocationAddressGroupCreateCall<'a, C>
pub fn locations_address_groups_create( &self, request: AddressGroup, parent: &str, ) -> OrganizationLocationAddressGroupCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new address group in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent resource of the AddressGroup. Must be in the formatprojects/*/locations/{location}
.
Sourcepub fn locations_address_groups_delete(
&self,
name: &str,
) -> OrganizationLocationAddressGroupDeleteCall<'a, C>
pub fn locations_address_groups_delete( &self, name: &str, ) -> OrganizationLocationAddressGroupDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes an address group.
§Arguments
name
- Required. A name of the AddressGroup to delete. Must be in the formatprojects/*/locations/{location}/addressGroups/*
.
Sourcepub fn locations_address_groups_get(
&self,
name: &str,
) -> OrganizationLocationAddressGroupGetCall<'a, C>
pub fn locations_address_groups_get( &self, name: &str, ) -> OrganizationLocationAddressGroupGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single address group.
§Arguments
name
- Required. A name of the AddressGroup to get. Must be in the formatprojects/*/locations/{location}/addressGroups/*
.
Sourcepub fn locations_address_groups_list(
&self,
parent: &str,
) -> OrganizationLocationAddressGroupListCall<'a, C>
pub fn locations_address_groups_list( &self, parent: &str, ) -> OrganizationLocationAddressGroupListCall<'a, C>
Create a builder to help you perform the following task:
Lists address groups in a given project and location.
§Arguments
parent
- Required. The project and location from which the AddressGroups should be listed, specified in the formatprojects/*/locations/{location}
.
Sourcepub fn locations_address_groups_list_references(
&self,
address_group: &str,
) -> OrganizationLocationAddressGroupListReferenceCall<'a, C>
pub fn locations_address_groups_list_references( &self, address_group: &str, ) -> OrganizationLocationAddressGroupListReferenceCall<'a, C>
Create a builder to help you perform the following task:
Lists references of an address group.
§Arguments
addressGroup
- Required. A name of the AddressGroup to clone items to. Must be in the formatprojects|organization/*/locations/{location}/addressGroups/*
.
Sourcepub fn locations_address_groups_patch(
&self,
request: AddressGroup,
name: &str,
) -> OrganizationLocationAddressGroupPatchCall<'a, C>
pub fn locations_address_groups_patch( &self, request: AddressGroup, name: &str, ) -> OrganizationLocationAddressGroupPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates parameters of an address group.
§Arguments
request
- No description provided.name
- Required. Name of the AddressGroup resource. It matches patternprojects/*/locations/{location}/addressGroups/
.
Sourcepub fn locations_address_groups_remove_items(
&self,
request: RemoveAddressGroupItemsRequest,
address_group: &str,
) -> OrganizationLocationAddressGroupRemoveItemCall<'a, C>
pub fn locations_address_groups_remove_items( &self, request: RemoveAddressGroupItemsRequest, address_group: &str, ) -> OrganizationLocationAddressGroupRemoveItemCall<'a, C>
Create a builder to help you perform the following task:
Removes items from an address group.
§Arguments
request
- No description provided.addressGroup
- Required. A name of the AddressGroup to remove items from. Must be in the formatprojects|organization/*/locations/{location}/addressGroups/*
.
Sourcepub fn locations_firewall_endpoints_create(
&self,
request: FirewallEndpoint,
parent: &str,
) -> OrganizationLocationFirewallEndpointCreateCall<'a, C>
pub fn locations_firewall_endpoints_create( &self, request: FirewallEndpoint, parent: &str, ) -> OrganizationLocationFirewallEndpointCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new FirewallEndpoint in a given project and location.
§Arguments
request
- No description provided.parent
- Required. Value for parent.
Sourcepub fn locations_firewall_endpoints_delete(
&self,
name: &str,
) -> OrganizationLocationFirewallEndpointDeleteCall<'a, C>
pub fn locations_firewall_endpoints_delete( &self, name: &str, ) -> OrganizationLocationFirewallEndpointDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single Endpoint.
§Arguments
name
- Required. Name of the resource
Sourcepub fn locations_firewall_endpoints_get(
&self,
name: &str,
) -> OrganizationLocationFirewallEndpointGetCall<'a, C>
pub fn locations_firewall_endpoints_get( &self, name: &str, ) -> OrganizationLocationFirewallEndpointGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single Endpoint.
§Arguments
name
- Required. Name of the resource
Sourcepub fn locations_firewall_endpoints_list(
&self,
parent: &str,
) -> OrganizationLocationFirewallEndpointListCall<'a, C>
pub fn locations_firewall_endpoints_list( &self, parent: &str, ) -> OrganizationLocationFirewallEndpointListCall<'a, C>
Create a builder to help you perform the following task:
Lists FirewallEndpoints in a given project and location.
§Arguments
parent
- Required. Parent value for ListEndpointsRequest
Sourcepub fn locations_firewall_endpoints_patch(
&self,
request: FirewallEndpoint,
name: &str,
) -> OrganizationLocationFirewallEndpointPatchCall<'a, C>
pub fn locations_firewall_endpoints_patch( &self, request: FirewallEndpoint, name: &str, ) -> OrganizationLocationFirewallEndpointPatchCall<'a, C>
Create a builder to help you perform the following task:
Update a single Endpoint.
§Arguments
request
- No description provided.name
- Immutable. Identifier. name of resource
Sourcepub fn locations_operations_cancel(
&self,
request: CancelOperationRequest,
name: &str,
) -> OrganizationLocationOperationCancelCall<'a, C>
pub fn locations_operations_cancel( &self, request: CancelOperationRequest, name: &str, ) -> OrganizationLocationOperationCancelCall<'a, C>
Create a builder to help you perform the following task:
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED
. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED
.
§Arguments
request
- No description provided.name
- The name of the operation resource to be cancelled.
Sourcepub fn locations_operations_delete(
&self,
name: &str,
) -> OrganizationLocationOperationDeleteCall<'a, C>
pub fn locations_operations_delete( &self, name: &str, ) -> OrganizationLocationOperationDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED
.
§Arguments
name
- The name of the operation resource to be deleted.
Sourcepub fn locations_operations_get(
&self,
name: &str,
) -> OrganizationLocationOperationGetCall<'a, C>
pub fn locations_operations_get( &self, name: &str, ) -> OrganizationLocationOperationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
§Arguments
name
- The name of the operation resource.
Sourcepub fn locations_operations_list(
&self,
name: &str,
) -> OrganizationLocationOperationListCall<'a, C>
pub fn locations_operations_list( &self, name: &str, ) -> OrganizationLocationOperationListCall<'a, C>
Create a builder to help you perform the following task:
Lists operations that match the specified filter in the request. If the server doesn’t support this method, it returns UNIMPLEMENTED
.
§Arguments
name
- The name of the operation’s parent resource.
Sourcepub fn locations_security_profile_groups_create(
&self,
request: SecurityProfileGroup,
parent: &str,
) -> OrganizationLocationSecurityProfileGroupCreateCall<'a, C>
pub fn locations_security_profile_groups_create( &self, request: SecurityProfileGroup, parent: &str, ) -> OrganizationLocationSecurityProfileGroupCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new SecurityProfileGroup in a given organization and location.
§Arguments
request
- No description provided.parent
- Required. The parent resource of the SecurityProfileGroup. Must be in the formatprojects|organizations/*/locations/{location}
.
Sourcepub fn locations_security_profile_groups_delete(
&self,
name: &str,
) -> OrganizationLocationSecurityProfileGroupDeleteCall<'a, C>
pub fn locations_security_profile_groups_delete( &self, name: &str, ) -> OrganizationLocationSecurityProfileGroupDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single SecurityProfileGroup.
§Arguments
name
- Required. A name of the SecurityProfileGroup to delete. Must be in the formatprojects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}
.
Sourcepub fn locations_security_profile_groups_get(
&self,
name: &str,
) -> OrganizationLocationSecurityProfileGroupGetCall<'a, C>
pub fn locations_security_profile_groups_get( &self, name: &str, ) -> OrganizationLocationSecurityProfileGroupGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single SecurityProfileGroup.
§Arguments
name
- Required. A name of the SecurityProfileGroup to get. Must be in the formatprojects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}
.
Sourcepub fn locations_security_profile_groups_list(
&self,
parent: &str,
) -> OrganizationLocationSecurityProfileGroupListCall<'a, C>
pub fn locations_security_profile_groups_list( &self, parent: &str, ) -> OrganizationLocationSecurityProfileGroupListCall<'a, C>
Create a builder to help you perform the following task:
Lists SecurityProfileGroups in a given organization and location.
§Arguments
parent
- Required. The project or organization and location from which the SecurityProfileGroups should be listed, specified in the formatprojects|organizations/*/locations/{location}
.
Sourcepub fn locations_security_profile_groups_patch(
&self,
request: SecurityProfileGroup,
name: &str,
) -> OrganizationLocationSecurityProfileGroupPatchCall<'a, C>
pub fn locations_security_profile_groups_patch( &self, request: SecurityProfileGroup, name: &str, ) -> OrganizationLocationSecurityProfileGroupPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the parameters of a single SecurityProfileGroup.
§Arguments
request
- No description provided.name
- Immutable. Identifier. Name of the SecurityProfileGroup resource. It matches patternprojects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}
.
Sourcepub fn locations_security_profiles_create(
&self,
request: SecurityProfile,
parent: &str,
) -> OrganizationLocationSecurityProfileCreateCall<'a, C>
pub fn locations_security_profiles_create( &self, request: SecurityProfile, parent: &str, ) -> OrganizationLocationSecurityProfileCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new SecurityProfile in a given organization and location.
§Arguments
request
- No description provided.parent
- Required. The parent resource of the SecurityProfile. Must be in the formatprojects|organizations/*/locations/{location}
.
Sourcepub fn locations_security_profiles_delete(
&self,
name: &str,
) -> OrganizationLocationSecurityProfileDeleteCall<'a, C>
pub fn locations_security_profiles_delete( &self, name: &str, ) -> OrganizationLocationSecurityProfileDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single SecurityProfile.
§Arguments
name
- Required. A name of the SecurityProfile to delete. Must be in the formatprojects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}
.
Sourcepub fn locations_security_profiles_get(
&self,
name: &str,
) -> OrganizationLocationSecurityProfileGetCall<'a, C>
pub fn locations_security_profiles_get( &self, name: &str, ) -> OrganizationLocationSecurityProfileGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single SecurityProfile.
§Arguments
name
- Required. A name of the SecurityProfile to get. Must be in the formatprojects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}
.
Sourcepub fn locations_security_profiles_list(
&self,
parent: &str,
) -> OrganizationLocationSecurityProfileListCall<'a, C>
pub fn locations_security_profiles_list( &self, parent: &str, ) -> OrganizationLocationSecurityProfileListCall<'a, C>
Create a builder to help you perform the following task:
Lists SecurityProfiles in a given organization and location.
§Arguments
parent
- Required. The project or organization and location from which the SecurityProfiles should be listed, specified in the formatprojects|organizations/*/locations/{location}
.
Sourcepub fn locations_security_profiles_patch(
&self,
request: SecurityProfile,
name: &str,
) -> OrganizationLocationSecurityProfilePatchCall<'a, C>
pub fn locations_security_profiles_patch( &self, request: SecurityProfile, name: &str, ) -> OrganizationLocationSecurityProfilePatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the parameters of a single SecurityProfile.
§Arguments
request
- No description provided.name
- Immutable. Identifier. Name of the SecurityProfile resource. It matches patternprojects|organizations/*/locations/{location}/securityProfiles/{security_profile}
.
Trait Implementations§
impl<'a, C> MethodsBuilder for OrganizationMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for OrganizationMethods<'a, C>
impl<'a, C> !RefUnwindSafe for OrganizationMethods<'a, C>
impl<'a, C> Send for OrganizationMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for OrganizationMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for OrganizationMethods<'a, C>
impl<'a, C> !UnwindSafe for OrganizationMethods<'a, C>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more