Class: Ansible::Ruby::Modules::Gcp_sql_user

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/google/gcp_sql_user.rb

Overview

The Users resource represents a database user in a Cloud SQL instance.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#hostString

Returns The host name from which the user can connect. For insert operations, host defaults to an empty string. For update operations, host is specified as part of the request URL. The host name cannot be updated after insertion.

Returns:

  • (String)

    The host name from which the user can connect. For insert operations, host defaults to an empty string. For update operations, host is specified as part of the request URL. The host name cannot be updated after insertion.



16
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_sql_user.rb', line 16

attribute :host

#instanceString

Returns The name of the Cloud SQL instance. This does not include the project ID.

Returns:

  • (String)

    The name of the Cloud SQL instance. This does not include the project ID.



24
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_sql_user.rb', line 24

attribute :instance

#nameString

Returns The name of the user in the Cloud SQL instance.

Returns:

  • (String)

    The name of the user in the Cloud SQL instance.



20
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_sql_user.rb', line 20

attribute :name

#passwordString?

Returns The password for the user.

Returns:

  • (String, nil)

    The password for the user.



28
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_sql_user.rb', line 28

attribute :password

#state:present, ...

Returns Whether the given object should exist in GCP.

Returns:

  • (:present, :absent, nil)

    Whether the given object should exist in GCP



12
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_sql_user.rb', line 12

attribute :state