class Google::Apis::FirebasehostingV1beta1::DomainRedirect

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.

Attributes

domain_name[RW]

Required. The domain name to redirect to. Corresponds to the JSON property `domainName` @return [String]

type[RW]

Required. The redirect status code. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 387
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 392
def update!(**args)
  @domain_name = args[:domain_name] if args.key?(:domain_name)
  @type = args[:type] if args.key?(:type)
end