Class: Google::Apis::AlloydbV1beta::GenerateClientCertificateRequest
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::GenerateClientCertificateRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb
Overview
Message for requests to generate a client certificate signed by the Cluster CA.
Instance Attribute Summary collapse
-
#cert_duration ⇒ String
Optional.
-
#pem_csr ⇒ String
Optional.
-
#public_key ⇒ String
Optional.
-
#request_id ⇒ String
Optional.
-
#use_metadata_exchange ⇒ Boolean
(also: #use_metadata_exchange?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenerateClientCertificateRequest
constructor
A new instance of GenerateClientCertificateRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenerateClientCertificateRequest
Returns a new instance of GenerateClientCertificateRequest.
890 891 892 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 890 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cert_duration ⇒ String
Optional. An optional hint to the endpoint to generate the client certificate
with the requested duration. The duration can be from 1 hour to 24 hours. The
endpoint may or may not honor the hint. If the hint is left unspecified or is
not honored, then the endpoint will pick an appropriate default duration.
Corresponds to the JSON property certDuration
855 856 857 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 855 def cert_duration @cert_duration end |
#pem_csr ⇒ String
Optional. A pem-encoded X.509 certificate signing request (CSR). It is
recommended to use public_key instead.
Corresponds to the JSON property pemCsr
861 862 863 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 861 def pem_csr @pem_csr end |
#public_key ⇒ String
Optional. The public key from the client.
Corresponds to the JSON property publicKey
866 867 868 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 866 def public_key @public_key end |
#request_id ⇒ String
Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request. For example, consider a
situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if
original operation with the same request ID was received, and if so, will
ignore the second request. This prevents clients from accidentally creating
duplicate commitments. The request ID must be a valid UUID with the exception
that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Corresponds to the JSON property requestId
880 881 882 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 880 def request_id @request_id end |
#use_metadata_exchange ⇒ Boolean Also known as: use_metadata_exchange?
Optional. An optional hint to the endpoint to generate a client ceritificate
that can be used by AlloyDB connectors to exchange additional metadata with
the server after TLS handshake.
Corresponds to the JSON property useMetadataExchange
887 888 889 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 887 def @use_metadata_exchange end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
895 896 897 898 899 900 901 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 895 def update!(**args) @cert_duration = args[:cert_duration] if args.key?(:cert_duration) @pem_csr = args[:pem_csr] if args.key?(:pem_csr) @public_key = args[:public_key] if args.key?(:public_key) @request_id = args[:request_id] if args.key?(:request_id) @use_metadata_exchange = args[:use_metadata_exchange] if args.key?(:use_metadata_exchange) end |