Class: Google::Apis::CertificatemanagerV1::Certificate

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

Overview

Defines TLS certificate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Certificate

Returns a new instance of Certificate.



142
143
144
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 142

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

Instance Attribute Details

#create_timeString

Output only. The creation timestamp of a Certificate. Corresponds to the JSON property createTime

Returns:

  • (String)


84
85
86
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 84

def create_time
  @create_time
end

#descriptionString

One or more paragraphs of text description of a certificate. Corresponds to the JSON property description

Returns:

  • (String)


89
90
91
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 89

def description
  @description
end

#expire_timeString

Output only. The expiry timestamp of a Certificate. Corresponds to the JSON property expireTime

Returns:

  • (String)


94
95
96
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 94

def expire_time
  @expire_time
end

#labelsHash<String,String>

Set of labels associated with a Certificate. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


99
100
101
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 99

def labels
  @labels
end

#managedGoogle::Apis::CertificatemanagerV1::ManagedCertificate

Configuration and state of a Managed Certificate. Certificate Manager provisions and renews Managed Certificates automatically, for as long as it's authorized to do so. Corresponds to the JSON property managed



106
107
108
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 106

def managed
  @managed
end

#nameString

A user-defined name of the certificate. Certificate names must be unique globally and match pattern projects/*/locations/*/certificates/*. Corresponds to the JSON property name

Returns:

  • (String)


112
113
114
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 112

def name
  @name
end

#pem_certificateString

Output only. The PEM-encoded certificate chain. Corresponds to the JSON property pemCertificate

Returns:

  • (String)


117
118
119
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 117

def pem_certificate
  @pem_certificate
end

#san_dnsnamesArray<String>

Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6) Corresponds to the JSON property sanDnsnames

Returns:

  • (Array<String>)


123
124
125
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 123

def san_dnsnames
  @san_dnsnames
end

#scopeString

Immutable. The scope of the certificate. Corresponds to the JSON property scope

Returns:

  • (String)


128
129
130
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 128

def scope
  @scope
end

#self_managedGoogle::Apis::CertificatemanagerV1::SelfManagedCertificate

Certificate data for a SelfManaged Certificate. SelfManaged Certificates are uploaded by the user. Updating such certificates before they expire remains the user's responsibility. Corresponds to the JSON property selfManaged



135
136
137
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 135

def self_managed
  @self_managed
end

#update_timeString

Output only. The last update timestamp of a Certificate. Corresponds to the JSON property updateTime

Returns:

  • (String)


140
141
142
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 140

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 147

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @labels = args[:labels] if args.key?(:labels)
  @managed = args[:managed] if args.key?(:managed)
  @name = args[:name] if args.key?(:name)
  @pem_certificate = args[:pem_certificate] if args.key?(:pem_certificate)
  @san_dnsnames = args[:san_dnsnames] if args.key?(:san_dnsnames)
  @scope = args[:scope] if args.key?(:scope)
  @self_managed = args[:self_managed] if args.key?(:self_managed)
  @update_time = args[:update_time] if args.key?(:update_time)
end