class Google::Apis::ComputeBeta::PathRule
A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.
Attributes
paths[RW]
The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. Corresponds to the JSON property `paths` @return [Array<String>]
service[RW]
The URL of the BackendService resource if this rule is matched. Corresponds to the JSON property `service` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/compute_beta/classes.rb, line 6146 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/compute_beta/classes.rb, line 6151 def update!(**args) @paths = args[:paths] if args.key?(:paths) @service = args[:service] if args.key?(:service) end