Class: Google::Apis::PrivatecaV1::NameConstraints
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::NameConstraints
- 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 the X.509 name constraints extension, per https://tools.ietf.org/ html/rfc5280#section-4.2.1.10
Instance Attribute Summary collapse
-
#critical ⇒ Boolean
(also: #critical?)
Indicates whether or not the name constraints are marked critical.
-
#excluded_dns_names ⇒ Array<String>
Contains excluded DNS names.
-
#excluded_email_addresses ⇒ Array<String>
Contains the excluded email addresses.
-
#excluded_ip_ranges ⇒ Array<String>
Contains the excluded IP ranges.
-
#excluded_uris ⇒ Array<String>
Contains the excluded URIs that apply to the host part of the name.
-
#permitted_dns_names ⇒ Array<String>
Contains permitted DNS names.
-
#permitted_email_addresses ⇒ Array<String>
Contains the permitted email addresses.
-
#permitted_ip_ranges ⇒ Array<String>
Contains the permitted IP ranges.
-
#permitted_uris ⇒ Array<String>
Contains the permitted URIs that apply to the host part of the name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NameConstraints
constructor
A new instance of NameConstraints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NameConstraints
Returns a new instance of NameConstraints.
1915 1916 1917 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1915 def initialize(**args) update!(**args) end |
Instance Attribute Details
#critical ⇒ Boolean Also known as: critical?
Indicates whether or not the name constraints are marked critical.
Corresponds to the JSON property critical
1854 1855 1856 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1854 def critical @critical end |
#excluded_dns_names ⇒ Array<String>
Contains excluded DNS names. Any DNS name that can be constructed by simply
adding zero or more labels to the left-hand side of the name satisfies the
name constraint. For example, example.com, www.example.com, www.sub.
example.com would satisfy example.com while example1.com does not.
Corresponds to the JSON property excludedDnsNames
1863 1864 1865 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1863 def excluded_dns_names @excluded_dns_names end |
#excluded_email_addresses ⇒ Array<String>
Contains the excluded email addresses. The value can be a particular email
address, a hostname to indicate all email addresses on that host or a domain
with a leading period (e.g. .example.com) to indicate all email addresses in
that domain.
Corresponds to the JSON property excludedEmailAddresses
1871 1872 1873 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1871 def excluded_email_addresses @excluded_email_addresses end |
#excluded_ip_ranges ⇒ Array<String>
Contains the excluded IP ranges. For IPv4 addresses, the ranges are expressed
using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges
are expressed in similar encoding as IPv4 addresses.
Corresponds to the JSON property excludedIpRanges
1878 1879 1880 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1878 def excluded_ip_ranges @excluded_ip_ranges end |
#excluded_uris ⇒ Array<String>
Contains the excluded URIs that apply to the host part of the name. The value
can be a hostname or a domain with a leading period (like .example.com)
Corresponds to the JSON property excludedUris
1884 1885 1886 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1884 def excluded_uris @excluded_uris end |
#permitted_dns_names ⇒ Array<String>
Contains permitted DNS names. Any DNS name that can be constructed by simply
adding zero or more labels to the left-hand side of the name satisfies the
name constraint. For example, example.com, www.example.com, www.sub.
example.com would satisfy example.com while example1.com does not.
Corresponds to the JSON property permittedDnsNames
1892 1893 1894 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1892 def permitted_dns_names @permitted_dns_names end |
#permitted_email_addresses ⇒ Array<String>
Contains the permitted email addresses. The value can be a particular email
address, a hostname to indicate all email addresses on that host or a domain
with a leading period (e.g. .example.com) to indicate all email addresses in
that domain.
Corresponds to the JSON property permittedEmailAddresses
1900 1901 1902 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1900 def permitted_email_addresses @permitted_email_addresses end |
#permitted_ip_ranges ⇒ Array<String>
Contains the permitted IP ranges. For IPv4 addresses, the ranges are expressed
using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges
are expressed in similar encoding as IPv4 addresses.
Corresponds to the JSON property permittedIpRanges
1907 1908 1909 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1907 def permitted_ip_ranges @permitted_ip_ranges end |
#permitted_uris ⇒ Array<String>
Contains the permitted URIs that apply to the host part of the name. The value
can be a hostname or a domain with a leading period (like .example.com)
Corresponds to the JSON property permittedUris
1913 1914 1915 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1913 def permitted_uris @permitted_uris end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1920 def update!(**args) @critical = args[:critical] if args.key?(:critical) @excluded_dns_names = args[:excluded_dns_names] if args.key?(:excluded_dns_names) @excluded_email_addresses = args[:excluded_email_addresses] if args.key?(:excluded_email_addresses) @excluded_ip_ranges = args[:excluded_ip_ranges] if args.key?(:excluded_ip_ranges) @excluded_uris = args[:excluded_uris] if args.key?(:excluded_uris) @permitted_dns_names = args[:permitted_dns_names] if args.key?(:permitted_dns_names) @permitted_email_addresses = args[:permitted_email_addresses] if args.key?(:permitted_email_addresses) @permitted_ip_ranges = args[:permitted_ip_ranges] if args.key?(:permitted_ip_ranges) @permitted_uris = args[:permitted_uris] if args.key?(:permitted_uris) end |