class Google::Apis::ComputeBeta::PathMatcher
A matcher for the path portion of the URL. The BackendService from the longest- matched rule will serve the URL. If no rule was matched, the default service will be used.
Attributes
The full or partial URL to the BackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion. For example, the following are all valid URLs to a BackendService resource:
backendServices/backendService
-
compute/v1/projects/project/global/backendServices/backendService
-
global/backendServices/backendService
Corresponds to the JSON property `defaultService` @return [String]
An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property `description` @return [String]
The name to which this PathMatcher is referred by the HostRule. Corresponds to the JSON property `name` @return [String]
The list of path rules. Corresponds to the JSON property `pathRules` @return [Array<Google::Apis::ComputeBeta::PathRule>]
Public Class Methods
# File generated/google/apis/compute_beta/classes.rb, line 6115 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/compute_beta/classes.rb, line 6120 def update!(**args) @default_service = args[:default_service] if args.key?(:default_service) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @path_rules = args[:path_rules] if args.key?(:path_rules) end