Class: Google::Apis::CloudtasksV2beta2::UriOverride

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

Overview

Uri Override. When specified, all the HTTP tasks inside the queue will be partially or fully overridden depending on the configured values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UriOverride

Returns a new instance of UriOverride.



2035
2036
2037
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2035

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

Instance Attribute Details

#hostString

Host override. When specified, the host part of url will be overridden. For example, if the original Uri is "https://www.google.com", and host is set to " example.net", the overridden Uri will be "https://example.net". Corresponds to the JSON property host

Returns:

  • (String)


2004
2005
2006
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2004

def host
  @host
end

#pathString

Uri path. Will be used as the path for the current Uri (replaces any existing path of the task url). Corresponds to the JSON property path

Returns:

  • (String)


2010
2011
2012
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2010

def path
  @path
end

#portFixnum

Port override. When specified, the port part of Uri will be replaced by the provided value. For instance, for a Uri http://www.google.com/foo and port=123 the overridden Uri becomes http://www.google.com:123/foo. Corresponds to the JSON property port

Returns:

  • (Fixnum)


2017
2018
2019
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2017

def port
  @port
end

#queryString

Uri Query. Will replace the query part of the task uri. Corresponds to the JSON property query

Returns:

  • (String)


2022
2023
2024
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2022

def query
  @query
end

#schemeString

Scheme override. When specified, the Uri scheme is replaced by the provided value. Corresponds to the JSON property scheme

Returns:

  • (String)


2028
2029
2030
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2028

def scheme
  @scheme
end

#uri_override_enforce_modeString

Uri Override Enforce Mode Determines the Target UriOverride mode. Corresponds to the JSON property uriOverrideEnforceMode

Returns:

  • (String)


2033
2034
2035
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2033

def uri_override_enforce_mode
  @uri_override_enforce_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2040
2041
2042
2043
2044
2045
2046
2047
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2040

def update!(**args)
  @host = args[:host] if args.key?(:host)
  @path = args[:path] if args.key?(:path)
  @port = args[:port] if args.key?(:port)
  @query = args[:query] if args.key?(:query)
  @scheme = args[:scheme] if args.key?(:scheme)
  @uri_override_enforce_mode = args[:uri_override_enforce_mode] if args.key?(:uri_override_enforce_mode)
end