Struct ProjectMethods

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

Source

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

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

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

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

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

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

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

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

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

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

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

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

pub fn locations_authorization_policies_create( &self, request: AuthorizationPolicy, parent: &str, ) -> ProjectLocationAuthorizationPolicyCreateCall<'a, C>

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

pub fn locations_authorization_policies_delete( &self, name: &str, ) -> ProjectLocationAuthorizationPolicyDeleteCall<'a, C>

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

pub fn locations_authorization_policies_get( &self, name: &str, ) -> ProjectLocationAuthorizationPolicyGetCall<'a, C>

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

pub fn locations_authorization_policies_get_iam_policy( &self, resource: &str, ) -> ProjectLocationAuthorizationPolicyGetIamPolicyCall<'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.
Source

pub fn locations_authorization_policies_list( &self, parent: &str, ) -> ProjectLocationAuthorizationPolicyListCall<'a, C>

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

pub fn locations_authorization_policies_patch( &self, request: AuthorizationPolicy, name: &str, ) -> ProjectLocationAuthorizationPolicyPatchCall<'a, C>

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

pub fn locations_authorization_policies_set_iam_policy( &self, request: GoogleIamV1SetIamPolicyRequest, resource: &str, ) -> ProjectLocationAuthorizationPolicySetIamPolicyCall<'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.
Source

pub fn locations_authorization_policies_test_iam_permissions( &self, request: GoogleIamV1TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationAuthorizationPolicyTestIamPermissionCall<'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.
Source

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

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

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

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

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

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

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

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

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

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
Source

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
Source

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
Source

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
Source

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

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

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

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

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?$).
Source

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

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

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

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

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?$).
Source

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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?$).
Source

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

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

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

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

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?$).
Source

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

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§

Source§

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