Cloud SQL Admin V1 API - Class Google::Cloud::Sql::V1::InitialUsersConfig::InitialUser (v0.9.0)

Reference documentation and code samples for the Cloud SQL Admin V1 API class Google::Cloud::Sql::V1::InitialUsersConfig::InitialUser.

Configuration for an IAM user created during instance creation.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#name

def name() -> ::String
Returns
  • (::String) — Required. The name of the user in the Cloud SQL instance.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Required. The name of the user in the Cloud SQL instance.
Returns
  • (::String) — Required. The name of the user in the Cloud SQL instance.

#roles

def roles() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. The database roles to be assigned to the user. If empty, will grant role cloudsqlsuperuser.

#roles=

def roles=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. The database roles to be assigned to the user. If empty, will grant role cloudsqlsuperuser.
Returns
  • (::Array<::String>) — Optional. The database roles to be assigned to the user. If empty, will grant role cloudsqlsuperuser.

#type

def type() -> ::Google::Cloud::Sql::V1::InitialUsersConfig::InitialUser::SqlUserType
Returns

#type=

def type=(value) -> ::Google::Cloud::Sql::V1::InitialUsersConfig::InitialUser::SqlUserType
Parameter
Returns