Class: Google::Apis::PrivatecaV1::CertificateRevocationList

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

Overview

A CertificateRevocationList corresponds to a signed X.509 certificate Revocation List (CRL). A CRL contains the serial numbers of certificates that should no longer be trusted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CertificateRevocationList

Returns a new instance of CertificateRevocationList.



881
882
883
# File 'lib/google/apis/privateca_v1/classes.rb', line 881

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

Instance Attribute Details

#access_urlString

Output only. The location where 'pem_crl' can be accessed. Corresponds to the JSON property accessUrl

Returns:

  • (String)


830
831
832
# File 'lib/google/apis/privateca_v1/classes.rb', line 830

def access_url
  @access_url
end

#create_timeString

Output only. The time at which this CertificateRevocationList was created. Corresponds to the JSON property createTime

Returns:

  • (String)


835
836
837
# File 'lib/google/apis/privateca_v1/classes.rb', line 835

def create_time
  @create_time
end

#labelsHash<String,String>

Optional. Labels with user-defined metadata. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


840
841
842
# File 'lib/google/apis/privateca_v1/classes.rb', line 840

def labels
  @labels
end

#nameString

Output only. The resource name for this CertificateRevocationList in the format projects/*/locations/*/caPools/*certificateAuthorities/*/ certificateRevocationLists/*. Corresponds to the JSON property name

Returns:

  • (String)


847
848
849
# File 'lib/google/apis/privateca_v1/classes.rb', line 847

def name
  @name
end

#pem_crlString

Output only. The PEM-encoded X.509 CRL. Corresponds to the JSON property pemCrl

Returns:

  • (String)


852
853
854
# File 'lib/google/apis/privateca_v1/classes.rb', line 852

def pem_crl
  @pem_crl
end

#revision_idString

Output only. The revision ID of this CertificateRevocationList. A new revision is committed whenever a new CRL is published. The format is an 8-character hexadecimal string. Corresponds to the JSON property revisionId

Returns:

  • (String)


859
860
861
# File 'lib/google/apis/privateca_v1/classes.rb', line 859

def revision_id
  @revision_id
end

#revoked_certificatesArray<Google::Apis::PrivatecaV1::RevokedCertificate>

Output only. The revoked serial numbers that appear in pem_crl. Corresponds to the JSON property revokedCertificates



864
865
866
# File 'lib/google/apis/privateca_v1/classes.rb', line 864

def revoked_certificates
  @revoked_certificates
end

#sequence_numberFixnum

Output only. The CRL sequence number that appears in pem_crl. Corresponds to the JSON property sequenceNumber

Returns:

  • (Fixnum)


869
870
871
# File 'lib/google/apis/privateca_v1/classes.rb', line 869

def sequence_number
  @sequence_number
end

#stateString

Output only. The State for this CertificateRevocationList. Corresponds to the JSON property state

Returns:

  • (String)


874
875
876
# File 'lib/google/apis/privateca_v1/classes.rb', line 874

def state
  @state
end

#update_timeString

Output only. The time at which this CertificateRevocationList was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


879
880
881
# File 'lib/google/apis/privateca_v1/classes.rb', line 879

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



886
887
888
889
890
891
892
893
894
895
896
897
# File 'lib/google/apis/privateca_v1/classes.rb', line 886

def update!(**args)
  @access_url = args[:access_url] if args.key?(:access_url)
  @create_time = args[:create_time] if args.key?(:create_time)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @pem_crl = args[:pem_crl] if args.key?(:pem_crl)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
  @revoked_certificates = args[:revoked_certificates] if args.key?(:revoked_certificates)
  @sequence_number = args[:sequence_number] if args.key?(:sequence_number)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end