C# Class GoogleCloudSamples.AuthSample

Exibir arquivo Open project: GoogleCloudPlatform/dotnet-docs-samples Class Usage Examples

Public Methods

Method Description
CreateAuthorizedClient ( ) : StorageService

Creates an authorized Cloud Storage client service using Application Default Credentials.

ListBucketContents ( StorageService storage, string bucket ) : System.Objects

List the contents of a Cloud Storage bucket.

Private Methods

Method Description
Main ( string args ) : void
MainFunction ( string args ) : void

Method Details

CreateAuthorizedClient() public method

Creates an authorized Cloud Storage client service using Application Default Credentials.
public CreateAuthorizedClient ( ) : StorageService
return StorageService

ListBucketContents() public method

List the contents of a Cloud Storage bucket.
public ListBucketContents ( StorageService storage, string bucket ) : System.Objects
storage StorageService
bucket string the name of the Cloud Storage bucket.
return System.Objects