C# 클래스 Google.PowerShell.Sql.ImportGcSqlInstanceCmdlet.GcsFileUploader

Class containing the local file upload methods.
파일 보기 프로젝트 열기: GoogleCloudPlatform/google-cloud-powershell

공개 메소드들

메소드 설명
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".)

메소드 상세

AdjustAcl() 공개 메소드

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
리턴 void

CreateBucket() 공개 메소드

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

DeleteBucket() 공개 메소드

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

DeleteObject() 공개 메소드

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

GcsFileUploader() 공개 메소드

public GcsFileUploader ( BaseClientService serviceInitializer, string project ) : System
serviceInitializer BaseClientService
project string
리턴 System

UploadLocalFile() 공개 메소드

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
리턴 Apis.Storage.v1.Data.Object