C# Class Google.PowerShell.CloudStorage.GcsObjectCmdlet

Base class for Cloud Storage Object cmdlets. Used to reuse common methods.
Inheritance: GcsCmdlet
Afficher le fichier Open project: GoogleCloudPlatform/google-cloud-powershell

Méthodes protégées

Méthode Description
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.

Method Details

TestObjectExists() protected méthode

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

UpdateObjectMetadata() protected méthode

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

UploadGcsObject() protected méthode

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