Class: Google::Apis::NetworksecurityV1::ClientTlsPolicy
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1::ClientTlsPolicy
- 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
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.
Instance Attribute Summary collapse
-
#client_certificate ⇒ Google::Apis::NetworksecurityV1::GoogleCloudNetworksecurityV1CertificateProvider
Specification of certificate provider.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Required.
-
#server_validation_ca ⇒ Array<Google::Apis::NetworksecurityV1::ValidationCa>
Optional.
-
#sni ⇒ String
Optional.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClientTlsPolicy
constructor
A new instance of ClientTlsPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClientTlsPolicy
Returns a new instance of ClientTlsPolicy.
176 177 178 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_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 clientCertificate
135 136 137 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 135 def client_certificate @client_certificate end |
#create_time ⇒ String
Output only. The timestamp when the resource was created.
Corresponds to the JSON property createTime
140 141 142 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 140 def create_time @create_time end |
#description ⇒ String
Optional. Free-text description of the resource.
Corresponds to the JSON property description
145 146 147 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 145 def description @description end |
#labels ⇒ Hash<String,String>
Optional. Set of label tags associated with the resource.
Corresponds to the JSON property labels
150 151 152 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 150 def labels @labels end |
#name ⇒ String
Required. Name of the ClientTlsPolicy resource. It matches the pattern
projects/*/locations/location/clientTlsPolicies/client_tls_policy`
Corresponds to the JSON propertyname`
156 157 158 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 156 def name @name end |
#server_validation_ca ⇒ Array<Google::Apis::NetworksecurityV1::ValidationCa>
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
163 164 165 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 163 def server_validation_ca @server_validation_ca end |
#sni ⇒ String
Optional. Server Name Indication string to present to the server during TLS
handshake. E.g: "secure.example.com".
Corresponds to the JSON property sni
169 170 171 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 169 def sni @sni end |
#update_time ⇒ String
Output only. The timestamp when the resource was updated.
Corresponds to the JSON property updateTime
174 175 176 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 174 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
181 182 183 184 185 186 187 188 189 190 |
# File 'lib/google/apis/networksecurity_v1/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 |