Class: Google::Apis::CertificatemanagerV1::CertificateIssuanceConfig

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

CertificateIssuanceConfig specifies how to issue and manage a certificate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CertificateIssuanceConfig

Returns a new instance of CertificateIssuanceConfig.



279
280
281
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 279

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

Instance Attribute Details

#certificate_authority_configGoogle::Apis::CertificatemanagerV1::CertificateAuthorityConfig

The CA that issues the workload certificate. It includes CA address, type, authentication to CA service, etc. Corresponds to the JSON property certificateAuthorityConfig



233
234
235
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 233

def certificate_authority_config
  @certificate_authority_config
end

#create_timeString

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

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 238

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


243
244
245
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 243

def description
  @description
end

#key_algorithmString

Required. The key algorithm to use when generating the private key. Corresponds to the JSON property keyAlgorithm

Returns:

  • (String)


248
249
250
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 248

def key_algorithm
  @key_algorithm
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


253
254
255
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 253

def labels
  @labels
end

#lifetimeString

Required. Workload certificate lifetime requested. Corresponds to the JSON property lifetime

Returns:

  • (String)


258
259
260
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 258

def lifetime
  @lifetime
end

#nameString

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

Returns:

  • (String)


265
266
267
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 265

def name
  @name
end

#rotation_window_percentageFixnum

Required. Specifies the percentage of elapsed time of the certificate lifetime to wait before renewing the certificate. Must be a number between 1-99, inclusive. Corresponds to the JSON property rotationWindowPercentage

Returns:

  • (Fixnum)


272
273
274
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 272

def rotation_window_percentage
  @rotation_window_percentage
end

#update_timeString

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

Returns:

  • (String)


277
278
279
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 277

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



284
285
286
287
288
289
290
291
292
293
294
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 284

def update!(**args)
  @certificate_authority_config = args[:certificate_authority_config] if args.key?(:certificate_authority_config)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm)
  @labels = args[:labels] if args.key?(:labels)
  @lifetime = args[:lifetime] if args.key?(:lifetime)
  @name = args[:name] if args.key?(:name)
  @rotation_window_percentage = args[:rotation_window_percentage] if args.key?(:rotation_window_percentage)
  @update_time = args[:update_time] if args.key?(:update_time)
end