class Google::Apis::NetworksecurityV1beta1::ServerTlsPolicy

ServerTlsPolicy is a resource that specifies how a server should authenticate incoming requests. This resource itself does not affect configuration unless it is attached to a target https proxy or endpoint config selector resource.

Attributes

allow_open[RW]

Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if `allow_open` and ` mtls_policy` are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility. Corresponds to the JSON property `allowOpen` @return [Boolean]

allow_open?[RW]

Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if `allow_open` and ` mtls_policy` are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility. Corresponds to the JSON property `allowOpen` @return [Boolean]

create_time[RW]

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

description[RW]

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

labels[RW]

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

mtls_policy[RW]

Specification of the MTLSPolicy. Corresponds to the JSON property `mtlsPolicy` @return [Google::Apis::NetworksecurityV1beta1::MtlsPolicy]

name[RW]

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

server_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 `serverCertificate` @return [Google::Apis::NetworksecurityV1beta1::GoogleCloudNetworksecurityV1beta1CertificateProvider]

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 1114
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 1119
def update!(**args)
  @allow_open = args[:allow_open] if args.key?(:allow_open)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @mtls_policy = args[:mtls_policy] if args.key?(:mtls_policy)
  @name = args[:name] if args.key?(:name)
  @server_certificate = args[:server_certificate] if args.key?(:server_certificate)
  @update_time = args[:update_time] if args.key?(:update_time)
end