Class: Google::Apis::FirebasehostingV1beta1::DomainRedirect

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DomainRedirect

Returns a new instance of DomainRedirect.


265
266
267
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 265

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

Instance Attribute Details

#domain_nameString

Required. The domain name to redirect to. Corresponds to the JSON property domainName

Returns:

  • (String)

258
259
260
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 258

def domain_name
  @domain_name
end

#typeString

Required. The redirect status code. Corresponds to the JSON property type

Returns:

  • (String)

263
264
265
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 263

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


270
271
272
273
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 270

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