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

Class containing the local file upload methods.
Afficher le fichier Open project: GoogleCloudPlatform/google-cloud-powershell

Méthodes publiques

Méthode 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 méthode

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
Résultat void

CreateBucket() public méthode

Creates a Google Cloud Storage bucket.
public CreateBucket ( string bucketName ) : Bucket
bucketName string
Résultat Bucket

DeleteBucket() public méthode

Deletes a Google Cloud Storage bucket.
public DeleteBucket ( Bucket bucket ) : void
bucket Bucket
Résultat void

DeleteObject() public méthode

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

GcsFileUploader() public méthode

public GcsFileUploader ( BaseClientService serviceInitializer, string project ) : System
serviceInitializer BaseClientService
project string
Résultat System

UploadLocalFile() public méthode

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
Résultat Apis.Storage.v1.Data.Object