Class: Google::Apis::ApphubV1alpha::ServiceReference

Inherits:
Object
  • Object
show all
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

Reference to an underlying networking resource that can comprise a Service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceReference

Returns a new instance of ServiceReference.



1800
1801
1802
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1800

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

Instance Attribute Details

#pathString

Output only. Additional path under the resource URI (demultiplexing one resource URI into multiple entries). Smallest unit a policy can be attached to. Examples: URL Map path entry. Corresponds to the JSON property path

Returns:

  • (String)


1792
1793
1794
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1792

def path
  @path
end

#uriString

Output only. The underlying resource URI. For example, URI of Forwarding Rule, URL Map, and Backend Service. Corresponds to the JSON property uri

Returns:

  • (String)


1798
1799
1800
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1798

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1805
1806
1807
1808
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1805

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