Class: Google::Apis::SqladminV1::SqlServerUserDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb

Overview

Represents a Sql Server user on the Cloud SQL instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlServerUserDetails

Returns a new instance of SqlServerUserDetails.



4478
4479
4480
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4478

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

Instance Attribute Details

#disabledBoolean Also known as: disabled?

If the user has been disabled Corresponds to the JSON property disabled

Returns:

  • (Boolean)


4470
4471
4472
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4470

def disabled
  @disabled
end

#server_rolesArray<String>

The server roles for this user Corresponds to the JSON property serverRoles

Returns:

  • (Array<String>)


4476
4477
4478
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4476

def server_roles
  @server_roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4483
4484
4485
4486
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4483

def update!(**args)
  @disabled = args[:disabled] if args.key?(:disabled)
  @server_roles = args[:server_roles] if args.key?(:server_roles)
end