Class: Google::Apis::SqladminV1beta4::IpConfiguration

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sqladmin_v1beta4/classes.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb,
generated/google/apis/sqladmin_v1beta4/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.


1068
1069
1070
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1068

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

Instance Attribute Details

#authorized_networksArray<Google::Apis::SqladminV1beta4::AclEntry>

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


1053
1054
1055
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1053

def authorized_networks
  @authorized_networks
end

#ipv4_enabledBoolean Also known as: ipv4_enabled?

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

Returns:

  • (Boolean)

1058
1059
1060
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1058

def ipv4_enabled
  @ipv4_enabled
end

#require_sslBoolean Also known as: require_ssl?

Whether the mysqld should default to 'REQUIRE X509' for users connecting over IP. Corresponds to the JSON property requireSsl

Returns:

  • (Boolean)

1065
1066
1067
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1065

def require_ssl
  @require_ssl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1073
1074
1075
1076
1077
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1073

def update!(**args)
  @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
  @ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
  @require_ssl = args[:require_ssl] if args.key?(:require_ssl)
end