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.
2032 2033 2034 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2032 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
2006 2007 2008 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2006 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
2012 2013 2014 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2012 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
2019 2020 2021 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2019 def port @port end |
#query ⇒ String
Uri Query. Will replace the query part of the task uri.
Corresponds to the JSON property query
2024 2025 2026 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2024 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
2030 2031 2032 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2030 def scheme @scheme end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2037 2038 2039 2040 2041 2042 2043 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2037 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 |