C# Class Google.PowerShell.Sql.ImportGcSqlInstanceCmdlet.GcsFileUploader

Class containing the local file upload methods.
Datei anzeigen Open project: GoogleCloudPlatform/google-cloud-powershell

Public Methods

Method Description
AdjustAcl ( Apis bucketObject, string instanceEmail ) : void

Adjusts the ACL for an uploaded object so that a SQL instance can access it.

CreateBucket ( string bucketName ) : Bucket

Creates a Google Cloud Storage bucket.

DeleteBucket ( Bucket bucket ) : void

Deletes a Google Cloud Storage bucket.

DeleteObject ( Apis bucketObject ) : void

Deletes the bucket object from the Google Cloud Storage bucket.

GcsFileUploader ( BaseClientService serviceInitializer, string project ) : System
UploadLocalFile ( string filePath, string bucketName ) : Apis.Storage.v1.Data.Object

Uploads a local file to a given bucket. The object's name will be the same as provided file path. (e.g. "C:\foo\bar.txt".)

Method Details

AdjustAcl() public method

Adjusts the ACL for an uploaded object so that a SQL instance can access it.
public AdjustAcl ( Apis bucketObject, string instanceEmail ) : void
bucketObject Apis
instanceEmail string
return void

CreateBucket() public method

Creates a Google Cloud Storage bucket.
public CreateBucket ( string bucketName ) : Bucket
bucketName string
return Bucket

DeleteBucket() public method

Deletes a Google Cloud Storage bucket.
public DeleteBucket ( Bucket bucket ) : void
bucket Bucket
return void

DeleteObject() public method

Deletes the bucket object from the Google Cloud Storage bucket.
public DeleteObject ( Apis bucketObject ) : void
bucketObject Apis
return void

GcsFileUploader() public method

public GcsFileUploader ( BaseClientService serviceInitializer, string project ) : System
serviceInitializer BaseClientService
project string
return System

UploadLocalFile() public method

Uploads a local file to a given bucket. The object's name will be the same as provided file path. (e.g. "C:\foo\bar.txt".)
public UploadLocalFile ( string filePath, string bucketName ) : Apis.Storage.v1.Data.Object
filePath string
bucketName string
return Apis.Storage.v1.Data.Object