Class: Google::Apis::ApphubV1::DiscoveredService

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

Overview

DiscoveredService is a network/api interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiscoveredService

Returns a new instance of DiscoveredService.



418
419
420
# File 'lib/google/apis/apphub_v1/classes.rb', line 418

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

Instance Attribute Details

#nameString

Identifier. The resource name of the discovered service. Format: "projects/ host-project-id/locations/location/discoveredServices/uuid"" Corresponds to the JSON property name

Returns:

  • (String)


406
407
408
# File 'lib/google/apis/apphub_v1/classes.rb', line 406

def name
  @name
end

#service_propertiesGoogle::Apis::ApphubV1::ServiceProperties

Properties of an underlying cloud resource that can comprise a Service. Corresponds to the JSON property serviceProperties



411
412
413
# File 'lib/google/apis/apphub_v1/classes.rb', line 411

def service_properties
  @service_properties
end

#service_referenceGoogle::Apis::ApphubV1::ServiceReference

Reference to an underlying networking resource that can comprise a Service. Corresponds to the JSON property serviceReference



416
417
418
# File 'lib/google/apis/apphub_v1/classes.rb', line 416

def service_reference
  @service_reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



423
424
425
426
427
# File 'lib/google/apis/apphub_v1/classes.rb', line 423

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @service_properties = args[:service_properties] if args.key?(:service_properties)
  @service_reference = args[:service_reference] if args.key?(:service_reference)
end