Class: Google::Apis::SqladminV1beta4::SqlServerUserDetails

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

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.



2721
2722
2723
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2721

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)


2713
2714
2715
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2713

def disabled
  @disabled
end

#server_rolesArray<String>

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

Returns:

  • (Array<String>)


2719
2720
2721
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2719

def server_roles
  @server_roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2726
2727
2728
2729
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2726

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