[][src]Struct gcp_client::google::cloud::servicedirectory::v1beta1::ResolveServiceRequest

pub struct ResolveServiceRequest {
    pub name: String,
    pub max_endpoints: i32,
    pub endpoint_filter: String,
}

The request message for [LookupService.ResolveService][google.cloud.servicedirectory.v1beta1.LookupService.ResolveService]. Looks up a service by its name, returns the service and its endpoints.

Fields

name: String

Required. The name of the service to resolve.

max_endpoints: i32

Optional. The maximum number of endpoints to return. Defaults to 25. Maximum is 100. If a value less than one is specified, the Default is used. If a value greater than the Maximum is specified, the Maximum is used.

endpoint_filter: String

Optional. The filter applied to the endpoints of the resolved service.

General filter string syntax: () can be "name" or "metadata." for map field. can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS and is roughly the same as "=". must be the same data type as the field. can be "AND, OR, NOT".

Examples of valid filters:

  • "metadata.owner" returns Endpoints that have a label with the key "owner", this is the same as "metadata:owner"
  • "metadata.protocol=gRPC" returns Endpoints that have key/value "protocol=gRPC"
  • "metadata.owner!=sd AND metadata.foo=bar" returns Endpoints that have "owner" field in metadata with a value that is not "sd" AND have the key/value foo=bar.

Trait Implementations

impl Clone for ResolveServiceRequest[src]

impl Debug for ResolveServiceRequest[src]

impl Default for ResolveServiceRequest[src]

impl Message for ResolveServiceRequest[src]

impl PartialEq<ResolveServiceRequest> for ResolveServiceRequest[src]

impl StructuralPartialEq for ResolveServiceRequest[src]

Auto Trait Implementations

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

impl<T> WithSubscriber for T[src]