class Google::Apis::NetworksecurityV1beta1::ClientTlsPolicy

ClientTlsPolicy is a resource that specifies how a client should authenticate connections to backends of a service. This resource itself does not affect configuration unless it is attached to a backend service resource.

Attributes

client_certificate[RW]

Specification of certificate provider. Defines the mechanism to obtain the certificate and private key for peer to peer authentication. Corresponds to the JSON property `clientCertificate` @return [Google::Apis::NetworksecurityV1beta1::GoogleCloudNetworksecurityV1beta1CertificateProvider]

create_time[RW]

Output only. The timestamp when the resource was created. Corresponds to the JSON property `createTime` @return [String]

description[RW]

Optional. Free-text description of the resource. Corresponds to the JSON property `description` @return [String]

labels[RW]

Optional. Set of label tags associated with the resource. Corresponds to the JSON property `labels` @return [Hash<String,String>]

name[RW]

Required. Name of the ClientTlsPolicy resource. It matches the pattern ` projects/*/locations/`location`/clientTlsPolicies/`client_tls_policy“ Corresponds to the JSON property `name` @return [String]

server_validation_ca[RW]

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Corresponds to the JSON property `serverValidationCa` @return [Array<Google::Apis::NetworksecurityV1beta1::ValidationCa>]

sni[RW]

Optional. Server Name Indication string to present to the server during TLS handshake. E.g: “secure.example.com”. Corresponds to the JSON property `sni` @return [String]

update_time[RW]

Output only. The timestamp when the resource was updated. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/networksecurity_v1beta1/classes.rb, line 176
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/networksecurity_v1beta1/classes.rb, line 181
def update!(**args)
  @client_certificate = args[:client_certificate] if args.key?(:client_certificate)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @server_validation_ca = args[:server_validation_ca] if args.key?(:server_validation_ca)
  @sni = args[:sni] if args.key?(:sni)
  @update_time = args[:update_time] if args.key?(:update_time)
end