Class: Google::Apis::SqladminV1::SqlActiveDirectoryConfig
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::SqlActiveDirectoryConfig
- 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
-
#admin_credential_secret_name ⇒ String
Optional.
-
#dns_servers ⇒ Array<String>
Optional.
-
#domain ⇒ String
The name of the domain (e.g., mydomain.com).
-
#kind ⇒ String
This is always sql#activeDirectoryConfig.
-
#mode ⇒ String
Optional.
-
#organizational_unit ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SqlActiveDirectoryConfig
constructor
A new instance of SqlActiveDirectoryConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
Optional. The secret manager key storing the administrator credential. (e.g.,
projects/project/secrets/secret).
Corresponds to the JSON property adminCredentialSecretName
5375 5376 5377 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5375 def admin_credential_secret_name @admin_credential_secret_name end |
#dns_servers ⇒ Array<String>
Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
Corresponds to the JSON property dnsServers
5380 5381 5382 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5380 def dns_servers @dns_servers end |
#domain ⇒ String
The name of the domain (e.g., mydomain.com).
Corresponds to the JSON property domain
5385 5386 5387 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5385 def domain @domain end |
#kind ⇒ String
This is always sql#activeDirectoryConfig.
Corresponds to the JSON property kind
5390 5391 5392 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5390 def kind @kind end |
#mode ⇒ String
Optional. The mode of the Active Directory configuration.
Corresponds to the JSON property mode
5395 5396 5397 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5395 def mode @mode end |
#organizational_unit ⇒ String
Optional. The organizational unit distinguished name. This is the full
hierarchical path to the organizational unit.
Corresponds to the JSON property organizationalUnit
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 |