Class: Google::Apis::EventarcV1::HttpEndpoint
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1::HttpEndpoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb
Overview
Represents a HTTP endpoint destination.
Instance Attribute Summary collapse
-
#forward_dns_requests ⇒ Boolean
(also: #forward_dns_requests?)
Optional.
-
#uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpEndpoint
constructor
A new instance of HttpEndpoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpEndpoint
Returns a new instance of HttpEndpoint.
840 841 842 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 840 def initialize(**args) update!(**args) end |
Instance Attribute Details
#forward_dns_requests ⇒ Boolean Also known as: forward_dns_requests?
Optional. Forwards DNS requests to the VPC specified by network config to
resolve the HTTP endpoint. Default to false. If set to true, Eventarc will
create a peering zone to the consumer VPC and forward DNS requests. See: https:
//cloud.google.com/dns/docs/zones/zones-overview#peering_zones Enable this if
the URI uses an internal DNS name or a private Cloud DNS zone.
Corresponds to the JSON property forwardDnsRequests
828 829 830 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 828 def forward_dns_requests @forward_dns_requests end |
#uri ⇒ String
Required. The URI of the HTTP enpdoint. The value must be a RFC2396 URI string.
Examples: http://10.10.10.8:80/route, http://svc.us-central1.p.local:8080/
. Only HTTP and HTTPS protocols are supported. The host can be either a static
IP addressable from the VPC specified by the network config, or an internal
DNS hostname of the service resolvable via Cloud DNS.
Corresponds to the JSON property uri
838 839 840 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 838 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
845 846 847 848 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 845 def update!(**args) @forward_dns_requests = args[:forward_dns_requests] if args.key?(:forward_dns_requests) @uri = args[:uri] if args.key?(:uri) end |