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.



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

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)


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

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)


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

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)


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

def port
  @port
end

#queryString

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

Returns:

  • (String)


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

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)


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

def scheme
  @scheme
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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)
end