Class: Google::Apis::RunV1::DomainMappingSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::DomainMappingSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/representations.rb
Overview
The desired state of the Domain Mapping.
Instance Attribute Summary collapse
-
#certificate_mode ⇒ String
The mode of the certificate.
-
#force_override ⇒ Boolean
(also: #force_override?)
If set, the mapping will override any mapping set before this spec was set.
-
#route_name ⇒ String
The name of the Knative Route that this DomainMapping applies to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DomainMappingSpec
constructor
A new instance of DomainMappingSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DomainMappingSpec
Returns a new instance of DomainMappingSpec.
742 743 744 |
# File 'lib/google/apis/run_v1/classes.rb', line 742 def initialize(**args) update!(**args) end |
Instance Attribute Details
#certificate_mode ⇒ String
The mode of the certificate.
Corresponds to the JSON property certificateMode
725 726 727 |
# File 'lib/google/apis/run_v1/classes.rb', line 725 def certificate_mode @certificate_mode end |
#force_override ⇒ Boolean 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
733 734 735 |
# File 'lib/google/apis/run_v1/classes.rb', line 733 def force_override @force_override end |
#route_name ⇒ String
The name of the Knative Route that this DomainMapping applies to. The route
must exist.
Corresponds to the JSON property routeName
740 741 742 |
# File 'lib/google/apis/run_v1/classes.rb', line 740 def route_name @route_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
747 748 749 750 751 |
# File 'lib/google/apis/run_v1/classes.rb', line 747 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 |