Struct gapi_grpc::google::api::servicemanagement::v1::service_manager_client::ServiceManagerClient[][src]

pub struct ServiceManagerClient<T> { /* fields omitted */ }

Google Service Management API

Implementations

impl ServiceManagerClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> ServiceManagerClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn list_services(
    &mut self,
    request: impl IntoRequest<ListServicesRequest>
) -> Result<Response<ListServicesResponse>, Status>
[src]

Lists managed services.

Returns all public services. For authenticated users, also returns all services the calling user has “servicemanagement.services.get” permission for.

BETA: If the caller specifies the consumer_id, it returns only the services enabled on the consumer. The consumer_id must have the format of “project:{PROJECT-ID}”.

pub async fn get_service(
    &mut self,
    request: impl IntoRequest<GetServiceRequest>
) -> Result<Response<ManagedService>, Status>
[src]

Gets a managed service. Authentication is required unless the service is public.

pub async fn create_service(
    &mut self,
    request: impl IntoRequest<CreateServiceRequest>
) -> Result<Response<Operation>, Status>
[src]

Creates a new managed service. Please note one producer project can own no more than 20 services.

Operation<response: ManagedService>

pub async fn delete_service(
    &mut self,
    request: impl IntoRequest<DeleteServiceRequest>
) -> Result<Response<Operation>, Status>
[src]

Deletes a managed service. This method will change the service to the Soft-Delete state for 30 days. Within this period, service producers may call [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] to restore the service. After 30 days, the service will be permanently deleted.

Operation<response: google.protobuf.Empty>

pub async fn undelete_service(
    &mut self,
    request: impl IntoRequest<UndeleteServiceRequest>
) -> Result<Response<Operation>, Status>
[src]

Revives a previously deleted managed service. The method restores the service using the configuration at the time the service was deleted. The target service must exist and must have been deleted within the last 30 days.

Operation<response: UndeleteServiceResponse>

pub async fn list_service_configs(
    &mut self,
    request: impl IntoRequest<ListServiceConfigsRequest>
) -> Result<Response<ListServiceConfigsResponse>, Status>
[src]

Lists the history of the service configuration for a managed service, from the newest to the oldest.

pub async fn get_service_config(
    &mut self,
    request: impl IntoRequest<GetServiceConfigRequest>
) -> Result<Response<Service>, Status>
[src]

Gets a service configuration (version) for a managed service.

pub async fn create_service_config(
    &mut self,
    request: impl IntoRequest<CreateServiceConfigRequest>
) -> Result<Response<Service>, Status>
[src]

Creates a new service configuration (version) for a managed service. This method only stores the service configuration. To roll out the service configuration to backend systems please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].

Only the 100 most recent service configurations and ones referenced by existing rollouts are kept for each service. The rest will be deleted eventually.

pub async fn submit_config_source(
    &mut self,
    request: impl IntoRequest<SubmitConfigSourceRequest>
) -> Result<Response<Operation>, Status>
[src]

Creates a new service configuration (version) for a managed service based on user-supplied configuration source files (for example: OpenAPI Specification). This method stores the source configurations as well as the generated service configuration. To rollout the service configuration to other services, please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].

Only the 100 most recent configuration sources and ones referenced by existing service configurtions are kept for each service. The rest will be deleted eventually.

Operation<response: SubmitConfigSourceResponse>

pub async fn list_service_rollouts(
    &mut self,
    request: impl IntoRequest<ListServiceRolloutsRequest>
) -> Result<Response<ListServiceRolloutsResponse>, Status>
[src]

Lists the history of the service configuration rollouts for a managed service, from the newest to the oldest.

pub async fn get_service_rollout(
    &mut self,
    request: impl IntoRequest<GetServiceRolloutRequest>
) -> Result<Response<Rollout>, Status>
[src]

Gets a service configuration [rollout][google.api.servicemanagement.v1.Rollout].

pub async fn create_service_rollout(
    &mut self,
    request: impl IntoRequest<CreateServiceRolloutRequest>
) -> Result<Response<Operation>, Status>
[src]

Creates a new service configuration rollout. Based on rollout, the Google Service Management will roll out the service configurations to different backend services. For example, the logging configuration will be pushed to Google Cloud Logging.

Please note that any previous pending and running Rollouts and associated Operations will be automatically cancelled so that the latest Rollout will not be blocked by previous Rollouts.

Only the 100 most recent (in any state) and the last 10 successful (if not already part of the set of 100 most recent) rollouts are kept for each service. The rest will be deleted eventually.

Operation<response: Rollout>

pub async fn generate_config_report(
    &mut self,
    request: impl IntoRequest<GenerateConfigReportRequest>
) -> Result<Response<GenerateConfigReportResponse>, Status>
[src]

Generates and returns a report (errors, warnings and changes from existing configurations) associated with GenerateConfigReportRequest.new_value

If GenerateConfigReportRequest.old_value is specified, GenerateConfigReportRequest will contain a single ChangeReport based on the comparison between GenerateConfigReportRequest.new_value and GenerateConfigReportRequest.old_value. If GenerateConfigReportRequest.old_value is not specified, this method will compare GenerateConfigReportRequest.new_value with the last pushed service configuration.

pub async fn enable_service(
    &mut self,
    request: impl IntoRequest<EnableServiceRequest>
) -> Result<Response<Operation>, Status>
[src]

Enables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can be used for the project. See Cloud Auth Guide for more information.

Operation<response: EnableServiceResponse>

pub async fn disable_service(
    &mut self,
    request: impl IntoRequest<DisableServiceRequest>
) -> Result<Response<Operation>, Status>
[src]

Disables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can no longer be be used for the project. It prevents accidental usage that may cause unexpected billing charges or security leaks.

Operation<response: DisableServiceResponse>

Trait Implementations

impl<T: Clone> Clone for ServiceManagerClient<T>[src]

impl<T> Debug for ServiceManagerClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for ServiceManagerClient<T>

impl<T> Send for ServiceManagerClient<T> where
    T: Send

impl<T> Sync for ServiceManagerClient<T> where
    T: Sync

impl<T> Unpin for ServiceManagerClient<T> where
    T: Unpin

impl<T> !UnwindSafe for ServiceManagerClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]