Class: Google::Apis::ComputeAlpha::TlsValidationContext

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

Overview

Defines the mechanism to obtain the Certificate Authority certificate to validate the client/server certificate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TlsValidationContext

Returns a new instance of TlsValidationContext



34837
34838
34839
# File 'generated/google/apis/compute_alpha/classes.rb', line 34837

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

Instance Attribute Details

#certificate_pathString

The path to the file holding the CA certificate to validate the client or server certificate. Corresponds to the JSON property certificatePath

Returns:

  • (String)


34825
34826
34827
# File 'generated/google/apis/compute_alpha/classes.rb', line 34825

def certificate_path
  @certificate_path
end

#sds_configGoogle::Apis::ComputeAlpha::SdsConfig

The configuration to access the SDS server. Corresponds to the JSON property sdsConfig



34830
34831
34832
# File 'generated/google/apis/compute_alpha/classes.rb', line 34830

def sds_config
  @sds_config
end

#validation_sourceString

Defines how TLS certificates are obtained. Corresponds to the JSON property validationSource

Returns:

  • (String)


34835
34836
34837
# File 'generated/google/apis/compute_alpha/classes.rb', line 34835

def validation_source
  @validation_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34842
34843
34844
34845
34846
# File 'generated/google/apis/compute_alpha/classes.rb', line 34842

def update!(**args)
  @certificate_path = args[:certificate_path] if args.key?(:certificate_path)
  @sds_config = args[:sds_config] if args.key?(:sds_config)
  @validation_source = args[:validation_source] if args.key?(:validation_source)
end