Class: Google::Apis::FirebasehostingV1beta1::DomainRedirect
- Inherits:
-
Object
- Object
- Google::Apis::FirebasehostingV1beta1::DomainRedirect
- 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
Defines the behavior of a domain-level redirect. Domain redirects preserve the path of the redirect but replace the requested domain with the one specified in the redirect configuration.
Instance Attribute Summary collapse
-
#domain_name ⇒ String
Required.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DomainRedirect
constructor
A new instance of DomainRedirect.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DomainRedirect
Returns a new instance of DomainRedirect.
808 809 810 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 808 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain_name ⇒ String
Required. The domain name to redirect to.
Corresponds to the JSON property domainName
801 802 803 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 801 def domain_name @domain_name end |
#type ⇒ String
Required. The redirect status code.
Corresponds to the JSON property type
806 807 808 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 806 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
813 814 815 816 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 813 def update!(**args) @domain_name = args[:domain_name] if args.key?(:domain_name) @type = args[:type] if args.key?(:type) end |