Class: Google::Apis::SecretmanagerV1::CloudSqlSingleUserCredentials
- Inherits:
-
Object
- Object
- Google::Apis::SecretmanagerV1::CloudSqlSingleUserCredentials
- 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_id ⇒ String
Required.
-
#password ⇒ String
Optional.
-
#username ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudSqlSingleUserCredentials
constructor
A new instance of CloudSqlSingleUserCredentials.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
Required. Instance ID of the Cloud SQL instance.
Corresponds to the JSON property instanceId
293 294 295 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 293 def instance_id @instance_id end |
#password ⇒ String
Optional. Password of the Cloud SQL instance. If this is not provided, a
random password will be generated.
Corresponds to the JSON property password
299 300 301 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 299 def password @password end |
#username ⇒ String
Required. Username of the Cloud SQL instance.
Corresponds to the JSON property username
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 |