spanner

package
v0.14.1-dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

Creates a Google Spanner Database within a Spanner Instance. For more information, see the [official documentation](https://cloud.google.com/spanner/), or the [JSON API](https://cloud.google.com/spanner/docs/reference/rest/v1/projects.instances.databases).

func GetDatabase

func GetDatabase(ctx *pulumi.Context,
	name string, id pulumi.ID, state *DatabaseState, opts ...pulumi.ResourceOpt) (*Database, error)

GetDatabase gets an existing Database resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDatabase

func NewDatabase(ctx *pulumi.Context,
	name string, args *DatabaseArgs, opts ...pulumi.ResourceOpt) (*Database, error)

NewDatabase registers a new resource with the given unique name, arguments, and options.

func (*Database) Ddls

func (r *Database) Ddls() *pulumi.ArrayOutput

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.

func (*Database) ID

func (r *Database) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Database) Instance

func (r *Database) Instance() *pulumi.StringOutput

The name of the instance that will serve the new database.

func (*Database) Name

func (r *Database) Name() *pulumi.StringOutput

The name of the database.

func (*Database) Project

func (r *Database) Project() *pulumi.StringOutput

The ID of the project in which to look for the `instance` specified. If it is not provided, the provider project is used.

func (*Database) State

func (r *Database) State() *pulumi.StringOutput

The current state of the database.

func (*Database) URN

func (r *Database) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

type DatabaseArgs

type DatabaseArgs struct {
	// 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.
	Ddls interface{}
	// The name of the instance that will serve the new database.
	Instance interface{}
	// The name of the database.
	Name interface{}
	// The ID of the project in which to look for the `instance` specified. If it
	// is not provided, the provider project is used.
	Project interface{}
}

The set of arguments for constructing a Database resource.

type DatabaseState

type DatabaseState struct {
	// 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.
	Ddls interface{}
	// The name of the instance that will serve the new database.
	Instance interface{}
	// The name of the database.
	Name interface{}
	// The ID of the project in which to look for the `instance` specified. If it
	// is not provided, the provider project is used.
	Project interface{}
	// The current state of the database.
	State interface{}
}

Input properties used for looking up and filtering Database resources.

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

Creates and manages a Google Spanner Instance. For more information, see the [official documentation](https://cloud.google.com/spanner/), or the [JSON API](https://cloud.google.com/spanner/docs/reference/rest/v1/projects.instances).

func GetInstance

func GetInstance(ctx *pulumi.Context,
	name string, id pulumi.ID, state *InstanceState, opts ...pulumi.ResourceOpt) (*Instance, error)

GetInstance gets an existing Instance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInstance

func NewInstance(ctx *pulumi.Context,
	name string, args *InstanceArgs, opts ...pulumi.ResourceOpt) (*Instance, error)

NewInstance registers a new resource with the given unique name, arguments, and options.

func (*Instance) Config

func (r *Instance) Config() *pulumi.StringOutput

The name of the instance's configuration (similar but not quite the same as a region) which defines defines the geographic placement and replication of your databases in this instance. It determines where your data is stored. Values are typically of the form `regional-europe-west1` , `us-central` etc. In order to obtain a valid list please consult the [Configuration section of the docs](https://cloud.google.com/spanner/docs/instances).

func (*Instance) DisplayName

func (r *Instance) DisplayName() *pulumi.StringOutput

The descriptive name for this instance as it appears in UIs. Can be updated, however should be kept globally unique to avoid confusion.

func (*Instance) ID

func (r *Instance) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Instance) Labels

func (r *Instance) Labels() *pulumi.MapOutput

A mapping (key/value pairs) of labels to assign to the instance.

func (*Instance) Name

func (r *Instance) Name() *pulumi.StringOutput

The unique name (ID) of the instance. If the name is left blank, Terraform will randomly generate one when the instance is first created.

func (*Instance) NumNodes

func (r *Instance) NumNodes() *pulumi.IntOutput

The number of nodes allocated to this instance. Defaults to `1`. This can be updated after creation.

func (*Instance) Project

func (r *Instance) Project() *pulumi.StringOutput

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

func (*Instance) State

func (r *Instance) State() *pulumi.StringOutput

The current state of the instance.

func (*Instance) URN

func (r *Instance) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

type InstanceArgs

type InstanceArgs struct {
	// The name of the instance's configuration (similar but not
	// quite the same as a region) which defines defines the geographic placement and
	// replication of your databases in this instance. It determines where your data
	// is stored. Values are typically of the form `regional-europe-west1` , `us-central` etc.
	// In order to obtain a valid list please consult the
	// [Configuration section of the docs](https://cloud.google.com/spanner/docs/instances).
	Config interface{}
	// The descriptive name for this instance as it appears
	// in UIs. Can be updated, however should be kept globally unique to avoid confusion.
	DisplayName interface{}
	// A mapping (key/value pairs) of labels to assign to the instance.
	Labels interface{}
	// The unique name (ID) of the instance. If the name is left
	// blank, Terraform will randomly generate one when the instance is first
	// created.
	Name interface{}
	// The number of nodes allocated to this instance.
	// Defaults to `1`. This can be updated after creation.
	NumNodes interface{}
	// The ID of the project in which the resource belongs. If it
	// is not provided, the provider project is used.
	Project interface{}
}

The set of arguments for constructing a Instance resource.

type InstanceState

type InstanceState struct {
	// The name of the instance's configuration (similar but not
	// quite the same as a region) which defines defines the geographic placement and
	// replication of your databases in this instance. It determines where your data
	// is stored. Values are typically of the form `regional-europe-west1` , `us-central` etc.
	// In order to obtain a valid list please consult the
	// [Configuration section of the docs](https://cloud.google.com/spanner/docs/instances).
	Config interface{}
	// The descriptive name for this instance as it appears
	// in UIs. Can be updated, however should be kept globally unique to avoid confusion.
	DisplayName interface{}
	// A mapping (key/value pairs) of labels to assign to the instance.
	Labels interface{}
	// The unique name (ID) of the instance. If the name is left
	// blank, Terraform will randomly generate one when the instance is first
	// created.
	Name interface{}
	// The number of nodes allocated to this instance.
	// Defaults to `1`. This can be updated after creation.
	NumNodes interface{}
	// The ID of the project in which the resource belongs. If it
	// is not provided, the provider project is used.
	Project interface{}
	// The current state of the instance.
	State interface{}
}

Input properties used for looking up and filtering Instance resources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL