Class: Google::Apis::RunV1alpha1::DomainMappingSpec

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

Overview

The desired state of the Domain Mapping.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DomainMappingSpec

Returns a new instance of DomainMappingSpec.



1640
1641
1642
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1640

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

Instance Attribute Details

#certificate_modeString

The mode of the certificate. Corresponds to the JSON property certificateMode

Returns:

  • (String)


1623
1624
1625
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1623

def certificate_mode
  @certificate_mode
end

#force_overrideBoolean Also known as: force_override?

If set, the mapping will override any mapping set before this spec was set. It is recommended that the user leaves this empty to receive an error warning about a potential conflict and only set it once the respective UI has given such a warning. Corresponds to the JSON property forceOverride

Returns:

  • (Boolean)


1631
1632
1633
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1631

def force_override
  @force_override
end

#route_nameString

The name of the Knative Route that this DomainMapping applies to. The route must exist. Corresponds to the JSON property routeName

Returns:

  • (String)


1638
1639
1640
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1638

def route_name
  @route_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1645
1646
1647
1648
1649
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1645

def update!(**args)
  @certificate_mode = args[:certificate_mode] if args.key?(:certificate_mode)
  @force_override = args[:force_override] if args.key?(:force_override)
  @route_name = args[:route_name] if args.key?(:route_name)
end