Class: Google::Apis::SqladminV1::GenerateEphemeralCertRequest

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

Overview

Ephemeral certificate creation request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateEphemeralCertRequest

Returns a new instance of GenerateEphemeralCertRequest.



2547
2548
2549
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2547

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

Instance Attribute Details

#access_tokenString

Optional. Access token to include in the signed certificate. Corresponds to the JSON property access_token

Returns:

  • (String)


2530
2531
2532
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2530

def access_token
  @access_token
end

#public_keyString

PEM encoded public key to include in the signed certificate. Corresponds to the JSON property public_key

Returns:

  • (String)


2535
2536
2537
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2535

def public_key
  @public_key
end

#read_timeString

Optional. Optional snapshot read timestamp to trade freshness for performance. Corresponds to the JSON property readTime

Returns:

  • (String)


2540
2541
2542
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2540

def read_time
  @read_time
end

#valid_durationString

Optional. If set, it will contain the cert valid duration. Corresponds to the JSON property validDuration

Returns:

  • (String)


2545
2546
2547
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2545

def valid_duration
  @valid_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2552
2553
2554
2555
2556
2557
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2552

def update!(**args)
  @access_token = args[:access_token] if args.key?(:access_token)
  @public_key = args[:public_key] if args.key?(:public_key)
  @read_time = args[:read_time] if args.key?(:read_time)
  @valid_duration = args[:valid_duration] if args.key?(:valid_duration)
end