Class: Google::Apis::FirebasehostingV1beta1::CloudRunRewrite
- Inherits:
-
Object
- Object
- Google::Apis::FirebasehostingV1beta1::CloudRunRewrite
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebasehosting_v1beta1/classes.rb,
lib/google/apis/firebasehosting_v1beta1/representations.rb,
lib/google/apis/firebasehosting_v1beta1/representations.rb
Overview
A configured rewrite that directs requests to a Cloud Run service. If the
Cloud Run service does not exist when setting or updating your Firebase
Hosting configuration, then the request fails. Any errors from the Cloud Run
service are passed to the end user (for example, if you delete a service, any
requests directed to that service receive a 404
error).
Instance Attribute Summary collapse
-
#region ⇒ String
Optional.
-
#service_id ⇒ String
Required.
-
#tag ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudRunRewrite
constructor
A new instance of CloudRunRewrite.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudRunRewrite
Returns a new instance of CloudRunRewrite.
348 349 350 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 348 def initialize(**args) update!(**args) end |
Instance Attribute Details
#region ⇒ String
Optional. User-provided region where the Cloud Run service is hosted. Defaults
to us-central1
if not supplied.
Corresponds to the JSON property region
335 336 337 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 335 def region @region end |
#service_id ⇒ String
Required. User-defined ID of the Cloud Run service.
Corresponds to the JSON property serviceId
340 341 342 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 340 def service_id @service_id end |
#tag ⇒ String
Optional. User-provided TrafficConfig tag to send traffic to. When omitted,
traffic is sent to the service-wide URI
Corresponds to the JSON property tag
346 347 348 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 346 def tag @tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
353 354 355 356 357 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 353 def update!(**args) @region = args[:region] if args.key?(:region) @service_id = args[:service_id] if args.key?(:service_id) @tag = args[:tag] if args.key?(:tag) end |