Class: Google::Apis::ComputeAlpha::TlsContext

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

The TLS settings for the client or server.

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) ⇒ TlsContext

Returns a new instance of TlsContext.



36383
36384
36385
# File 'generated/google/apis/compute_alpha/classes.rb', line 36383

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

Instance Attribute Details

#certificate_contextGoogle::Apis::ComputeAlpha::TlsCertificateContext

Defines the mechanism to obtain the client or server certificate. Corresponds to the JSON property certificateContext



36375
36376
36377
# File 'generated/google/apis/compute_alpha/classes.rb', line 36375

def certificate_context
  @certificate_context
end

#validation_contextGoogle::Apis::ComputeAlpha::TlsValidationContext

Defines the mechanism to obtain the Certificate Authority certificate to validate the client/server certificate. Corresponds to the JSON property validationContext



36381
36382
36383
# File 'generated/google/apis/compute_alpha/classes.rb', line 36381

def validation_context
  @validation_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36388
36389
36390
36391
# File 'generated/google/apis/compute_alpha/classes.rb', line 36388

def update!(**args)
  @certificate_context = args[:certificate_context] if args.key?(:certificate_context)
  @validation_context = args[:validation_context] if args.key?(:validation_context)
end