pub struct ProjectMethods<'a, S>where
    S: 'a,
{ /* private fields */ }
Expand description

A builder providing access to all methods supported on project resources. It is not used directly, but through the ServiceDirectory hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_servicedirectory1_beta1 as servicedirectory1_beta1;
 
use std::default::Default;
use servicedirectory1_beta1::{ServiceDirectory, oauth2, hyper, hyper_rustls, chrono, FieldMask};
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
        secret,
        oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = ServiceDirectory::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_get(...)`, `locations_list(...)`, `locations_namespaces_create(...)`, `locations_namespaces_delete(...)`, `locations_namespaces_get(...)`, `locations_namespaces_get_iam_policy(...)`, `locations_namespaces_list(...)`, `locations_namespaces_patch(...)`, `locations_namespaces_service_workloads_get_iam_policy(...)`, `locations_namespaces_service_workloads_set_iam_policy(...)`, `locations_namespaces_service_workloads_test_iam_permissions(...)`, `locations_namespaces_services_create(...)`, `locations_namespaces_services_delete(...)`, `locations_namespaces_services_endpoints_create(...)`, `locations_namespaces_services_endpoints_delete(...)`, `locations_namespaces_services_endpoints_get(...)`, `locations_namespaces_services_endpoints_list(...)`, `locations_namespaces_services_endpoints_patch(...)`, `locations_namespaces_services_get(...)`, `locations_namespaces_services_get_iam_policy(...)`, `locations_namespaces_services_list(...)`, `locations_namespaces_services_patch(...)`, `locations_namespaces_services_resolve(...)`, `locations_namespaces_services_set_iam_policy(...)`, `locations_namespaces_services_test_iam_permissions(...)`, `locations_namespaces_set_iam_policy(...)`, `locations_namespaces_test_iam_permissions(...)`, `locations_registration_policies_get_iam_policy(...)`, `locations_registration_policies_set_iam_policy(...)` and `locations_registration_policies_test_iam_permissions(...)`
// to build up your call.
let rb = hub.projects();

Implementations§

Create a builder to help you perform the following task:

Gets the IAM Policy for a resource

Arguments
  • request - No description provided.
  • 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:

Sets the IAM Policy for a resource

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:

Tests IAM permissions for a resource (namespace, service or service workload only).

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 an endpoint, and returns the new endpoint.

Arguments
  • request - No description provided.
  • parent - Required. The resource name of the service that this endpoint provides.

Create a builder to help you perform the following task:

Deletes an endpoint.

Arguments
  • name - Required. The name of the endpoint to delete.

Create a builder to help you perform the following task:

Gets an endpoint.

Arguments
  • name - Required. The name of the endpoint to get.

Create a builder to help you perform the following task:

Lists all endpoints.

Arguments
  • parent - Required. The resource name of the service whose endpoints you’d like to list.

Create a builder to help you perform the following task:

Updates an endpoint.

Arguments
  • request - No description provided.
  • name - Immutable. The resource name for the endpoint in the format projects/*/locations/*/namespaces/*/services/*/endpoints/*.

Create a builder to help you perform the following task:

Creates a service, and returns the new service.

Arguments
  • request - No description provided.
  • parent - Required. The resource name of the namespace this service will belong to.

Create a builder to help you perform the following task:

Deletes a service. This also deletes all endpoints associated with the service.

Arguments
  • name - Required. The name of the service to delete.

Create a builder to help you perform the following task:

Gets a service.

Arguments
  • name - Required. The name of the service to get.

Create a builder to help you perform the following task:

Gets the IAM Policy for a resource

Arguments
  • request - No description provided.
  • 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 all services belonging to a namespace.

Arguments
  • parent - Required. The resource name of the namespace whose services you’d like to list.

Create a builder to help you perform the following task:

Updates a service.

Arguments
  • request - No description provided.
  • name - Immutable. The resource name for the service in the format projects/*/locations/*/namespaces/*/services/*.

Create a builder to help you perform the following task:

Returns a service and its associated endpoints. Resolving a service is not considered an active developer method.

Arguments
  • request - No description provided.
  • name - Required. The name of the service to resolve.

Create a builder to help you perform the following task:

Sets the IAM Policy for a resource

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:

Tests IAM permissions for a resource (namespace, service or service workload only).

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 namespace, and returns the new namespace.

Arguments
  • request - No description provided.
  • parent - Required. The resource name of the project and location the namespace will be created in.

Create a builder to help you perform the following task:

Deletes a namespace. This also deletes all services and endpoints in the namespace.

Arguments
  • name - Required. The name of the namespace to delete.

Create a builder to help you perform the following task:

Gets a namespace.

Arguments
  • name - Required. The name of the namespace to retrieve.

Create a builder to help you perform the following task:

Gets the IAM Policy for a resource

Arguments
  • request - No description provided.
  • 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 all namespaces.

Arguments
  • parent - Required. The resource name of the project and location whose namespaces you’d like to list.

Create a builder to help you perform the following task:

Updates a namespace.

Arguments
  • request - No description provided.
  • name - Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

Create a builder to help you perform the following task:

Sets the IAM Policy for a resource

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:

Tests IAM permissions for a resource (namespace, service or service workload only).

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:

Gets the IAM Policy for a resource

Arguments
  • request - No description provided.
  • 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:

Sets the IAM Policy for a resource

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:

Tests IAM permissions for a resource (namespace, service or service workload only).

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:

Gets information about a location.

Arguments
  • name - Resource name for the location.

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§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more