Class ObjectsResource.PatchRequest
Updates a data blob's associated metadata. This method supports patch semantics.
Inheritance
System.Object
ObjectsResource.PatchRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Storage.v1beta1
Assembly: Google.Apis.Storage.v1beta1.dll
Syntax
public class PatchRequest : StorageBaseServiceRequest<Object>, IClientServiceRequest<Object>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Object, String, String)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Object body, string bucket, string storageObject)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Object | body | |
System.String | bucket | |
System.String | storageObject |
Properties
Bucket
Name of the bucket in which the object resides.
Declaration
[RequestParameter("bucket", RequestParameterType.Path)]
public virtual string Bucket { get; }
Property Value
Type | Description |
---|---|
System.String |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Storage.v1beta1.Data.Object>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Storage.v1beta1.Data.Object>.MethodName
Object
Name of the object.
Declaration
[RequestParameter("object", RequestParameterType.Path)]
public virtual string Object { get; }
Property Value
Type | Description |
---|---|
System.String |
Projection
Set of properties to return. Defaults to full.
Declaration
[RequestParameter("projection", RequestParameterType.Query)]
public virtual ObjectsResource.PatchRequest.ProjectionEnum? Projection { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<ObjectsResource.PatchRequest.ProjectionEnum> |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Storage.v1beta1.Data.Object>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Storage.v1beta1.Data.Object>.GetBody()
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Storage.v1beta1.StorageBaseServiceRequest<Google.Apis.Storage.v1beta1.Data.Object>.InitParameters()