Class: Google::Apis::ApphubV1alpha::DiscoveredService
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1alpha::DiscoveredService
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apphub_v1alpha/classes.rb,
lib/google/apis/apphub_v1alpha/representations.rb,
lib/google/apis/apphub_v1alpha/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
-
#name ⇒ String
Identifier.
-
#service_properties ⇒ Google::Apis::ApphubV1alpha::ServiceProperties
Properties of an underlying cloud resource that can comprise a Service.
-
#service_reference ⇒ Google::Apis::ApphubV1alpha::ServiceReference
Reference to an underlying networking resource that can comprise a Service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiscoveredService
constructor
A new instance of DiscoveredService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiscoveredService
Returns a new instance of DiscoveredService.
459 460 461 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 459 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Identifier. The resource name of the discovered service. Format: "projects/
host-project-id
/locations/location
/discoveredServices/uuid
""
Corresponds to the JSON property name
447 448 449 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 447 def name @name end |
#service_properties ⇒ Google::Apis::ApphubV1alpha::ServiceProperties
Properties of an underlying cloud resource that can comprise a Service.
Corresponds to the JSON property serviceProperties
452 453 454 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 452 def service_properties @service_properties end |
#service_reference ⇒ Google::Apis::ApphubV1alpha::ServiceReference
Reference to an underlying networking resource that can comprise a Service.
Corresponds to the JSON property serviceReference
457 458 459 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 457 def service_reference @service_reference end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
464 465 466 467 468 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 464 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 |