Class: Google::Apis::SqladminV1beta3::IpConfiguration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IpConfiguration

Returns a new instance of IpConfiguration



1095
1096
1097
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1095

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

Instance Attribute Details

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

Returns:

  • (Array<String>)


1076
1077
1078
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1076

def authorized_networks
  @authorized_networks
end

#enabledBoolean Also known as: enabled?

Whether the instance should be assigned an IP address or not. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


1081
1082
1083
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1081

def enabled
  @enabled
end

#kindString

This is always sql#ipConfiguration. Corresponds to the JSON property kind

Returns:

  • (String)


1087
1088
1089
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1087

def kind
  @kind
end

#require_sslBoolean Also known as: require_ssl?

Whether SSL connections over IP should be enforced or not. Corresponds to the JSON property requireSsl

Returns:

  • (Boolean)


1092
1093
1094
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1092

def require_ssl
  @require_ssl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1100
1101
1102
1103
1104
1105
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1100

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