Class: Google::Apis::PrivatecaV1::CertificateTemplate

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 CertificateTemplate refers to a managed template for certificate issuance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CertificateTemplate

Returns a new instance of CertificateTemplate.



1040
1041
1042
# File 'lib/google/apis/privateca_v1/classes.rb', line 1040

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


988
989
990
# File 'lib/google/apis/privateca_v1/classes.rb', line 988

def create_time
  @create_time
end

#descriptionString

Optional. A human-readable description of scenarios this template is intended for. Corresponds to the JSON property description

Returns:

  • (String)


994
995
996
# File 'lib/google/apis/privateca_v1/classes.rb', line 994

def description
  @description
end

#identity_constraintsGoogle::Apis::PrivatecaV1::CertificateIdentityConstraints

Describes constraints on a Certificate's Subject and SubjectAltNames. Corresponds to the JSON property identityConstraints



999
1000
1001
# File 'lib/google/apis/privateca_v1/classes.rb', line 999

def identity_constraints
  @identity_constraints
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1004
1005
1006
# File 'lib/google/apis/privateca_v1/classes.rb', line 1004

def labels
  @labels
end

#maximum_lifetimeString

Optional. The maximum lifetime allowed for issued Certificates that use this template. If the issuing CaPool resource's IssuancePolicy specifies a maximum_lifetime the minimum of the two durations will be the maximum lifetime for issued Certificates. Note that if the issuing CertificateAuthority expires before a Certificate's requested maximum_lifetime, the effective lifetime will be explicitly truncated to match it. Corresponds to the JSON property maximumLifetime

Returns:

  • (String)


1014
1015
1016
# File 'lib/google/apis/privateca_v1/classes.rb', line 1014

def maximum_lifetime
  @maximum_lifetime
end

#nameString

Identifier. The resource name for this CertificateTemplate in the format projects/*/locations/*/certificateTemplates/*. Corresponds to the JSON property name

Returns:

  • (String)


1020
1021
1022
# File 'lib/google/apis/privateca_v1/classes.rb', line 1020

def name
  @name
end

#passthrough_extensionsGoogle::Apis::PrivatecaV1::CertificateExtensionConstraints

Describes a set of X.509 extensions that may be part of some certificate issuance controls. Corresponds to the JSON property passthroughExtensions



1026
1027
1028
# File 'lib/google/apis/privateca_v1/classes.rb', line 1026

def passthrough_extensions
  @passthrough_extensions
end

#predefined_valuesGoogle::Apis::PrivatecaV1::X509Parameters

An X509Parameters is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. Corresponds to the JSON property predefinedValues



1033
1034
1035
# File 'lib/google/apis/privateca_v1/classes.rb', line 1033

def predefined_values
  @predefined_values
end

#update_timeString

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

Returns:

  • (String)


1038
1039
1040
# File 'lib/google/apis/privateca_v1/classes.rb', line 1038

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
# File 'lib/google/apis/privateca_v1/classes.rb', line 1045

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @identity_constraints = args[:identity_constraints] if args.key?(:identity_constraints)
  @labels = args[:labels] if args.key?(:labels)
  @maximum_lifetime = args[:maximum_lifetime] if args.key?(:maximum_lifetime)
  @name = args[:name] if args.key?(:name)
  @passthrough_extensions = args[:passthrough_extensions] if args.key?(:passthrough_extensions)
  @predefined_values = args[:predefined_values] if args.key?(:predefined_values)
  @update_time = args[:update_time] if args.key?(:update_time)
end