Class: Google::Apis::PrivatecaV1beta1::AllowedSubjectAltNames
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1beta1::AllowedSubjectAltNames
- 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
AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the CertificateAuthority when issuing Certificates.
Instance Attribute Summary collapse
-
#allow_custom_sans ⇒ Boolean
(also: #allow_custom_sans?)
Optional.
-
#allow_globbing_dns_wildcards ⇒ Boolean
(also: #allow_globbing_dns_wildcards?)
Optional.
-
#allowed_dns_names ⇒ Array<String>
Optional.
-
#allowed_email_addresses ⇒ Array<String>
Optional.
-
#allowed_ips ⇒ Array<String>
Optional.
-
#allowed_uris ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllowedSubjectAltNames
constructor
A new instance of AllowedSubjectAltNames.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AllowedSubjectAltNames
Returns a new instance of AllowedSubjectAltNames.
167 168 169 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 167 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_custom_sans ⇒ Boolean Also known as: allow_custom_sans?
Optional. Specifies if to allow custom X509Extension values.
Corresponds to the JSON property allowCustomSans
123 124 125 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 123 def allow_custom_sans @allow_custom_sans end |
#allow_globbing_dns_wildcards ⇒ Boolean Also known as: allow_globbing_dns_wildcards?
Optional. Specifies if glob patterns used for allowed_dns_names allow wildcard
certificates. If this is set, certificate requests with wildcard domains will
be permitted to match a glob pattern specified in allowed_dns_names. Otherwise,
certificate requests with wildcard domains will be permitted only if
allowed_dns_names contains a literal wildcard.
Corresponds to the JSON property allowGlobbingDnsWildcards
133 134 135 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 133 def allow_globbing_dns_wildcards @allow_globbing_dns_wildcards end |
#allowed_dns_names ⇒ Array<String>
Optional. Contains valid, fully-qualified host names. Glob patterns are also
supported. To allow an explicit wildcard certificate, escape with backlash (i.
e. "*"). E.g. for globbed entries: 'bar.com' will allow 'foo.bar.com', but
not '.bar.com', unless the allow_globbing_dns_wildcards field is set. E.g.
for wildcard entries: '*.bar.com' will allow '*.bar.com', but not 'foo.bar.
com'.
Corresponds to the JSON property allowedDnsNames
144 145 146 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 144 def allowed_dns_names @allowed_dns_names end |
#allowed_email_addresses ⇒ Array<String>
Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
supported.
Corresponds to the JSON property allowedEmailAddresses
150 151 152 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 150 def allowed_email_addresses @allowed_email_addresses end |
#allowed_ips ⇒ Array<String>
Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291
IPv6 addresses and subnet ranges. Subnet ranges are specified using the '/'
notation (e.g. 10.0.0.0/8, 2001:700:300:1800::/64). Glob patterns are
supported only for ip address entries (i.e. not for subnet ranges).
Corresponds to the JSON property allowedIps
158 159 160 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 158 def allowed_ips @allowed_ips end |
#allowed_uris ⇒ Array<String>
Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
match across path seperators (i.e. '/') use the double star glob pattern (i.e.
'**').
Corresponds to the JSON property allowedUris
165 166 167 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 165 def allowed_uris @allowed_uris end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
172 173 174 175 176 177 178 179 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 172 def update!(**args) @allow_custom_sans = args[:allow_custom_sans] if args.key?(:allow_custom_sans) @allow_globbing_dns_wildcards = args[:allow_globbing_dns_wildcards] if args.key?(:allow_globbing_dns_wildcards) @allowed_dns_names = args[:allowed_dns_names] if args.key?(:allowed_dns_names) @allowed_email_addresses = args[:allowed_email_addresses] if args.key?(:allowed_email_addresses) @allowed_ips = args[:allowed_ips] if args.key?(:allowed_ips) @allowed_uris = args[:allowed_uris] if args.key?(:allowed_uris) end |