Class: Google::Apis::NetworksecurityV1beta1::MtlsPolicy

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

Overview

Specification of the MTLSPolicy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MtlsPolicy

Returns a new instance of MtlsPolicy.



1400
1401
1402
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1400

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

Instance Attribute Details

#client_validation_caArray<Google::Apis::NetworksecurityV1beta1::ValidationCa>

Required if the policy is to be used with Traffic Director. For External HTTPS LB it must be empty. Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate. Corresponds to the JSON property clientValidationCa



1383
1384
1385
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1383

def client_validation_ca
  @client_validation_ca
end

#client_validation_modeString

Specifies whether client connections proceed when a client presents an invalid certificate or no certificate. Required if the policy is to be used with the External HTTPS LB. For Traffic Director it must be empty. Corresponds to the JSON property clientValidationMode

Returns:

  • (String)


1390
1391
1392
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1390

def client_validation_mode
  @client_validation_mode
end

#client_validation_trust_configString

Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given TrustConfig. Allowed only if the policy is to be used with External HTTPS LB. Corresponds to the JSON property clientValidationTrustConfig

Returns:

  • (String)


1398
1399
1400
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1398

def client_validation_trust_config
  @client_validation_trust_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1405
1406
1407
1408
1409
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1405

def update!(**args)
  @client_validation_ca = args[:client_validation_ca] if args.key?(:client_validation_ca)
  @client_validation_mode = args[:client_validation_mode] if args.key?(:client_validation_mode)
  @client_validation_trust_config = args[:client_validation_trust_config] if args.key?(:client_validation_trust_config)
end