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



1112
1113
1114
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1112

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>)


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

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)


1098
1099
1100
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1098

def enabled
  @enabled
end

#kindString

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

Returns:

  • (String)


1104
1105
1106
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1104

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)


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