Class: Google::Apis::RedisV1beta1::TlsCertificate

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

Overview

TlsCertificate Resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TlsCertificate

Returns a new instance of TlsCertificate.



1218
1219
1220
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1218

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

Instance Attribute Details

#certString

PEM representation. Corresponds to the JSON property cert

Returns:

  • (String)


1194
1195
1196
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1194

def cert
  @cert
end

#create_timeString

Output only. The time when the certificate was created in RFC 3339 format, for example 2020-05-18T00:00:00.094Z. Corresponds to the JSON property createTime

Returns:

  • (String)


1200
1201
1202
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1200

def create_time
  @create_time
end

#expire_timeString

Output only. The time when the certificate expires in RFC 3339 format, for example 2020-05-18T00:00:00.094Z. Corresponds to the JSON property expireTime

Returns:

  • (String)


1206
1207
1208
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1206

def expire_time
  @expire_time
end

#serial_numberString

Serial number, as extracted from the certificate. Corresponds to the JSON property serialNumber

Returns:

  • (String)


1211
1212
1213
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1211

def serial_number
  @serial_number
end

#sha1_fingerprintString

Sha1 Fingerprint of the certificate. Corresponds to the JSON property sha1Fingerprint

Returns:

  • (String)


1216
1217
1218
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1216

def sha1_fingerprint
  @sha1_fingerprint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1223
1224
1225
1226
1227
1228
1229
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1223

def update!(**args)
  @cert = args[:cert] if args.key?(:cert)
  @create_time = args[:create_time] if args.key?(:create_time)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @serial_number = args[:serial_number] if args.key?(:serial_number)
  @sha1_fingerprint = args[:sha1_fingerprint] if args.key?(:sha1_fingerprint)
end