Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class ImportClusterRequest.
Import cluster request.
Generated from protobuf message google.cloud.alloydb.v1.ImportClusterRequest
Namespace
Google \ Cloud \ AlloyDb \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ sql_import_options
↳ csv_import_options
↳ name
string
Required. The resource name of the cluster.
↳ gcs_uri
string
Required. The path to the file in Google Cloud Storage where the source file for import will be stored. The URI is in the form gs://bucketName/fileName
.
↳ database
string
Optional. Name of the database to which the import will be done. For import from SQL file, this is required only if the file does not specify a database. Note - Value provided should be the same as expected from SELECT current_database();
and NOT as a resource reference.
↳ user
string
Optional. Database user to be used for importing the data. Note - Value provided should be the same as expected from SELECT current_user;
and NOT as a resource reference.
getSqlImportOptions
Options for importing data in SQL format.
hasSqlImportOptions
setSqlImportOptions
Options for importing data in SQL format.
$this
getCsvImportOptions
Options for importing data in CSV format.
hasCsvImportOptions
setCsvImportOptions
Options for importing data in CSV format.
$this
getName
Required. The resource name of the cluster.
string
setName
Required. The resource name of the cluster.
var
string
$this
getGcsUri
Required. The path to the file in Google Cloud Storage where the source
file for import will be stored. The URI is in the form gs://bucketName/fileName
.
string
setGcsUri
Required. The path to the file in Google Cloud Storage where the source
file for import will be stored. The URI is in the form gs://bucketName/fileName
.
var
string
$this
getDatabase
Optional. Name of the database to which the import will be done.
For import from SQL file, this is required only if the file does not
specify a database.
Note - Value provided should be the same as expected from SELECT
current_database();
and NOT as a resource reference.
string
setDatabase
Optional. Name of the database to which the import will be done.
For import from SQL file, this is required only if the file does not
specify a database.
Note - Value provided should be the same as expected from SELECT
current_database();
and NOT as a resource reference.
var
string
$this
getUser
Optional. Database user to be used for importing the data.
Note - Value provided should be the same as expected from SELECT current_user;
and NOT as a resource reference.
string
setUser
Optional. Database user to be used for importing the data.
Note - Value provided should be the same as expected from SELECT current_user;
and NOT as a resource reference.
var
string
$this
getImportOptions
string
static::build
name
string
Required. The resource name of the cluster. Please see AlloyDBAdminClient::clusterName() for help formatting this field.
gcsUri
string
Required. The path to the file in Google Cloud Storage where the source
file for import will be stored. The URI is in the form gs://bucketName/fileName
.
database
string
Optional. Name of the database to which the import will be done.
For import from SQL file, this is required only if the file does not
specify a database.
Note - Value provided should be the same as expected from SELECT
current_database();
and NOT as a resource reference.
user
string
Optional. Database user to be used for importing the data.
Note - Value provided should be the same as expected from SELECT current_user;
and NOT as a resource reference.