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_override ⇒ Google::Apis::CloudtasksV2beta2::PathOverride
PathOverride.
-
#port ⇒ Fixnum
Port override.
-
#query_override ⇒ Google::Apis::CloudtasksV2beta2::QueryOverride
QueryOverride.
-
#scheme ⇒ String
Scheme override.
-
#uri_override_enforce_mode ⇒ String
URI Override Enforce Mode When specified, determines the Target UriOverride mode.
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.
2136 2137 2138 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2136 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host ⇒ String
Host override. When specified, replaces the host part of the task URL. For
example, if the task URL is "https://www.google.com," and host value is set to
"example.net", the overridden URI will be changed to "https://example.net."
Host value cannot be an empty string (INVALID_ARGUMENT).
Corresponds to the JSON property host
2103 2104 2105 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2103 def host @host end |
#path_override ⇒ Google::Apis::CloudtasksV2beta2::PathOverride
PathOverride. Path message defines path override for HTTP targets.
Corresponds to the JSON property pathOverride
2108 2109 2110 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2108 def path_override @path_override end |
#port ⇒ Fixnum
Port override. When specified, replaces the port part of the task URI. For
instance, for a URI "https://www.example.com/example" and port=123, the
overridden URI becomes "https://www.example.com:123/example". Note that the
port value must be a positive integer. Setting the port to 0 (Zero) clears the
URI port.
Corresponds to the JSON property port
2117 2118 2119 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2117 def port @port end |
#query_override ⇒ Google::Apis::CloudtasksV2beta2::QueryOverride
QueryOverride. Query message defines query override for HTTP targets.
Corresponds to the JSON property queryOverride
2122 2123 2124 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2122 def query_override @query_override end |
#scheme ⇒ String
Scheme override. When specified, the task URI scheme is replaced by the
provided value (HTTP or HTTPS).
Corresponds to the JSON property scheme
2128 2129 2130 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2128 def scheme @scheme end |
#uri_override_enforce_mode ⇒ String
URI Override Enforce Mode When specified, determines the Target UriOverride
mode. If not specified, it defaults to ALWAYS.
Corresponds to the JSON property uriOverrideEnforceMode
2134 2135 2136 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2134 def uri_override_enforce_mode @uri_override_enforce_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2141 2142 2143 2144 2145 2146 2147 2148 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2141 def update!(**args) @host = args[:host] if args.key?(:host) @path_override = args[:path_override] if args.key?(:path_override) @port = args[:port] if args.key?(:port) @query_override = args[:query_override] if args.key?(:query_override) @scheme = args[:scheme] if args.key?(:scheme) @uri_override_enforce_mode = args[:uri_override_enforce_mode] if args.key?(:uri_override_enforce_mode) end |