Class: Google::Apis::ServicedirectoryV1::ResolveServiceRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicedirectory_v1/classes.rb,
generated/google/apis/servicedirectory_v1/representations.rb,
generated/google/apis/servicedirectory_v1/representations.rb

Overview

The request message for LookupService.ResolveService. Looks up a service by its name, returns the service and its endpoints.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResolveServiceRequest

Returns a new instance of ResolveServiceRequest.



555
556
557
# File 'generated/google/apis/servicedirectory_v1/classes.rb', line 555

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#endpoint_filterString

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. Corresponds to the JSON property endpointFilter

Returns:

  • (String)


546
547
548
# File 'generated/google/apis/servicedirectory_v1/classes.rb', line 546

def endpoint_filter
  @endpoint_filter
end

#max_endpointsFixnum

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. Corresponds to the JSON property maxEndpoints

Returns:

  • (Fixnum)


553
554
555
# File 'generated/google/apis/servicedirectory_v1/classes.rb', line 553

def max_endpoints
  @max_endpoints
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



560
561
562
563
# File 'generated/google/apis/servicedirectory_v1/classes.rb', line 560

def update!(**args)
  @endpoint_filter = args[:endpoint_filter] if args.key?(:endpoint_filter)
  @max_endpoints = args[:max_endpoints] if args.key?(:max_endpoints)
end