Class: Ansible::Ruby::Modules::Gcp_spanner_database

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

Overview

A Cloud Spanner Database which is hosted on a Spanner 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, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

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

Instance Method Details

#extra_statementsObject?

Returns An optional list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.

Returns:

  • (Object, nil)

    An optional list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.



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

attribute :extra_statements

#instanceString

Returns The instance to create the database on.

Returns:

  • (String)

    The instance to create the database on.



23
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_spanner_database.rb', line 23

attribute :instance

#nameString?

Returns A unique identifier for the database, which cannot be changed after the instance is created. Values are of the form projects/<project>/instances/[-a-z0-9]*. The final segment of the name must be between 6 and 30 characters in length.

Returns:

  • (String, nil)

    A unique identifier for the database, which cannot be changed after the instance is created. Values are of the form projects/<project>/instances/[-a-z0-9]*. The final segment of the name must be between 6 and 30 characters in length.



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

attribute :name

#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_spanner_database.rb', line 12

attribute :state