Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolTlsConfigCaCert

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

The CA certificate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ToolTlsConfigCaCert

Returns a new instance of GoogleCloudDialogflowV2ToolTlsConfigCaCert.



19364
19365
19366
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19364

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

Instance Attribute Details

#certString

Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with " subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ - signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\ nsubjectAltName='DNS:www.example.com'") Corresponds to the JSON property cert NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


19356
19357
19358
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19356

def cert
  @cert
end

#display_nameString

Required. The name of the allowed custom CA certificates. This can be used to disambiguate the custom CA certificates. Corresponds to the JSON property displayName

Returns:

  • (String)


19362
19363
19364
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19362

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19369
19370
19371
19372
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19369

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