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 Networkconnectivity hub.

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_networkconnectivity1 as networkconnectivity1;

use networkconnectivity1::{Networkconnectivity, 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 = Networkconnectivity::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_get(...)`, `locations_global_hubs_accept_spoke(...)`, `locations_global_hubs_create(...)`, `locations_global_hubs_delete(...)`, `locations_global_hubs_get(...)`, `locations_global_hubs_get_iam_policy(...)`, `locations_global_hubs_groups_get(...)`, `locations_global_hubs_groups_get_iam_policy(...)`, `locations_global_hubs_groups_list(...)`, `locations_global_hubs_groups_patch(...)`, `locations_global_hubs_groups_set_iam_policy(...)`, `locations_global_hubs_groups_test_iam_permissions(...)`, `locations_global_hubs_list(...)`, `locations_global_hubs_list_spokes(...)`, `locations_global_hubs_patch(...)`, `locations_global_hubs_reject_spoke(...)`, `locations_global_hubs_route_tables_get(...)`, `locations_global_hubs_route_tables_list(...)`, `locations_global_hubs_route_tables_routes_get(...)`, `locations_global_hubs_route_tables_routes_list(...)`, `locations_global_hubs_set_iam_policy(...)`, `locations_global_hubs_test_iam_permissions(...)`, `locations_global_policy_based_routes_create(...)`, `locations_global_policy_based_routes_delete(...)`, `locations_global_policy_based_routes_get(...)`, `locations_global_policy_based_routes_get_iam_policy(...)`, `locations_global_policy_based_routes_list(...)`, `locations_global_policy_based_routes_set_iam_policy(...)`, `locations_global_policy_based_routes_test_iam_permissions(...)`, `locations_internal_ranges_create(...)`, `locations_internal_ranges_delete(...)`, `locations_internal_ranges_get(...)`, `locations_internal_ranges_list(...)`, `locations_internal_ranges_patch(...)`, `locations_list(...)`, `locations_operations_cancel(...)`, `locations_operations_delete(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `locations_regional_endpoints_create(...)`, `locations_regional_endpoints_delete(...)`, `locations_regional_endpoints_get(...)`, `locations_regional_endpoints_list(...)`, `locations_service_classes_delete(...)`, `locations_service_classes_get(...)`, `locations_service_classes_get_iam_policy(...)`, `locations_service_classes_list(...)`, `locations_service_classes_patch(...)`, `locations_service_classes_set_iam_policy(...)`, `locations_service_classes_test_iam_permissions(...)`, `locations_service_connection_maps_create(...)`, `locations_service_connection_maps_delete(...)`, `locations_service_connection_maps_get(...)`, `locations_service_connection_maps_get_iam_policy(...)`, `locations_service_connection_maps_list(...)`, `locations_service_connection_maps_patch(...)`, `locations_service_connection_maps_set_iam_policy(...)`, `locations_service_connection_maps_test_iam_permissions(...)`, `locations_service_connection_policies_create(...)`, `locations_service_connection_policies_delete(...)`, `locations_service_connection_policies_get(...)`, `locations_service_connection_policies_get_iam_policy(...)`, `locations_service_connection_policies_list(...)`, `locations_service_connection_policies_patch(...)`, `locations_service_connection_policies_set_iam_policy(...)`, `locations_service_connection_policies_test_iam_permissions(...)`, `locations_service_connection_tokens_create(...)`, `locations_service_connection_tokens_delete(...)`, `locations_service_connection_tokens_get(...)`, `locations_service_connection_tokens_list(...)`, `locations_spokes_create(...)`, `locations_spokes_delete(...)`, `locations_spokes_get(...)`, `locations_spokes_get_iam_policy(...)`, `locations_spokes_list(...)`, `locations_spokes_patch(...)`, `locations_spokes_set_iam_policy(...)` and `locations_spokes_test_iam_permissions(...)`
// to build up your call.
let rb = hub.projects();

Implementations§

Source§

impl<'a, C> ProjectMethods<'a, C>

Source

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

Create a builder to help you perform the following task:

Gets details about a Network Connectivity Center group.

§Arguments
  • name - Required. The name of the route table resource.
Source

pub fn locations_global_hubs_groups_get_iam_policy( &self, resource: &str, ) -> ProjectLocationGlobalHubGroupGetIamPolicyCall<'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_global_hubs_groups_list( &self, parent: &str, ) -> ProjectLocationGlobalHubGroupListCall<'a, C>

Create a builder to help you perform the following task:

Lists groups in a given hub.

§Arguments
  • parent - Required. The parent resource’s name.
Source

pub fn locations_global_hubs_groups_patch( &self, request: Group, name: &str, ) -> ProjectLocationGlobalHubGroupPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the parameters of a Network Connectivity Center group.

§Arguments
  • request - No description provided.
  • name - Immutable. The name of the group. Group names must be unique. They use the following form: projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}
Source

pub fn locations_global_hubs_groups_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationGlobalHubGroupSetIamPolicyCall<'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_global_hubs_groups_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationGlobalHubGroupTestIamPermissionCall<'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_global_hubs_route_tables_routes_get( &self, name: &str, ) -> ProjectLocationGlobalHubRouteTableRouteGetCall<'a, C>

Create a builder to help you perform the following task:

Gets details about the specified route.

§Arguments
  • name - Required. The name of the route resource.
Source

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

Create a builder to help you perform the following task:

Lists routes in a given route table.

§Arguments
  • parent - Required. The parent resource’s name.
Source

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

Create a builder to help you perform the following task:

Gets details about a Network Connectivity Center route table.

§Arguments
  • name - Required. The name of the route table resource.
Source

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

Create a builder to help you perform the following task:

Lists route tables in a given hub.

§Arguments
  • parent - Required. The parent resource’s name.
Source

pub fn locations_global_hubs_accept_spoke( &self, request: AcceptHubSpokeRequest, name: &str, ) -> ProjectLocationGlobalHubAcceptSpokeCall<'a, C>

Create a builder to help you perform the following task:

Accepts a proposal to attach a Network Connectivity Center spoke to a hub.

§Arguments
  • request - No description provided.
  • name - Required. The name of the hub into which to accept the spoke.
Source

pub fn locations_global_hubs_create( &self, request: Hub, parent: &str, ) -> ProjectLocationGlobalHubCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new Network Connectivity Center hub in the specified project.

§Arguments
  • request - No description provided.
  • parent - Required. The parent resource.
Source

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

Create a builder to help you perform the following task:

Deletes a Network Connectivity Center hub.

§Arguments
  • name - Required. The name of the hub to delete.
Source

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

Create a builder to help you perform the following task:

Gets details about a Network Connectivity Center hub.

§Arguments
  • name - Required. The name of the hub resource to get.
Source

pub fn locations_global_hubs_get_iam_policy( &self, resource: &str, ) -> ProjectLocationGlobalHubGetIamPolicyCall<'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_global_hubs_list( &self, parent: &str, ) -> ProjectLocationGlobalHubListCall<'a, C>

Create a builder to help you perform the following task:

Lists the Network Connectivity Center hubs associated with a given project.

§Arguments
  • parent - Required. The parent resource’s name.
Source

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

Create a builder to help you perform the following task:

Lists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted.

§Arguments
  • name - Required. The name of the hub.
Source

pub fn locations_global_hubs_patch( &self, request: Hub, name: &str, ) -> ProjectLocationGlobalHubPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the description and/or labels of a Network Connectivity Center hub.

§Arguments
  • request - No description provided.
  • name - Immutable. The name of the hub. Hub names must be unique. They use the following form: projects/{project_number}/locations/global/hubs/{hub_id}
Source

pub fn locations_global_hubs_reject_spoke( &self, request: RejectHubSpokeRequest, name: &str, ) -> ProjectLocationGlobalHubRejectSpokeCall<'a, C>

Create a builder to help you perform the following task:

Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the ACTIVE state, it transitions to the INACTIVE state and is no longer able to connect to other spokes that are attached to the hub.

§Arguments
  • request - No description provided.
  • name - Required. The name of the hub from which to reject the spoke.
Source

pub fn locations_global_hubs_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationGlobalHubSetIamPolicyCall<'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_global_hubs_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationGlobalHubTestIamPermissionCall<'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_global_policy_based_routes_create( &self, request: PolicyBasedRoute, parent: &str, ) -> ProjectLocationGlobalPolicyBasedRouteCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new policy-based route in a given project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent resource’s name of the PolicyBasedRoute.
Source

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

Create a builder to help you perform the following task:

Deletes a single policy-based route.

§Arguments
  • name - Required. Name of the policy-based route resource to delete.
Source

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

Create a builder to help you perform the following task:

Gets details of a single policy-based route.

§Arguments
  • name - Required. Name of the PolicyBasedRoute resource to get.
Source

pub fn locations_global_policy_based_routes_get_iam_policy( &self, resource: &str, ) -> ProjectLocationGlobalPolicyBasedRouteGetIamPolicyCall<'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_global_policy_based_routes_list( &self, parent: &str, ) -> ProjectLocationGlobalPolicyBasedRouteListCall<'a, C>

Create a builder to help you perform the following task:

Lists policy-based routes in a given project and location.

§Arguments
  • parent - Required. The parent resource’s name.
Source

pub fn locations_global_policy_based_routes_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationGlobalPolicyBasedRouteSetIamPolicyCall<'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_global_policy_based_routes_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationGlobalPolicyBasedRouteTestIamPermissionCall<'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_internal_ranges_create( &self, request: InternalRange, parent: &str, ) -> ProjectLocationInternalRangeCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new internal range in a given project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent resource’s name of the internal range.
Source

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

Create a builder to help you perform the following task:

Deletes a single internal range.

§Arguments
  • name - Required. The name of the internal range to delete.
Source

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

Create a builder to help you perform the following task:

Gets details of a single internal range.

§Arguments
  • name - Required. Name of the InternalRange to get.
Source

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

Create a builder to help you perform the following task:

Lists internal ranges in a given project and location.

§Arguments
  • parent - Required. The parent resource’s name.
Source

pub fn locations_internal_ranges_patch( &self, request: InternalRange, name: &str, ) -> ProjectLocationInternalRangePatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the parameters of a single internal range.

§Arguments
  • request - No description provided.
  • name - Immutable. The name of an internal range. Format: projects/{project}/locations/{location}/internalRanges/{internal_range} See: https://google.aip.dev/122#fields-representing-resource-names
Source

pub fn locations_operations_cancel( &self, request: GoogleLongrunningCancelOperationRequest, 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_regional_endpoints_create( &self, request: RegionalEndpoint, parent: &str, ) -> ProjectLocationRegionalEndpointCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new RegionalEndpoint in a given project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent resource’s name of the RegionalEndpoint.
Source

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

Create a builder to help you perform the following task:

Deletes a single RegionalEndpoint.

§Arguments
  • name - Required. The name of the RegionalEndpoint to delete.
Source

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

Create a builder to help you perform the following task:

Gets details of a single RegionalEndpoint.

§Arguments
  • name - Required. Name of the RegionalEndpoint resource to get. Format: projects/{project}/locations/{location}/regionalEndpoints/{regional_endpoint}
Source

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

Create a builder to help you perform the following task:

Lists RegionalEndpoints in a given project and location.

§Arguments
  • parent - Required. The parent resource’s name of the RegionalEndpoint.
Source

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

Create a builder to help you perform the following task:

Deletes a single ServiceClass.

§Arguments
  • name - Required. The name of the ServiceClass to delete.
Source

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

Create a builder to help you perform the following task:

Gets details of a single ServiceClass.

§Arguments
  • name - Required. Name of the ServiceClass to get.
Source

pub fn locations_service_classes_get_iam_policy( &self, resource: &str, ) -> ProjectLocationServiceClassGetIamPolicyCall<'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_service_classes_list( &self, parent: &str, ) -> ProjectLocationServiceClassListCall<'a, C>

Create a builder to help you perform the following task:

Lists ServiceClasses in a given project and location.

§Arguments
  • parent - Required. The parent resource’s name. ex. projects/123/locations/us-east1
Source

pub fn locations_service_classes_patch( &self, request: ServiceClass, name: &str, ) -> ProjectLocationServiceClassPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the parameters of a single ServiceClass.

§Arguments
  • request - No description provided.
  • name - Immutable. The name of a ServiceClass resource. Format: projects/{project}/locations/{location}/serviceClasses/{service_class} See: https://google.aip.dev/122#fields-representing-resource-names
Source

pub fn locations_service_classes_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationServiceClassSetIamPolicyCall<'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_service_classes_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationServiceClassTestIamPermissionCall<'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_service_connection_maps_create( &self, request: ServiceConnectionMap, parent: &str, ) -> ProjectLocationServiceConnectionMapCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new ServiceConnectionMap in a given project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent resource’s name of the ServiceConnectionMap. ex. projects/123/locations/us-east1
Source

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

Create a builder to help you perform the following task:

Deletes a single ServiceConnectionMap.

§Arguments
  • name - Required. The name of the ServiceConnectionMap to delete.
Source

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

Create a builder to help you perform the following task:

Gets details of a single ServiceConnectionMap.

§Arguments
  • name - Required. Name of the ServiceConnectionMap to get.
Source

pub fn locations_service_connection_maps_get_iam_policy( &self, resource: &str, ) -> ProjectLocationServiceConnectionMapGetIamPolicyCall<'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_service_connection_maps_list( &self, parent: &str, ) -> ProjectLocationServiceConnectionMapListCall<'a, C>

Create a builder to help you perform the following task:

Lists ServiceConnectionMaps in a given project and location.

§Arguments
  • parent - Required. The parent resource’s name. ex. projects/123/locations/us-east1
Source

pub fn locations_service_connection_maps_patch( &self, request: ServiceConnectionMap, name: &str, ) -> ProjectLocationServiceConnectionMapPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the parameters of a single ServiceConnectionMap.

§Arguments
  • request - No description provided.
  • name - Immutable. The name of a ServiceConnectionMap. Format: projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} See: https://google.aip.dev/122#fields-representing-resource-names
Source

pub fn locations_service_connection_maps_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationServiceConnectionMapSetIamPolicyCall<'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_service_connection_maps_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationServiceConnectionMapTestIamPermissionCall<'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_service_connection_policies_create( &self, request: ServiceConnectionPolicy, parent: &str, ) -> ProjectLocationServiceConnectionPolicyCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new ServiceConnectionPolicy in a given project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent resource’s name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1
Source

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

Create a builder to help you perform the following task:

Deletes a single ServiceConnectionPolicy.

§Arguments
  • name - Required. The name of the ServiceConnectionPolicy to delete.
Source

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

Create a builder to help you perform the following task:

Gets details of a single ServiceConnectionPolicy.

§Arguments
  • name - Required. Name of the ServiceConnectionPolicy to get.
Source

pub fn locations_service_connection_policies_get_iam_policy( &self, resource: &str, ) -> ProjectLocationServiceConnectionPolicyGetIamPolicyCall<'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_service_connection_policies_list( &self, parent: &str, ) -> ProjectLocationServiceConnectionPolicyListCall<'a, C>

Create a builder to help you perform the following task:

Lists ServiceConnectionPolicies in a given project and location.

§Arguments
  • parent - Required. The parent resource’s name. ex. projects/123/locations/us-east1
Source

pub fn locations_service_connection_policies_patch( &self, request: ServiceConnectionPolicy, name: &str, ) -> ProjectLocationServiceConnectionPolicyPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the parameters of a single ServiceConnectionPolicy.

§Arguments
  • request - No description provided.
  • name - Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names
Source

pub fn locations_service_connection_policies_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationServiceConnectionPolicySetIamPolicyCall<'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_service_connection_policies_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationServiceConnectionPolicyTestIamPermissionCall<'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_service_connection_tokens_create( &self, request: ServiceConnectionToken, parent: &str, ) -> ProjectLocationServiceConnectionTokenCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new ServiceConnectionToken in a given project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent resource’s name of the ServiceConnectionToken. ex. projects/123/locations/us-east1
Source

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

Create a builder to help you perform the following task:

Deletes a single ServiceConnectionToken.

§Arguments
  • name - Required. The name of the ServiceConnectionToken to delete.
Source

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

Create a builder to help you perform the following task:

Gets details of a single ServiceConnectionToken.

§Arguments
  • name - Required. Name of the ServiceConnectionToken to get.
Source

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

Create a builder to help you perform the following task:

Lists ServiceConnectionTokens in a given project and location.

§Arguments
  • parent - Required. The parent resource’s name. ex. projects/123/locations/us-east1
Source

pub fn locations_spokes_create( &self, request: Spoke, parent: &str, ) -> ProjectLocationSpokeCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a Network Connectivity Center spoke.

§Arguments
  • request - No description provided.
  • parent - Required. The parent resource.
Source

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

Create a builder to help you perform the following task:

Deletes a Network Connectivity Center spoke.

§Arguments
  • name - Required. The name of the spoke to delete.
Source

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

Create a builder to help you perform the following task:

Gets details about a Network Connectivity Center spoke.

§Arguments
  • name - Required. The name of the spoke resource.
Source

pub fn locations_spokes_get_iam_policy( &self, resource: &str, ) -> ProjectLocationSpokeGetIamPolicyCall<'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_spokes_list( &self, parent: &str, ) -> ProjectLocationSpokeListCall<'a, C>

Create a builder to help you perform the following task:

Lists the Network Connectivity Center spokes in a specified project and location.

§Arguments
  • parent - Required. The parent resource.
Source

pub fn locations_spokes_patch( &self, request: Spoke, name: &str, ) -> ProjectLocationSpokePatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the parameters of a Network Connectivity Center spoke.

§Arguments
  • request - No description provided.
  • name - Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id}
Source

pub fn locations_spokes_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationSpokeSetIamPolicyCall<'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_spokes_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationSpokeTestIamPermissionCall<'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_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,