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.



954
955
956
# File 'lib/google/apis/privateca_v1/classes.rb', line 954

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)


912
913
914
# File 'lib/google/apis/privateca_v1/classes.rb', line 912

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)


918
919
920
# File 'lib/google/apis/privateca_v1/classes.rb', line 918

def description
  @description
end

#identity_constraintsGoogle::Apis::PrivatecaV1::CertificateIdentityConstraints

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



923
924
925
# File 'lib/google/apis/privateca_v1/classes.rb', line 923

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>)


928
929
930
# File 'lib/google/apis/privateca_v1/classes.rb', line 928

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


934
935
936
# File 'lib/google/apis/privateca_v1/classes.rb', line 934

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



940
941
942
# File 'lib/google/apis/privateca_v1/classes.rb', line 940

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



947
948
949
# File 'lib/google/apis/privateca_v1/classes.rb', line 947

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)


952
953
954
# File 'lib/google/apis/privateca_v1/classes.rb', line 952

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



959
960
961
962
963
964
965
966
967
968
# File 'lib/google/apis/privateca_v1/classes.rb', line 959

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)
  @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