Class: Google::Apis::SqladminV1::SqlActiveDirectoryConfig

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

Active Directory configuration, relevant only for Cloud SQL for SQL Server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlActiveDirectoryConfig

Returns a new instance of SqlActiveDirectoryConfig.



5403
5404
5405
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5403

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

Instance Attribute Details

#admin_credential_secret_nameString

Optional. The secret manager key storing the administrator credential. (e.g., projects/project/secrets/secret). Corresponds to the JSON property adminCredentialSecretName

Returns:

  • (String)


5375
5376
5377
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5375

def admin_credential_secret_name
  @admin_credential_secret_name
end

#dns_serversArray<String>

Optional. Domain controller IPv4 addresses used to bootstrap Active Directory. Corresponds to the JSON property dnsServers

Returns:

  • (Array<String>)


5380
5381
5382
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5380

def dns_servers
  @dns_servers
end

#domainString

The name of the domain (e.g., mydomain.com). Corresponds to the JSON property domain

Returns:

  • (String)


5385
5386
5387
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5385

def domain
  @domain
end

#kindString

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

Returns:

  • (String)


5390
5391
5392
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5390

def kind
  @kind
end

#modeString

Optional. The mode of the Active Directory configuration. Corresponds to the JSON property mode

Returns:

  • (String)


5395
5396
5397
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5395

def mode
  @mode
end

#organizational_unitString

Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit. Corresponds to the JSON property organizationalUnit

Returns:

  • (String)


5401
5402
5403
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5401

def organizational_unit
  @organizational_unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5408
5409
5410
5411
5412
5413
5414
5415
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5408

def update!(**args)
  @admin_credential_secret_name = args[:admin_credential_secret_name] if args.key?(:admin_credential_secret_name)
  @dns_servers = args[:dns_servers] if args.key?(:dns_servers)
  @domain = args[:domain] if args.key?(:domain)
  @kind = args[:kind] if args.key?(:kind)
  @mode = args[:mode] if args.key?(:mode)
  @organizational_unit = args[:organizational_unit] if args.key?(:organizational_unit)
end