C# 클래스 Google.PowerShell.CloudStorage.GcsCmdlet

Base class for Google Cloud Storage-based cmdlets.
상속: GCloudCmdlet
파일 보기 프로젝트 열기: GoogleCloudPlatform/google-cloud-powershell 1 사용 예제들

공개 메소드들

메소드 설명
GetContentType ( string newContentType, string>.Dictionary newMetadata, string defaultContentType = null ) : string

Return the content type to use for a Cloud Storage object given existing values, defauts, etc. The order of precidence is: 1. New content type, e.g. a ContentType parameter. 2. New metadata, e.g. Metadata value specified via parameter. 3. Default content type to apply (potentially null), e.g. sniffing file content. If no match is found, will return OctetStreamMimeType.

InferContentType ( string file ) : string

Infer the MIME type of a non-qualified file path. Returns null if no match is found.

보호된 메소드들

메소드 설명
ConvertToDictionary ( Hashtable hashtable ) : string>.Dictionary

Convert a PowerShell HashTable object into a string/string Dictionary.

ConvertToDictionary ( string>.IDictionary idict ) : string>.Dictionary

Converts an IDictionary into a Dictionary instance. (This method is preferred over passing it to the constructor for Dictionary since this will handle the null case.)

GetBaseUri ( string bucket, string objectName ) : string

Constructs the media URL of an object from its bucket and name. This does not include the generation or any preconditions. The returned string will always have a query parameter, so later query parameters can unconditionally be appended with an "&" prefix.

비공개 메소드들

메소드 설명
StorageService ( GetBaseClientServiceInitializer ( ) : System

메소드 상세

ConvertToDictionary() 보호된 메소드

Convert a PowerShell HashTable object into a string/string Dictionary.
protected ConvertToDictionary ( Hashtable hashtable ) : string>.Dictionary
hashtable System.Collections.Hashtable
리턴 string>.Dictionary

ConvertToDictionary() 보호된 메소드

Converts an IDictionary into a Dictionary instance. (This method is preferred over passing it to the constructor for Dictionary since this will handle the null case.)
protected ConvertToDictionary ( string>.IDictionary idict ) : string>.Dictionary
idict string>.IDictionary
리턴 string>.Dictionary

GetBaseUri() 보호된 메소드

Constructs the media URL of an object from its bucket and name. This does not include the generation or any preconditions. The returned string will always have a query parameter, so later query parameters can unconditionally be appended with an "&" prefix.
protected GetBaseUri ( string bucket, string objectName ) : string
bucket string
objectName string
리턴 string

GetContentType() 공개 메소드

Return the content type to use for a Cloud Storage object given existing values, defauts, etc. The order of precidence is: 1. New content type, e.g. a ContentType parameter. 2. New metadata, e.g. Metadata value specified via parameter. 3. Default content type to apply (potentially null), e.g. sniffing file content. If no match is found, will return OctetStreamMimeType.
public GetContentType ( string newContentType, string>.Dictionary newMetadata, string defaultContentType = null ) : string
newContentType string
newMetadata string>.Dictionary
defaultContentType string
리턴 string

InferContentType() 공개 정적인 메소드

Infer the MIME type of a non-qualified file path. Returns null if no match is found.
public static InferContentType ( string file ) : string
file string
리턴 string