Class: Google::Apis::PrivatecaV1::RsaKeyType

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

Describes an RSA key that may be used in a Certificate issued from a CaPool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RsaKeyType

Returns a new instance of RsaKeyType.



2336
2337
2338
# File 'lib/google/apis/privateca_v1/classes.rb', line 2336

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

Instance Attribute Details

#max_modulus_sizeFixnum

Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is not set, or if set to zero, the service will not enforce an explicit upper bound on RSA modulus sizes. Corresponds to the JSON property maxModulusSize

Returns:

  • (Fixnum)


2327
2328
2329
# File 'lib/google/apis/privateca_v1/classes.rb', line 2327

def max_modulus_size
  @max_modulus_size
end

#min_modulus_sizeFixnum

Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is not set, or if set to zero, the service-level min RSA modulus size will continue to apply. Corresponds to the JSON property minModulusSize

Returns:

  • (Fixnum)


2334
2335
2336
# File 'lib/google/apis/privateca_v1/classes.rb', line 2334

def min_modulus_size
  @min_modulus_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2341
2342
2343
2344
# File 'lib/google/apis/privateca_v1/classes.rb', line 2341

def update!(**args)
  @max_modulus_size = args[:max_modulus_size] if args.key?(:max_modulus_size)
  @min_modulus_size = args[:min_modulus_size] if args.key?(:min_modulus_size)
end