Class: Google::Apis::SecretmanagerV1::CloudSqlSingleUserCredentials

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

Overview

These are the credentials required for Cloud SQL DB for Single user Managed Rotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSqlSingleUserCredentials

Returns a new instance of CloudSqlSingleUserCredentials.



306
307
308
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 306

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

Instance Attribute Details

#instance_idString

Required. Instance ID of the Cloud SQL instance. Corresponds to the JSON property instanceId

Returns:

  • (String)


293
294
295
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 293

def instance_id
  @instance_id
end

#passwordString

Optional. Password of the Cloud SQL instance. If this is not provided, a random password will be generated. Corresponds to the JSON property password

Returns:

  • (String)


299
300
301
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 299

def password
  @password
end

#usernameString

Required. Username of the Cloud SQL instance. Corresponds to the JSON property username

Returns:

  • (String)


304
305
306
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 304

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



311
312
313
314
315
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 311

def update!(**args)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @password = args[:password] if args.key?(:password)
  @username = args[:username] if args.key?(:username)
end