class Google::Apis::ComputeV1::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

default_service[RW]

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]

description[RW]

An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property `description` @return [String]

name[RW]

The name to which this PathMatcher is referred by the HostRule. Corresponds to the JSON property `name` @return [String]

path_rules[RW]

The list of path rules. Corresponds to the JSON property `pathRules` @return [Array<Google::Apis::ComputeV1::PathRule>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/compute_v1/classes.rb, line 5861
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_v1/classes.rb, line 5866
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