Class: Google::Apis::PrivatecaV1beta1::RevokedCertificate

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

Overview

Describes a revoked Certificate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RevokedCertificate

Returns a new instance of RevokedCertificate.



2010
2011
2012
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 2010

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

Instance Attribute Details

#certificateString

The resource path for the Certificate in the format projects/*/locations/*/ certificateAuthorities/*/certificates/*. Corresponds to the JSON property certificate

Returns:

  • (String)


1998
1999
2000
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 1998

def certificate
  @certificate
end

#hex_serial_numberString

The serial number of the Certificate. Corresponds to the JSON property hexSerialNumber

Returns:

  • (String)


2003
2004
2005
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 2003

def hex_serial_number
  @hex_serial_number
end

#revocation_reasonString

The reason the Certificate was revoked. Corresponds to the JSON property revocationReason

Returns:

  • (String)


2008
2009
2010
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 2008

def revocation_reason
  @revocation_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2015
2016
2017
2018
2019
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 2015

def update!(**args)
  @certificate = args[:certificate] if args.key?(:certificate)
  @hex_serial_number = args[:hex_serial_number] if args.key?(:hex_serial_number)
  @revocation_reason = args[:revocation_reason] if args.key?(:revocation_reason)
end