Class: Google::Apis::FirebasehostingV1beta1::CloudRunRewrite

Inherits:
Object
  • Object
show all
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 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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CloudRunRewrite

Returns a new instance of CloudRunRewrite.



163
164
165
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 163

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#regionString

Optional. User-provided region where the Cloud Run service is hosted.
Defaults to us-central1 if not supplied. Corresponds to the JSON property region

Returns:

  • (String)


156
157
158
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 156

def region
  @region
end

#service_idString

Required. User-defined ID of the Cloud Run service. Corresponds to the JSON property serviceId

Returns:

  • (String)


161
162
163
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 161

def service_id
  @service_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



168
169
170
171
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 168

def update!(**args)
  @region = args[:region] if args.key?(:region)
  @service_id = args[:service_id] if args.key?(:service_id)
end