Class: Google::Apis::CloudtasksV2beta2::UriOverride
- Inherits:
-
Object
- Object
- Google::Apis::CloudtasksV2beta2::UriOverride
- 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
-
#host ⇒ String
Host override.
-
#path ⇒ String
Uri path.
-
#port ⇒ Fixnum
Port override.
-
#query ⇒ String
Uri Query.
-
#scheme ⇒ String
Scheme override.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UriOverride
constructor
A new instance of UriOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UriOverride
Returns a new instance of UriOverride.
2030 2031 2032 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2030 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host ⇒ String
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
2004 2005 2006 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2004 def host @host end |
#path ⇒ String
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
2010 2011 2012 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2010 def path @path end |
#port ⇒ Fixnum
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
2017 2018 2019 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2017 def port @port end |
#query ⇒ String
Uri Query. Will replace the query part of the task uri.
Corresponds to the JSON property query
2022 2023 2024 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2022 def query @query end |
#scheme ⇒ String
Scheme override. When specified, the Uri scheme is replaced by the provided
value.
Corresponds to the JSON property scheme
2028 2029 2030 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2028 def scheme @scheme end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2035 2036 2037 2038 2039 2040 2041 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2035 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 |