Class: Google::Apis::ComputeAlpha::UrlMapTest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UrlMapTest

Returns a new instance of UrlMapTest



36415
36416
36417
# File 'generated/google/apis/compute_alpha/classes.rb', line 36415

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

Instance Attribute Details

#backend_service_weightFixnum

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

Returns:

  • (Fixnum)


36387
36388
36389
# File 'generated/google/apis/compute_alpha/classes.rb', line 36387

def backend_service_weight
  @backend_service_weight
end

#descriptionString

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

Returns:

  • (String)


36392
36393
36394
# File 'generated/google/apis/compute_alpha/classes.rb', line 36392

def description
  @description
end

#expected_url_redirectString

The expected URL that should be redirected to for the host and path being tested. Corresponds to the JSON property expectedUrlRedirect

Returns:

  • (String)


36398
36399
36400
# File 'generated/google/apis/compute_alpha/classes.rb', line 36398

def expected_url_redirect
  @expected_url_redirect
end

#hostString

Host portion of the URL. Corresponds to the JSON property host

Returns:

  • (String)


36403
36404
36405
# File 'generated/google/apis/compute_alpha/classes.rb', line 36403

def host
  @host
end

#pathString

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

Returns:

  • (String)


36408
36409
36410
# File 'generated/google/apis/compute_alpha/classes.rb', line 36408

def path
  @path
end

#serviceString

Expected BackendService resource the given URL should be mapped to. Corresponds to the JSON property service

Returns:

  • (String)


36413
36414
36415
# File 'generated/google/apis/compute_alpha/classes.rb', line 36413

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36420
36421
36422
36423
36424
36425
36426
36427
# File 'generated/google/apis/compute_alpha/classes.rb', line 36420

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