Class SubscriptionsResource.PatchRequest
Developer Preview: Updates or renews a Google Workspace subscription. To learn how to use this method, see Update or renew a Google Workspace subscription.
Inheritance
Inherited Members
Namespace: Google.Apis.WorkspaceEvents.v1
Assembly: Google.Apis.WorkspaceEvents.v1.dll
Syntax
public class SubscriptionsResource.PatchRequest : WorkspaceEventsBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Subscription, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Subscription body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Subscription | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Identifier. Resource name of the subscription. Format: subscriptions/{subscription}
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
Optional. The field to update. If omitted, updates any fields included in the request. You can update
one of the following fields in a subscription: * expire_time
: The timestamp when the subscription
expires. * ttl
: The time-to-live (TTL) or duration of the subscription. * event_types
: The list of
event types to receive about the target resource. To fully replace the subscription (the equivalent of
PUT
), use *
. Any omitted fields are updated with empty values.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
ValidateOnly
Optional. If set to true
, validates and previews the request, but doesn't update the subscription.
Declaration
[RequestParameter("validateOnly", RequestParameterType.Query)]
public virtual bool? ValidateOnly { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()