Class: Google::Apis::PrivatecaV1beta1::AllowedSubjectAltNames

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/privateca_v1beta1/classes.rb,
generated/google/apis/privateca_v1beta1/representations.rb,
generated/google/apis/privateca_v1beta1/representations.rb

Overview

AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the CertificateAuthority when issuing Certificates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllowedSubjectAltNames

Returns a new instance of AllowedSubjectAltNames.



167
168
169
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 167

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

Instance Attribute Details

#allow_custom_sansBoolean Also known as: allow_custom_sans?

Optional. Specifies if to allow custom X509Extension values. Corresponds to the JSON property allowCustomSans

Returns:

  • (Boolean)


123
124
125
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 123

def allow_custom_sans
  @allow_custom_sans
end

#allow_globbing_dns_wildcardsBoolean 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

Returns:

  • (Boolean)


133
134
135
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 133

def allow_globbing_dns_wildcards
  @allow_globbing_dns_wildcards
end

#allowed_dns_namesArray<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

Returns:

  • (Array<String>)


144
145
146
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 144

def allowed_dns_names
  @allowed_dns_names
end

#allowed_email_addressesArray<String>

Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also supported. Corresponds to the JSON property allowedEmailAddresses

Returns:

  • (Array<String>)


150
151
152
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 150

def allowed_email_addresses
  @allowed_email_addresses
end

#allowed_ipsArray<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

Returns:

  • (Array<String>)


158
159
160
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 158

def allowed_ips
  @allowed_ips
end

#allowed_urisArray<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

Returns:

  • (Array<String>)


165
166
167
# File 'generated/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 'generated/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