Class: Google::Apis::FirebasehostingV1beta1::CloudRunRewrite
- Inherits:
-
Object
- Object
- Google::Apis::FirebasehostingV1beta1::CloudRunRewrite
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firebasehosting_v1beta1/classes.rb,
generated/google/apis/firebasehosting_v1beta1/representations.rb,
generated/google/apis/firebasehosting_v1beta1/representations.rb
Overview
A configured rewrite that will direct any 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 will fail. Any errors from the Cloud Run service (including when the service has been deleted) will be passed back down to the end user.
Instance Attribute Summary collapse
-
#region ⇒ String
Optional.
-
#service_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudRunRewrite
constructor
A new instance of CloudRunRewrite.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CloudRunRewrite
Returns a new instance of CloudRunRewrite
124 125 126 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#region ⇒ String
Optional. The region where the Cloud Run service is hosted. Defaults to
us-central1
if not supplied.
Corresponds to the JSON property region
117 118 119 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 117 def region @region end |
#service_id ⇒ String
Required. User supplied ID of the Cloud Run service.
Corresponds to the JSON property serviceId
122 123 124 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 122 def service_id @service_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
129 130 131 132 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 129 def update!(**args) @region = args[:region] if args.key?(:region) @service_id = args[:service_id] if args.key?(:service_id) end |