Class: Google::Apis::NetworksecurityV1::ServerTlsPolicy
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1::ServerTlsPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networksecurity_v1/classes.rb,
lib/google/apis/networksecurity_v1/representations.rb,
lib/google/apis/networksecurity_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#allow_open ⇒ Boolean
(also: #allow_open?)
Determines if server allows plaintext connections.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Free-text description of the resource.
-
#labels ⇒ Hash<String,String>
Set of label tags associated with the resource.
-
#mtls_policy ⇒ Google::Apis::NetworksecurityV1::MtlsPolicy
Specification of the MTLSPolicy.
-
#name ⇒ String
Required.
-
#server_certificate ⇒ Google::Apis::NetworksecurityV1::GoogleCloudNetworksecurityV1CertificateProvider
Specification of certificate provider.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServerTlsPolicy
constructor
A new instance of ServerTlsPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServerTlsPolicy
Returns a new instance of ServerTlsPolicy.
1114 1115 1116 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1114 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_open ⇒ Boolean Also known as: allow_open?
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
1074 1075 1076 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1074 def allow_open @allow_open end |
#create_time ⇒ String
Output only. The timestamp when the resource was created.
Corresponds to the JSON property createTime
1080 1081 1082 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1080 def create_time @create_time end |
#description ⇒ String
Free-text description of the resource.
Corresponds to the JSON property description
1085 1086 1087 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1085 def description @description end |
#labels ⇒ Hash<String,String>
Set of label tags associated with the resource.
Corresponds to the JSON property labels
1090 1091 1092 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1090 def labels @labels end |
#mtls_policy ⇒ Google::Apis::NetworksecurityV1::MtlsPolicy
Specification of the MTLSPolicy.
Corresponds to the JSON property mtlsPolicy
1095 1096 1097 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1095 def mtls_policy @mtls_policy end |
#name ⇒ String
Required. Name of the ServerTlsPolicy resource. It matches the pattern
projects/*/locations/location/serverTlsPolicies/server_tls_policy`
Corresponds to the JSON propertyname`
1101 1102 1103 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1101 def name @name end |
#server_certificate ⇒ Google::Apis::NetworksecurityV1::GoogleCloudNetworksecurityV1CertificateProvider
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
1107 1108 1109 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1107 def server_certificate @server_certificate end |
#update_time ⇒ String
Output only. The timestamp when the resource was updated.
Corresponds to the JSON property updateTime
1112 1113 1114 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1112 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 |
# File 'lib/google/apis/networksecurity_v1/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 |