Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1CertInfo

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

Overview

An X.509 certificate as defined in RFC 5280.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1CertInfo

Returns a new instance of GoogleCloudApigeeV1CertInfo.


945
946
947
# File 'generated/google/apis/apigee_v1/classes.rb', line 945

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

Instance Attribute Details

#basic_constraintsString

The X.509 basic constraints extension. Corresponds to the JSON property basicConstraints

Returns:

  • (String)

893
894
895
# File 'generated/google/apis/apigee_v1/classes.rb', line 893

def basic_constraints
  @basic_constraints
end

#expiry_dateFixnum

The X.509 validity / notAfter in milliseconds since the epoch. Corresponds to the JSON property expiryDate

Returns:

  • (Fixnum)

898
899
900
# File 'generated/google/apis/apigee_v1/classes.rb', line 898

def expiry_date
  @expiry_date
end

#is_validString

"Yes" if certificate is valid, "No" if expired and "Not yet" if not yet valid. Corresponds to the JSON property isValid

Returns:

  • (String)

903
904
905
# File 'generated/google/apis/apigee_v1/classes.rb', line 903

def is_valid
  @is_valid
end

#issuerString

The X.509 issuer. Corresponds to the JSON property issuer

Returns:

  • (String)

908
909
910
# File 'generated/google/apis/apigee_v1/classes.rb', line 908

def issuer
  @issuer
end

#public_keyString

The public key component of the X.509 subject public key info. Corresponds to the JSON property publicKey

Returns:

  • (String)

913
914
915
# File 'generated/google/apis/apigee_v1/classes.rb', line 913

def public_key
  @public_key
end

#serial_numberString

The X.509 serial number. Corresponds to the JSON property serialNumber

Returns:

  • (String)

918
919
920
# File 'generated/google/apis/apigee_v1/classes.rb', line 918

def serial_number
  @serial_number
end

#sig_alg_nameString

The X.509 signatureAlgorithm. Corresponds to the JSON property sigAlgName

Returns:

  • (String)

923
924
925
# File 'generated/google/apis/apigee_v1/classes.rb', line 923

def sig_alg_name
  @sig_alg_name
end

#subjectString

The X.509 subject. Corresponds to the JSON property subject

Returns:

  • (String)

928
929
930
# File 'generated/google/apis/apigee_v1/classes.rb', line 928

def subject
  @subject
end

#subject_alternative_namesArray<String>

The X.509 subject alternative names (SANs) extension. Corresponds to the JSON property subjectAlternativeNames

Returns:

  • (Array<String>)

933
934
935
# File 'generated/google/apis/apigee_v1/classes.rb', line 933

def subject_alternative_names
  @subject_alternative_names
end

#valid_fromFixnum

The X.509 validity / notBefore in milliseconds since the epoch. Corresponds to the JSON property validFrom

Returns:

  • (Fixnum)

938
939
940
# File 'generated/google/apis/apigee_v1/classes.rb', line 938

def valid_from
  @valid_from
end

#versionFixnum

The X.509 version. Corresponds to the JSON property version

Returns:

  • (Fixnum)

943
944
945
# File 'generated/google/apis/apigee_v1/classes.rb', line 943

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


950
951
952
953
954
955
956
957
958
959
960
961
962
# File 'generated/google/apis/apigee_v1/classes.rb', line 950

def update!(**args)
  @basic_constraints = args[:basic_constraints] if args.key?(:basic_constraints)
  @expiry_date = args[:expiry_date] if args.key?(:expiry_date)
  @is_valid = args[:is_valid] if args.key?(:is_valid)
  @issuer = args[:issuer] if args.key?(:issuer)
  @public_key = args[:public_key] if args.key?(:public_key)
  @serial_number = args[:serial_number] if args.key?(:serial_number)
  @sig_alg_name = args[:sig_alg_name] if args.key?(:sig_alg_name)
  @subject = args[:subject] if args.key?(:subject)
  @subject_alternative_names = args[:subject_alternative_names] if args.key?(:subject_alternative_names)
  @valid_from = args[:valid_from] if args.key?(:valid_from)
  @version = args[:version] if args.key?(:version)
end