Class: Google::Apis::SqladminV1beta3::IpConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta3::IpConfiguration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sqladmin_v1beta3/classes.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb
Overview
IP Management configuration.
Instance Attribute Summary collapse
-
#authorized_networks ⇒ Array<String>
The list of external networks that are allowed to connect to the instance using the IP.
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether the instance should be assigned an IP address or not.
-
#kind ⇒ String
This is always sql#ipConfiguration.
-
#require_ssl ⇒ Boolean
(also: #require_ssl?)
Whether SSL connections over IP should be enforced or not.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IpConfiguration
constructor
A new instance of IpConfiguration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ IpConfiguration
Returns a new instance of IpConfiguration
1112 1113 1114 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1112 def initialize(**args) update!(**args) end |
Instance Attribute Details
#authorized_networks ⇒ Array<String>
The list of external networks that are allowed to connect to the instance
using the IP. In CIDR notation, also known as 'slash' notation (e.g. 192.168.
100.0/24).
Corresponds to the JSON property authorizedNetworks
1093 1094 1095 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1093 def @authorized_networks end |
#enabled ⇒ Boolean Also known as: enabled?
Whether the instance should be assigned an IP address or not.
Corresponds to the JSON property enabled
1098 1099 1100 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1098 def enabled @enabled end |
#kind ⇒ String
This is always sql#ipConfiguration.
Corresponds to the JSON property kind
1104 1105 1106 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1104 def kind @kind end |
#require_ssl ⇒ Boolean Also known as: require_ssl?
Whether SSL connections over IP should be enforced or not.
Corresponds to the JSON property requireSsl
1109 1110 1111 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1109 def require_ssl @require_ssl end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1117 1118 1119 1120 1121 1122 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1117 def update!(**args) @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks) @enabled = args[:enabled] if args.key?(:enabled) @kind = args[:kind] if args.key?(:kind) @require_ssl = args[:require_ssl] if args.key?(:require_ssl) end |