Class: Google::Apis::DomainsV1::DomainForwarding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/domains_v1/classes.rb,
lib/google/apis/domains_v1/representations.rb,
lib/google/apis/domains_v1/representations.rb

Overview

Domain forwarding configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DomainForwarding

Returns a new instance of DomainForwarding.



566
567
568
# File 'lib/google/apis/domains_v1/classes.rb', line 566

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

Instance Attribute Details

#path_forwardingBoolean Also known as: path_forwarding?

If true, forwards the path after the domain name to the same path at the new address. Corresponds to the JSON property pathForwarding

Returns:

  • (Boolean)


534
535
536
# File 'lib/google/apis/domains_v1/classes.rb', line 534

def path_forwarding
  @path_forwarding
end

#pem_certificateString

The PEM-encoded certificate chain. Corresponds to the JSON property pemCertificate

Returns:

  • (String)


540
541
542
# File 'lib/google/apis/domains_v1/classes.rb', line 540

def pem_certificate
  @pem_certificate
end

#redirect_typeString

The redirect type. Corresponds to the JSON property redirectType

Returns:

  • (String)


545
546
547
# File 'lib/google/apis/domains_v1/classes.rb', line 545

def redirect_type
  @redirect_type
end

#ssl_enabledBoolean Also known as: ssl_enabled?

If true, the forwarding works also over HTTPS. Corresponds to the JSON property sslEnabled

Returns:

  • (Boolean)


550
551
552
# File 'lib/google/apis/domains_v1/classes.rb', line 550

def ssl_enabled
  @ssl_enabled
end

#subdomainString

The subdomain of the registered domain that is being forwarded. E.g. www. example.com, example.com (i.e. the registered domain itself) or *.example. com (i.e. all subdomains). Corresponds to the JSON property subdomain

Returns:

  • (String)


558
559
560
# File 'lib/google/apis/domains_v1/classes.rb', line 558

def subdomain
  @subdomain
end

#target_uriString

The target of the domain forwarding, i.e. the path to redirect the subdomain to. Corresponds to the JSON property targetUri

Returns:

  • (String)


564
565
566
# File 'lib/google/apis/domains_v1/classes.rb', line 564

def target_uri
  @target_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



571
572
573
574
575
576
577
578
# File 'lib/google/apis/domains_v1/classes.rb', line 571

def update!(**args)
  @path_forwarding = args[:path_forwarding] if args.key?(:path_forwarding)
  @pem_certificate = args[:pem_certificate] if args.key?(:pem_certificate)
  @redirect_type = args[:redirect_type] if args.key?(:redirect_type)
  @ssl_enabled = args[:ssl_enabled] if args.key?(:ssl_enabled)
  @subdomain = args[:subdomain] if args.key?(:subdomain)
  @target_uri = args[:target_uri] if args.key?(:target_uri)
end