Class: Google::Apis::ComputeBeta::UrlMapTest

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

Overview

Message for the expected URL mappings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UrlMapTest

Returns a new instance of UrlMapTest.



35896
35897
35898
# File 'generated/google/apis/compute_beta/classes.rb', line 35896

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

Instance Attribute Details

#descriptionString

Description of this test case. Corresponds to the JSON property description

Returns:

  • (String)


35876
35877
35878
# File 'generated/google/apis/compute_beta/classes.rb', line 35876

def description
  @description
end

#hostString

Host portion of the URL. If headers contains a host header, then host must also match the header value. Corresponds to the JSON property host

Returns:

  • (String)


35882
35883
35884
# File 'generated/google/apis/compute_beta/classes.rb', line 35882

def host
  @host
end

#pathString

Path portion of the URL. Corresponds to the JSON property path

Returns:

  • (String)


35887
35888
35889
# File 'generated/google/apis/compute_beta/classes.rb', line 35887

def path
  @path
end

#serviceString

Expected BackendService or BackendBucket resource the given URL should be mapped to. service cannot be set if expectedRedirectResponseCode is set. Corresponds to the JSON property service

Returns:

  • (String)


35894
35895
35896
# File 'generated/google/apis/compute_beta/classes.rb', line 35894

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35901
35902
35903
35904
35905
35906
# File 'generated/google/apis/compute_beta/classes.rb', line 35901

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @host = args[:host] if args.key?(:host)
  @path = args[:path] if args.key?(:path)
  @service = args[:service] if args.key?(:service)
end