Class: Google::Apis::PrivatecaV1beta1::SubjectAltNames
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1beta1::SubjectAltNames
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/privateca_v1beta1/classes.rb,
lib/google/apis/privateca_v1beta1/representations.rb,
lib/google/apis/privateca_v1beta1/representations.rb
Overview
SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name).
Instance Attribute Summary collapse
-
#custom_sans ⇒ Array<Google::Apis::PrivatecaV1beta1::X509Extension>
Contains additional subject alternative name values.
-
#dns_names ⇒ Array<String>
Contains only valid, fully-qualified host names.
-
#email_addresses ⇒ Array<String>
Contains only valid RFC 2822 E-mail addresses.
-
#ip_addresses ⇒ Array<String>
Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
-
#uris ⇒ Array<String>
Contains only valid RFC 3986 URIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SubjectAltNames
constructor
A new instance of SubjectAltNames.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SubjectAltNames
Returns a new instance of SubjectAltNames.
2269 2270 2271 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2269 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_sans ⇒ Array<Google::Apis::PrivatecaV1beta1::X509Extension>
Contains additional subject alternative name values.
Corresponds to the JSON property customSans
2247 2248 2249 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2247 def custom_sans @custom_sans end |
#dns_names ⇒ Array<String>
Contains only valid, fully-qualified host names.
Corresponds to the JSON property dnsNames
2252 2253 2254 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2252 def dns_names @dns_names end |
#email_addresses ⇒ Array<String>
Contains only valid RFC 2822 E-mail addresses.
Corresponds to the JSON property emailAddresses
2257 2258 2259 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2257 def email_addresses @email_addresses end |
#ip_addresses ⇒ Array<String>
Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
Corresponds to the JSON property ipAddresses
2262 2263 2264 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2262 def ip_addresses @ip_addresses end |
#uris ⇒ Array<String>
Contains only valid RFC 3986 URIs.
Corresponds to the JSON property uris
2267 2268 2269 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2267 def uris @uris end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2274 2275 2276 2277 2278 2279 2280 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2274 def update!(**args) @custom_sans = args[:custom_sans] if args.key?(:custom_sans) @dns_names = args[:dns_names] if args.key?(:dns_names) @email_addresses = args[:email_addresses] if args.key?(:email_addresses) @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) @uris = args[:uris] if args.key?(:uris) end |