pub struct ProjectMethods<'a, C>where
C: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on project 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_get_iam_policy(...)`, `locations_address_groups_list(...)`, `locations_address_groups_list_references(...)`, `locations_address_groups_patch(...)`, `locations_address_groups_remove_items(...)`, `locations_address_groups_set_iam_policy(...)`, `locations_address_groups_test_iam_permissions(...)`, `locations_authorization_policies_create(...)`, `locations_authorization_policies_delete(...)`, `locations_authorization_policies_get(...)`, `locations_authorization_policies_get_iam_policy(...)`, `locations_authorization_policies_list(...)`, `locations_authorization_policies_patch(...)`, `locations_authorization_policies_set_iam_policy(...)`, `locations_authorization_policies_test_iam_permissions(...)`, `locations_client_tls_policies_create(...)`, `locations_client_tls_policies_delete(...)`, `locations_client_tls_policies_get(...)`, `locations_client_tls_policies_get_iam_policy(...)`, `locations_client_tls_policies_list(...)`, `locations_client_tls_policies_patch(...)`, `locations_client_tls_policies_set_iam_policy(...)`, `locations_client_tls_policies_test_iam_permissions(...)`, `locations_firewall_endpoint_associations_create(...)`, `locations_firewall_endpoint_associations_delete(...)`, `locations_firewall_endpoint_associations_get(...)`, `locations_firewall_endpoint_associations_list(...)`, `locations_firewall_endpoint_associations_patch(...)`, `locations_gateway_security_policies_create(...)`, `locations_gateway_security_policies_delete(...)`, `locations_gateway_security_policies_get(...)`, `locations_gateway_security_policies_list(...)`, `locations_gateway_security_policies_patch(...)`, `locations_gateway_security_policies_rules_create(...)`, `locations_gateway_security_policies_rules_delete(...)`, `locations_gateway_security_policies_rules_get(...)`, `locations_gateway_security_policies_rules_list(...)`, `locations_gateway_security_policies_rules_patch(...)`, `locations_get(...)`, `locations_list(...)`, `locations_operations_cancel(...)`, `locations_operations_delete(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `locations_server_tls_policies_create(...)`, `locations_server_tls_policies_delete(...)`, `locations_server_tls_policies_get(...)`, `locations_server_tls_policies_get_iam_policy(...)`, `locations_server_tls_policies_list(...)`, `locations_server_tls_policies_patch(...)`, `locations_server_tls_policies_set_iam_policy(...)`, `locations_server_tls_policies_test_iam_permissions(...)`, `locations_tls_inspection_policies_create(...)`, `locations_tls_inspection_policies_delete(...)`, `locations_tls_inspection_policies_get(...)`, `locations_tls_inspection_policies_list(...)`, `locations_tls_inspection_policies_patch(...)`, `locations_url_lists_create(...)`, `locations_url_lists_delete(...)`, `locations_url_lists_get(...)`, `locations_url_lists_list(...)` and `locations_url_lists_patch(...)`
// to build up your call.
let rb = hub.projects();
Implementations§
Source§impl<'a, C> ProjectMethods<'a, C>
impl<'a, C> ProjectMethods<'a, C>
Sourcepub fn locations_address_groups_add_items(
&self,
request: AddAddressGroupItemsRequest,
address_group: &str,
) -> ProjectLocationAddressGroupAddItemCall<'a, C>
pub fn locations_address_groups_add_items( &self, request: AddAddressGroupItemsRequest, address_group: &str, ) -> ProjectLocationAddressGroupAddItemCall<'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,
) -> ProjectLocationAddressGroupCloneItemCall<'a, C>
pub fn locations_address_groups_clone_items( &self, request: CloneAddressGroupItemsRequest, address_group: &str, ) -> ProjectLocationAddressGroupCloneItemCall<'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,
) -> ProjectLocationAddressGroupCreateCall<'a, C>
pub fn locations_address_groups_create( &self, request: AddressGroup, parent: &str, ) -> ProjectLocationAddressGroupCreateCall<'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,
) -> ProjectLocationAddressGroupDeleteCall<'a, C>
pub fn locations_address_groups_delete( &self, name: &str, ) -> ProjectLocationAddressGroupDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single 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,
) -> ProjectLocationAddressGroupGetCall<'a, C>
pub fn locations_address_groups_get( &self, name: &str, ) -> ProjectLocationAddressGroupGetCall<'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_get_iam_policy(
&self,
resource: &str,
) -> ProjectLocationAddressGroupGetIamPolicyCall<'a, C>
pub fn locations_address_groups_get_iam_policy( &self, resource: &str, ) -> ProjectLocationAddressGroupGetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
§Arguments
resource
- REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_address_groups_list(
&self,
parent: &str,
) -> ProjectLocationAddressGroupListCall<'a, C>
pub fn locations_address_groups_list( &self, parent: &str, ) -> ProjectLocationAddressGroupListCall<'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,
) -> ProjectLocationAddressGroupListReferenceCall<'a, C>
pub fn locations_address_groups_list_references( &self, address_group: &str, ) -> ProjectLocationAddressGroupListReferenceCall<'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,
) -> ProjectLocationAddressGroupPatchCall<'a, C>
pub fn locations_address_groups_patch( &self, request: AddressGroup, name: &str, ) -> ProjectLocationAddressGroupPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the parameters of a single 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,
) -> ProjectLocationAddressGroupRemoveItemCall<'a, C>
pub fn locations_address_groups_remove_items( &self, request: RemoveAddressGroupItemsRequest, address_group: &str, ) -> ProjectLocationAddressGroupRemoveItemCall<'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_address_groups_set_iam_policy(
&self,
request: GoogleIamV1SetIamPolicyRequest,
resource: &str,
) -> ProjectLocationAddressGroupSetIamPolicyCall<'a, C>
pub fn locations_address_groups_set_iam_policy( &self, request: GoogleIamV1SetIamPolicyRequest, resource: &str, ) -> ProjectLocationAddressGroupSetIamPolicyCall<'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. Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Sourcepub fn locations_address_groups_test_iam_permissions(
&self,
request: GoogleIamV1TestIamPermissionsRequest,
resource: &str,
) -> ProjectLocationAddressGroupTestIamPermissionCall<'a, C>
pub fn locations_address_groups_test_iam_permissions( &self, request: GoogleIamV1TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationAddressGroupTestIamPermissionCall<'a, C>
Create a builder to help you perform the following task:
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND
error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Create a builder to help you perform the following task:
Creates a new AuthorizationPolicy in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent resource of the AuthorizationPolicy. Must be in the formatprojects/{project}/locations/{location}
.
Create a builder to help you perform the following task:
Deletes a single AuthorizationPolicy.
§Arguments
name
- Required. A name of the AuthorizationPolicy to delete. Must be in the formatprojects/{project}/locations/{location}/authorizationPolicies/*
.
Create a builder to help you perform the following task:
Gets details of a single AuthorizationPolicy.
§Arguments
name
- Required. A name of the AuthorizationPolicy to get. Must be in the formatprojects/{project}/locations/{location}/authorizationPolicies/*
.
Create a builder to help you perform the following task:
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
§Arguments
resource
- REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Create a builder to help you perform the following task:
Lists AuthorizationPolicies in a given project and location.
§Arguments
parent
- Required. The project and location from which the AuthorizationPolicies should be listed, specified in the formatprojects/{project}/locations/{location}
.
Create a builder to help you perform the following task:
Updates the parameters of a single AuthorizationPolicy.
§Arguments
request
- No description provided.name
- Required. Name of the AuthorizationPolicy resource. It matches patternprojects/{project}/locations/{location}/authorizationPolicies/
.
Create a builder to help you perform the following task:
Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Create a builder to help you perform the following task:
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND
error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_client_tls_policies_create(
&self,
request: ClientTlsPolicy,
parent: &str,
) -> ProjectLocationClientTlsPolicyCreateCall<'a, C>
pub fn locations_client_tls_policies_create( &self, request: ClientTlsPolicy, parent: &str, ) -> ProjectLocationClientTlsPolicyCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new ClientTlsPolicy in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent resource of the ClientTlsPolicy. Must be in the formatprojects/*/locations/{location}
.
Sourcepub fn locations_client_tls_policies_delete(
&self,
name: &str,
) -> ProjectLocationClientTlsPolicyDeleteCall<'a, C>
pub fn locations_client_tls_policies_delete( &self, name: &str, ) -> ProjectLocationClientTlsPolicyDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single ClientTlsPolicy.
§Arguments
name
- Required. A name of the ClientTlsPolicy to delete. Must be in the formatprojects/*/locations/{location}/clientTlsPolicies/*
.
Sourcepub fn locations_client_tls_policies_get(
&self,
name: &str,
) -> ProjectLocationClientTlsPolicyGetCall<'a, C>
pub fn locations_client_tls_policies_get( &self, name: &str, ) -> ProjectLocationClientTlsPolicyGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single ClientTlsPolicy.
§Arguments
name
- Required. A name of the ClientTlsPolicy to get. Must be in the formatprojects/*/locations/{location}/clientTlsPolicies/*
.
Sourcepub fn locations_client_tls_policies_get_iam_policy(
&self,
resource: &str,
) -> ProjectLocationClientTlsPolicyGetIamPolicyCall<'a, C>
pub fn locations_client_tls_policies_get_iam_policy( &self, resource: &str, ) -> ProjectLocationClientTlsPolicyGetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
§Arguments
resource
- REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_client_tls_policies_list(
&self,
parent: &str,
) -> ProjectLocationClientTlsPolicyListCall<'a, C>
pub fn locations_client_tls_policies_list( &self, parent: &str, ) -> ProjectLocationClientTlsPolicyListCall<'a, C>
Create a builder to help you perform the following task:
Lists ClientTlsPolicies in a given project and location.
§Arguments
parent
- Required. The project and location from which the ClientTlsPolicies should be listed, specified in the formatprojects/*/locations/{location}
.
Sourcepub fn locations_client_tls_policies_patch(
&self,
request: ClientTlsPolicy,
name: &str,
) -> ProjectLocationClientTlsPolicyPatchCall<'a, C>
pub fn locations_client_tls_policies_patch( &self, request: ClientTlsPolicy, name: &str, ) -> ProjectLocationClientTlsPolicyPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the parameters of a single ClientTlsPolicy.
§Arguments
request
- No description provided.name
- Required. Name of the ClientTlsPolicy resource. It matches the patternprojects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}
Sourcepub fn locations_client_tls_policies_set_iam_policy(
&self,
request: GoogleIamV1SetIamPolicyRequest,
resource: &str,
) -> ProjectLocationClientTlsPolicySetIamPolicyCall<'a, C>
pub fn locations_client_tls_policies_set_iam_policy( &self, request: GoogleIamV1SetIamPolicyRequest, resource: &str, ) -> ProjectLocationClientTlsPolicySetIamPolicyCall<'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. Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Sourcepub fn locations_client_tls_policies_test_iam_permissions(
&self,
request: GoogleIamV1TestIamPermissionsRequest,
resource: &str,
) -> ProjectLocationClientTlsPolicyTestIamPermissionCall<'a, C>
pub fn locations_client_tls_policies_test_iam_permissions( &self, request: GoogleIamV1TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationClientTlsPolicyTestIamPermissionCall<'a, C>
Create a builder to help you perform the following task:
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND
error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_firewall_endpoint_associations_create(
&self,
request: FirewallEndpointAssociation,
parent: &str,
) -> ProjectLocationFirewallEndpointAssociationCreateCall<'a, C>
pub fn locations_firewall_endpoint_associations_create( &self, request: FirewallEndpointAssociation, parent: &str, ) -> ProjectLocationFirewallEndpointAssociationCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new FirewallEndpointAssociation in a given project and location.
§Arguments
request
- No description provided.parent
- Required. Value for parent.
Sourcepub fn locations_firewall_endpoint_associations_delete(
&self,
name: &str,
) -> ProjectLocationFirewallEndpointAssociationDeleteCall<'a, C>
pub fn locations_firewall_endpoint_associations_delete( &self, name: &str, ) -> ProjectLocationFirewallEndpointAssociationDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single FirewallEndpointAssociation.
§Arguments
name
- Required. Name of the resource
Sourcepub fn locations_firewall_endpoint_associations_get(
&self,
name: &str,
) -> ProjectLocationFirewallEndpointAssociationGetCall<'a, C>
pub fn locations_firewall_endpoint_associations_get( &self, name: &str, ) -> ProjectLocationFirewallEndpointAssociationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single FirewallEndpointAssociation.
§Arguments
name
- Required. Name of the resource
Sourcepub fn locations_firewall_endpoint_associations_list(
&self,
parent: &str,
) -> ProjectLocationFirewallEndpointAssociationListCall<'a, C>
pub fn locations_firewall_endpoint_associations_list( &self, parent: &str, ) -> ProjectLocationFirewallEndpointAssociationListCall<'a, C>
Create a builder to help you perform the following task:
Lists Associations in a given project and location.
§Arguments
parent
- Required. Parent value for ListAssociationsRequest
Sourcepub fn locations_firewall_endpoint_associations_patch(
&self,
request: FirewallEndpointAssociation,
name: &str,
) -> ProjectLocationFirewallEndpointAssociationPatchCall<'a, C>
pub fn locations_firewall_endpoint_associations_patch( &self, request: FirewallEndpointAssociation, name: &str, ) -> ProjectLocationFirewallEndpointAssociationPatchCall<'a, C>
Create a builder to help you perform the following task:
Update a single FirewallEndpointAssociation.
§Arguments
request
- No description provided.name
- Immutable. Identifier. name of resource
Sourcepub fn locations_gateway_security_policies_rules_create(
&self,
request: GatewaySecurityPolicyRule,
parent: &str,
) -> ProjectLocationGatewaySecurityPolicyRuleCreateCall<'a, C>
pub fn locations_gateway_security_policies_rules_create( &self, request: GatewaySecurityPolicyRule, parent: &str, ) -> ProjectLocationGatewaySecurityPolicyRuleCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new GatewaySecurityPolicy in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*
Sourcepub fn locations_gateway_security_policies_rules_delete(
&self,
name: &str,
) -> ProjectLocationGatewaySecurityPolicyRuleDeleteCall<'a, C>
pub fn locations_gateway_security_policies_rules_delete( &self, name: &str, ) -> ProjectLocationGatewaySecurityPolicyRuleDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single GatewaySecurityPolicyRule.
§Arguments
name
- Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the formatprojects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*
.
Sourcepub fn locations_gateway_security_policies_rules_get(
&self,
name: &str,
) -> ProjectLocationGatewaySecurityPolicyRuleGetCall<'a, C>
pub fn locations_gateway_security_policies_rules_get( &self, name: &str, ) -> ProjectLocationGatewaySecurityPolicyRuleGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single GatewaySecurityPolicyRule.
§Arguments
name
- Required. The name of the GatewaySecurityPolicyRule to retrieve. Format: projects/{project}/location/{location}/gatewaySecurityPolicies//rules/
Sourcepub fn locations_gateway_security_policies_rules_list(
&self,
parent: &str,
) -> ProjectLocationGatewaySecurityPolicyRuleListCall<'a, C>
pub fn locations_gateway_security_policies_rules_list( &self, parent: &str, ) -> ProjectLocationGatewaySecurityPolicyRuleListCall<'a, C>
Create a builder to help you perform the following task:
Lists GatewaySecurityPolicyRules in a given project and location.
§Arguments
parent
- Required. The project, location and GatewaySecurityPolicy from which the GatewaySecurityPolicyRules should be listed, specified in the formatprojects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}
.
Sourcepub fn locations_gateway_security_policies_rules_patch(
&self,
request: GatewaySecurityPolicyRule,
name: &str,
) -> ProjectLocationGatewaySecurityPolicyRulePatchCall<'a, C>
pub fn locations_gateway_security_policies_rules_patch( &self, request: GatewaySecurityPolicyRule, name: &str, ) -> ProjectLocationGatewaySecurityPolicyRulePatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the parameters of a single GatewaySecurityPolicyRule.
§Arguments
request
- No description provided.name
- Required. Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).
Sourcepub fn locations_gateway_security_policies_create(
&self,
request: GatewaySecurityPolicy,
parent: &str,
) -> ProjectLocationGatewaySecurityPolicyCreateCall<'a, C>
pub fn locations_gateway_security_policies_create( &self, request: GatewaySecurityPolicy, parent: &str, ) -> ProjectLocationGatewaySecurityPolicyCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new GatewaySecurityPolicy in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent resource of the GatewaySecurityPolicy. Must be in the formatprojects/{project}/locations/{location}
.
Sourcepub fn locations_gateway_security_policies_delete(
&self,
name: &str,
) -> ProjectLocationGatewaySecurityPolicyDeleteCall<'a, C>
pub fn locations_gateway_security_policies_delete( &self, name: &str, ) -> ProjectLocationGatewaySecurityPolicyDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single GatewaySecurityPolicy.
§Arguments
name
- Required. A name of the GatewaySecurityPolicy to delete. Must be in the formatprojects/{project}/locations/{location}/gatewaySecurityPolicies/*
.
Sourcepub fn locations_gateway_security_policies_get(
&self,
name: &str,
) -> ProjectLocationGatewaySecurityPolicyGetCall<'a, C>
pub fn locations_gateway_security_policies_get( &self, name: &str, ) -> ProjectLocationGatewaySecurityPolicyGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single GatewaySecurityPolicy.
§Arguments
name
- Required. A name of the GatewaySecurityPolicy to get. Must be in the formatprojects/{project}/locations/{location}/gatewaySecurityPolicies/*
.
Sourcepub fn locations_gateway_security_policies_list(
&self,
parent: &str,
) -> ProjectLocationGatewaySecurityPolicyListCall<'a, C>
pub fn locations_gateway_security_policies_list( &self, parent: &str, ) -> ProjectLocationGatewaySecurityPolicyListCall<'a, C>
Create a builder to help you perform the following task:
Lists GatewaySecurityPolicies in a given project and location.
§Arguments
parent
- Required. The project and location from which the GatewaySecurityPolicies should be listed, specified in the formatprojects/{project}/locations/{location}
.
Sourcepub fn locations_gateway_security_policies_patch(
&self,
request: GatewaySecurityPolicy,
name: &str,
) -> ProjectLocationGatewaySecurityPolicyPatchCall<'a, C>
pub fn locations_gateway_security_policies_patch( &self, request: GatewaySecurityPolicy, name: &str, ) -> ProjectLocationGatewaySecurityPolicyPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the parameters of a single GatewaySecurityPolicy.
§Arguments
request
- No description provided.name
- Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
Sourcepub fn locations_operations_cancel(
&self,
request: CancelOperationRequest,
name: &str,
) -> ProjectLocationOperationCancelCall<'a, C>
pub fn locations_operations_cancel( &self, request: CancelOperationRequest, name: &str, ) -> ProjectLocationOperationCancelCall<'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,
) -> ProjectLocationOperationDeleteCall<'a, C>
pub fn locations_operations_delete( &self, name: &str, ) -> ProjectLocationOperationDeleteCall<'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,
) -> ProjectLocationOperationGetCall<'a, C>
pub fn locations_operations_get( &self, name: &str, ) -> ProjectLocationOperationGetCall<'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,
) -> ProjectLocationOperationListCall<'a, C>
pub fn locations_operations_list( &self, name: &str, ) -> ProjectLocationOperationListCall<'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_server_tls_policies_create(
&self,
request: ServerTlsPolicy,
parent: &str,
) -> ProjectLocationServerTlsPolicyCreateCall<'a, C>
pub fn locations_server_tls_policies_create( &self, request: ServerTlsPolicy, parent: &str, ) -> ProjectLocationServerTlsPolicyCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new ServerTlsPolicy in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent resource of the ServerTlsPolicy. Must be in the formatprojects/*/locations/{location}
.
Sourcepub fn locations_server_tls_policies_delete(
&self,
name: &str,
) -> ProjectLocationServerTlsPolicyDeleteCall<'a, C>
pub fn locations_server_tls_policies_delete( &self, name: &str, ) -> ProjectLocationServerTlsPolicyDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single ServerTlsPolicy.
§Arguments
name
- Required. A name of the ServerTlsPolicy to delete. Must be in the formatprojects/*/locations/{location}/serverTlsPolicies/*
.
Sourcepub fn locations_server_tls_policies_get(
&self,
name: &str,
) -> ProjectLocationServerTlsPolicyGetCall<'a, C>
pub fn locations_server_tls_policies_get( &self, name: &str, ) -> ProjectLocationServerTlsPolicyGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single ServerTlsPolicy.
§Arguments
name
- Required. A name of the ServerTlsPolicy to get. Must be in the formatprojects/*/locations/{location}/serverTlsPolicies/*
.
Sourcepub fn locations_server_tls_policies_get_iam_policy(
&self,
resource: &str,
) -> ProjectLocationServerTlsPolicyGetIamPolicyCall<'a, C>
pub fn locations_server_tls_policies_get_iam_policy( &self, resource: &str, ) -> ProjectLocationServerTlsPolicyGetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
§Arguments
resource
- REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_server_tls_policies_list(
&self,
parent: &str,
) -> ProjectLocationServerTlsPolicyListCall<'a, C>
pub fn locations_server_tls_policies_list( &self, parent: &str, ) -> ProjectLocationServerTlsPolicyListCall<'a, C>
Create a builder to help you perform the following task:
Lists ServerTlsPolicies in a given project and location.
§Arguments
parent
- Required. The project and location from which the ServerTlsPolicies should be listed, specified in the formatprojects/*/locations/{location}
.
Sourcepub fn locations_server_tls_policies_patch(
&self,
request: ServerTlsPolicy,
name: &str,
) -> ProjectLocationServerTlsPolicyPatchCall<'a, C>
pub fn locations_server_tls_policies_patch( &self, request: ServerTlsPolicy, name: &str, ) -> ProjectLocationServerTlsPolicyPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the parameters of a single ServerTlsPolicy.
§Arguments
request
- No description provided.name
- Required. Name of the ServerTlsPolicy resource. It matches the patternprojects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}
Sourcepub fn locations_server_tls_policies_set_iam_policy(
&self,
request: GoogleIamV1SetIamPolicyRequest,
resource: &str,
) -> ProjectLocationServerTlsPolicySetIamPolicyCall<'a, C>
pub fn locations_server_tls_policies_set_iam_policy( &self, request: GoogleIamV1SetIamPolicyRequest, resource: &str, ) -> ProjectLocationServerTlsPolicySetIamPolicyCall<'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. Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Sourcepub fn locations_server_tls_policies_test_iam_permissions(
&self,
request: GoogleIamV1TestIamPermissionsRequest,
resource: &str,
) -> ProjectLocationServerTlsPolicyTestIamPermissionCall<'a, C>
pub fn locations_server_tls_policies_test_iam_permissions( &self, request: GoogleIamV1TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationServerTlsPolicyTestIamPermissionCall<'a, C>
Create a builder to help you perform the following task:
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND
error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_tls_inspection_policies_create(
&self,
request: TlsInspectionPolicy,
parent: &str,
) -> ProjectLocationTlsInspectionPolicyCreateCall<'a, C>
pub fn locations_tls_inspection_policies_create( &self, request: TlsInspectionPolicy, parent: &str, ) -> ProjectLocationTlsInspectionPolicyCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new TlsInspectionPolicy in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent resource of the TlsInspectionPolicy. Must be in the formatprojects/{project}/locations/{location}
.
Sourcepub fn locations_tls_inspection_policies_delete(
&self,
name: &str,
) -> ProjectLocationTlsInspectionPolicyDeleteCall<'a, C>
pub fn locations_tls_inspection_policies_delete( &self, name: &str, ) -> ProjectLocationTlsInspectionPolicyDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single TlsInspectionPolicy.
§Arguments
name
- Required. A name of the TlsInspectionPolicy to delete. Must be in the formatprojects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
.
Sourcepub fn locations_tls_inspection_policies_get(
&self,
name: &str,
) -> ProjectLocationTlsInspectionPolicyGetCall<'a, C>
pub fn locations_tls_inspection_policies_get( &self, name: &str, ) -> ProjectLocationTlsInspectionPolicyGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single TlsInspectionPolicy.
§Arguments
name
- Required. A name of the TlsInspectionPolicy to get. Must be in the formatprojects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
.
Sourcepub fn locations_tls_inspection_policies_list(
&self,
parent: &str,
) -> ProjectLocationTlsInspectionPolicyListCall<'a, C>
pub fn locations_tls_inspection_policies_list( &self, parent: &str, ) -> ProjectLocationTlsInspectionPolicyListCall<'a, C>
Create a builder to help you perform the following task:
Lists TlsInspectionPolicies in a given project and location.
§Arguments
parent
- Required. The project and location from which the TlsInspectionPolicies should be listed, specified in the formatprojects/{project}/locations/{location}
.
Sourcepub fn locations_tls_inspection_policies_patch(
&self,
request: TlsInspectionPolicy,
name: &str,
) -> ProjectLocationTlsInspectionPolicyPatchCall<'a, C>
pub fn locations_tls_inspection_policies_patch( &self, request: TlsInspectionPolicy, name: &str, ) -> ProjectLocationTlsInspectionPolicyPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the parameters of a single TlsInspectionPolicy.
§Arguments
request
- No description provided.name
- Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy} tls_inspection_policy should match the pattern:(^a-z?$).
Sourcepub fn locations_url_lists_create(
&self,
request: UrlList,
parent: &str,
) -> ProjectLocationUrlListCreateCall<'a, C>
pub fn locations_url_lists_create( &self, request: UrlList, parent: &str, ) -> ProjectLocationUrlListCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new UrlList in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent resource of the UrlList. Must be in the formatprojects/*/locations/{location}
.
Sourcepub fn locations_url_lists_delete(
&self,
name: &str,
) -> ProjectLocationUrlListDeleteCall<'a, C>
pub fn locations_url_lists_delete( &self, name: &str, ) -> ProjectLocationUrlListDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single UrlList.
§Arguments
name
- Required. A name of the UrlList to delete. Must be in the formatprojects/*/locations/{location}/urlLists/*
.
Sourcepub fn locations_url_lists_get(
&self,
name: &str,
) -> ProjectLocationUrlListGetCall<'a, C>
pub fn locations_url_lists_get( &self, name: &str, ) -> ProjectLocationUrlListGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single UrlList.
§Arguments
name
- Required. A name of the UrlList to get. Must be in the formatprojects/*/locations/{location}/urlLists/*
.
Sourcepub fn locations_url_lists_list(
&self,
parent: &str,
) -> ProjectLocationUrlListListCall<'a, C>
pub fn locations_url_lists_list( &self, parent: &str, ) -> ProjectLocationUrlListListCall<'a, C>
Create a builder to help you perform the following task:
Lists UrlLists in a given project and location.
§Arguments
parent
- Required. The project and location from which the UrlLists should be listed, specified in the formatprojects/{project}/locations/{location}
.
Sourcepub fn locations_url_lists_patch(
&self,
request: UrlList,
name: &str,
) -> ProjectLocationUrlListPatchCall<'a, C>
pub fn locations_url_lists_patch( &self, request: UrlList, name: &str, ) -> ProjectLocationUrlListPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the parameters of a single UrlList.
§Arguments
request
- No description provided.name
- Required. Name of the resource provided by the user. Name is of the form projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the pattern:(^a-z?$).
Sourcepub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
pub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets information about a location.
§Arguments
name
- Resource name for the location.
Sourcepub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
pub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
Create a builder to help you perform the following task:
Lists information about the supported locations for this service.
§Arguments
name
- The resource that owns the locations collection, if applicable.
Trait Implementations§
impl<'a, C> MethodsBuilder for ProjectMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for ProjectMethods<'a, C>
impl<'a, C> !RefUnwindSafe for ProjectMethods<'a, C>
impl<'a, C> Send for ProjectMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for ProjectMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for ProjectMethods<'a, C>
impl<'a, C> !UnwindSafe for ProjectMethods<'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