C# Class Google.PowerShell.CloudStorage.GcsObjectCmdlet

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

Protected Methods

Method 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 method

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
return bool

UpdateObjectMetadata() protected method

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

UploadGcsObject() protected method

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
return Object