Class: Google::Apis::ServicedirectoryV1::ResolveServiceRequest
- Inherits:
-
Object
- Object
- Google::Apis::ServicedirectoryV1::ResolveServiceRequest
- 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
-
#endpoint_filter ⇒ String
Optional.
-
#max_endpoints ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResolveServiceRequest
constructor
A new instance of ResolveServiceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_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. Corresponds to the JSON property
endpointFilter
546 547 548 |
# File 'generated/google/apis/servicedirectory_v1/classes.rb', line 546 def endpoint_filter @endpoint_filter end |
#max_endpoints ⇒ Fixnum
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
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 |