Struct OrganizationMethods

Source
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>

Source

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 format projects|organization/*/locations/{location}/addressGroups/*.
Source

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 format projects|organization/*/locations/{location}/addressGroups/*.
Source

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 format projects/*/locations/{location}.
Source

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 format projects/*/locations/{location}/addressGroups/*.
Source

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 format projects/*/locations/{location}/addressGroups/*.
Source

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 format projects/*/locations/{location}.
Source

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 format projects|organization/*/locations/{location}/addressGroups/*.
Source

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 pattern projects/*/locations/{location}/addressGroups/.
Source

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 format projects|organization/*/locations/{location}/addressGroups/*.
Source

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.
Source

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
Source

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
Source

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
Source

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
Source

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.
Source

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.
Source

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.
Source

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.
Source

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 format projects|organizations/*/locations/{location}.
Source

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 format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.
Source

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 format projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.
Source

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 format projects|organizations/*/locations/{location}.
Source

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 pattern projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.
Source

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 format projects|organizations/*/locations/{location}.
Source

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 format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.
Source

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 format projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}.
Source

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 format projects|organizations/*/locations/{location}.
Source

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 pattern projects|organizations/*/locations/{location}/securityProfiles/{security_profile}.

Trait Implementations§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,