Class: Google::Apis::ComputeBeta::ServiceAttachmentConsumerForwardingRule

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

Overview

[Output Only] A consumer forwarding rule connected to this service attachment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceAttachmentConsumerForwardingRule

Returns a new instance of ServiceAttachmentConsumerForwardingRule.



31817
31818
31819
# File 'lib/google/apis/compute_beta/classes.rb', line 31817

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

Instance Attribute Details

#forwarding_ruleString

The url of a consumer forwarding rule. Corresponds to the JSON property forwardingRule

Returns:

  • (String)


31810
31811
31812
# File 'lib/google/apis/compute_beta/classes.rb', line 31810

def forwarding_rule
  @forwarding_rule
end

#statusString

The status of the forwarding rule. Corresponds to the JSON property status

Returns:

  • (String)


31815
31816
31817
# File 'lib/google/apis/compute_beta/classes.rb', line 31815

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31822
31823
31824
31825
# File 'lib/google/apis/compute_beta/classes.rb', line 31822

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