C# 클래스 Google.PowerShell.CloudStorage.GcsObjectCmdlet

Base class for Cloud Storage Object cmdlets. Used to reuse common methods.
상속: GcsCmdlet
파일 보기 프로젝트 열기: GoogleCloudPlatform/google-cloud-powershell

보호된 메소드들

메소드 설명
TestObjectExists ( StorageService service, string bucket, string objectName ) : bool

Returns whether or not a storage object with the given name exists in the provided bucket. Will return false if the object exists but is not visible to the current user.

UpdateObjectMetadata ( StorageService service, Object storageObject, string>.Dictionary metadata ) : Object

Patch the GCS object with new metadata.

UploadGcsObject ( StorageService service, string bucket, string objectName, Stream contentStream, string contentType, PredefinedAclEnum predefinedAcl, string>.Dictionary metadata ) : Object

Uploads a local file to Google Cloud storage, overwriting any existing object and clobber existing metadata values.

메소드 상세

TestObjectExists() 보호된 메소드

Returns whether or not a storage object with the given name exists in the provided bucket. Will return false if the object exists but is not visible to the current user.
protected TestObjectExists ( StorageService service, string bucket, string objectName ) : bool
service StorageService
bucket string
objectName string
리턴 bool

UpdateObjectMetadata() 보호된 메소드

Patch the GCS object with new metadata.
protected UpdateObjectMetadata ( StorageService service, Object storageObject, string>.Dictionary metadata ) : Object
service StorageService
storageObject Object
metadata string>.Dictionary
리턴 Object

UploadGcsObject() 보호된 메소드

Uploads a local file to Google Cloud storage, overwriting any existing object and clobber existing metadata values.
protected UploadGcsObject ( StorageService service, string bucket, string objectName, Stream contentStream, string contentType, PredefinedAclEnum predefinedAcl, string>.Dictionary metadata ) : Object
service StorageService
bucket string
objectName string
contentStream System.IO.Stream
contentType string
predefinedAcl PredefinedAclEnum
metadata string>.Dictionary
리턴 Object