Class: Google::Apis::ComputeAlpha::UrlMapTest
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::UrlMapTest
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Message for the expected URL mappings.
Instance Attribute Summary collapse
-
#backend_service_weight ⇒ Fixnum
The weight to use for the supplied host and path when using advanced routing rules that involve traffic splitting.
-
#description ⇒ String
Description of this test case.
-
#expected_url_redirect ⇒ String
The expected URL that should be redirected to for the host and path being tested.
-
#host ⇒ String
Host portion of the URL.
-
#path ⇒ String
Path portion of the URL.
-
#service ⇒ String
Expected BackendService resource the given URL should be mapped to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UrlMapTest
constructor
A new instance of UrlMapTest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ UrlMapTest
Returns a new instance of UrlMapTest
33371 33372 33373 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 33371 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backend_service_weight ⇒ Fixnum
The weight to use for the supplied host and path when using advanced routing
rules that involve traffic splitting.
Corresponds to the JSON property backendServiceWeight
33343 33344 33345 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 33343 def backend_service_weight @backend_service_weight end |
#description ⇒ String
Description of this test case.
Corresponds to the JSON property description
33348 33349 33350 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 33348 def description @description end |
#expected_url_redirect ⇒ String
The expected URL that should be redirected to for the host and path being
tested.
Corresponds to the JSON property expectedUrlRedirect
33354 33355 33356 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 33354 def expected_url_redirect @expected_url_redirect end |
#host ⇒ String
Host portion of the URL.
Corresponds to the JSON property host
33359 33360 33361 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 33359 def host @host end |
#path ⇒ String
Path portion of the URL.
Corresponds to the JSON property path
33364 33365 33366 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 33364 def path @path end |
#service ⇒ String
Expected BackendService resource the given URL should be mapped to.
Corresponds to the JSON property service
33369 33370 33371 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 33369 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
33376 33377 33378 33379 33380 33381 33382 33383 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 33376 def update!(**args) @backend_service_weight = args[:backend_service_weight] if args.key?(:backend_service_weight) @description = args[:description] if args.key?(:description) @expected_url_redirect = args[:expected_url_redirect] if args.key?(:expected_url_redirect) @host = args[:host] if args.key?(:host) @path = args[:path] if args.key?(:path) @service = args[:service] if args.key?(:service) end |