C# Класс Google.PowerShell.CloudStorage.GcsObjectCmdlet

Base class for Cloud Storage Object cmdlets. Used to reuse common methods.
Наследование: GcsCmdlet
Показать файл Открыть проект

Защищенные методы

Метод Описание
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