Метод | Описание | |
---|---|---|
AddObject ( Google.Apis.Storage.v1.Data.Object gcsObject ) : void |
Adds or updates a Google Cloud Storage object to the model.
|
|
BucketModel ( string bucket, StorageService service ) : System.Collections.Generic |
Initializes the bucket model.
|
|
GetGcsObject ( string objectName ) : Google.Apis.Storage.v1.Data.Object |
Gets the Google Cloud Storage object of a given object name.
|
|
HasChildren ( string objectName ) : bool | ||
IsContainer ( string objectName ) : bool |
Checks to see if the given object is a folder.
|
|
IsReal ( string objectName ) : bool |
Checks if the given object is a real object. An object could "exist" but not be "real" if it is a prefix for another object (a logical folder that is not "real").
|
|
ObjectExists ( string objectName ) : bool |
Checks if an object exists. If the model did not read all of the objects during its last update, it may make a service call if the object is not found in its data.
|
|
PopulateModel ( ) : void |
Gets a clean set of data from the service. If the bucket has more than a single page of objects, the model will only take the first page.
|
public AddObject ( Google.Apis.Storage.v1.Data.Object gcsObject ) : void | ||
gcsObject | Google.Apis.Storage.v1.Data.Object | The Google Cloud Storage object to add or update. |
Результат | void |
public BucketModel ( string bucket, StorageService service ) : System.Collections.Generic | ||
bucket | string | The name of the bucket this models. |
service | StorageService | The storage service used to maintain the model. |
Результат | System.Collections.Generic |
public GetGcsObject ( string objectName ) : Google.Apis.Storage.v1.Data.Object | ||
objectName | string | |
Результат | Google.Apis.Storage.v1.Data.Object |
public HasChildren ( string objectName ) : bool | ||
objectName | string | |
Результат | bool |
public IsContainer ( string objectName ) : bool | ||
objectName | string | The name of the object to check. |
Результат | bool |
public IsReal ( string objectName ) : bool | ||
objectName | string | The name of the object to check. |
Результат | bool |
public ObjectExists ( string objectName ) : bool | ||
objectName | string | |
Результат | bool |