Class: Google::Apis::PrivatecaV1::CertificateTemplate
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::CertificateTemplate
- 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
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#identity_constraints ⇒ Google::Apis::PrivatecaV1::CertificateIdentityConstraints
Describes constraints on a Certificate's Subject and SubjectAltNames.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Output only.
-
#passthrough_extensions ⇒ Google::Apis::PrivatecaV1::CertificateExtensionConstraints
Describes a set of X.509 extensions that may be part of some certificate issuance controls.
-
#predefined_values ⇒ Google::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.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CertificateTemplate
constructor
A new instance of CertificateTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CertificateTemplate
Returns a new instance of CertificateTemplate.
949 950 951 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 949 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time at which this CertificateTemplate was created.
Corresponds to the JSON property createTime
907 908 909 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 907 def create_time @create_time end |
#description ⇒ String
Optional. A human-readable description of scenarios this template is intended
for.
Corresponds to the JSON property description
913 914 915 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 913 def description @description end |
#identity_constraints ⇒ Google::Apis::PrivatecaV1::CertificateIdentityConstraints
Describes constraints on a Certificate's Subject and SubjectAltNames.
Corresponds to the JSON property identityConstraints
918 919 920 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 918 def identity_constraints @identity_constraints end |
#labels ⇒ Hash<String,String>
Optional. Labels with user-defined metadata.
Corresponds to the JSON property labels
923 924 925 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 923 def labels @labels end |
#name ⇒ String
Output only. The resource name for this CertificateTemplate in the format
projects/*/locations/*/certificateTemplates/*.
Corresponds to the JSON property name
929 930 931 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 929 def name @name end |
#passthrough_extensions ⇒ Google::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
935 936 937 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 935 def passthrough_extensions @passthrough_extensions end |
#predefined_values ⇒ Google::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
942 943 944 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 942 def predefined_values @predefined_values end |
#update_time ⇒ String
Output only. The time at which this CertificateTemplate was updated.
Corresponds to the JSON property updateTime
947 948 949 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 947 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
954 955 956 957 958 959 960 961 962 963 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 954 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 |